Intermodal Routing API Developer's Guide

Routes for Park And Ride

To request routes for Park and Ride modes departing from the vicinity of Chicago into the inner city of Chicago at 7.30am, on 2018-07-16T, send the following GET request.

https://mobility.cit.api.here.com/v1/route
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&profile=parkandride
&dep=42.59452409,-87.825373057
&arr=41.86851845,-87.657831553
&time=2018-07-16T07:30:00

The response is according to the following structure. For a full response, see Park and Ride Routing Example.

{
  "Res": {
  "Connections": {
    "Connection": [
    {
      "Arr": {
      "Addr": {
        "x": -87.657824,
        "y": 41.868518
      },
      "time": "2017-12-18T09:41:00"
      },
      "Dep": {
      "Addr": {
        "x": -87.8253731,
        "y": 42.5944448
      },
      "time": "2017-12-18T07:30:00"
      },
      "Sections": {
      "Sec": [
        {
        "Arr": {
          "Activities": {
          "Act": [
            {
            "duration": "PT5M",
            "type": "parking"
            }
          ]
          },
          "Addr": {
          "At": {
            "PnR": 1,
            "category": "parking",
            "parkingId": "840dp3x9-0af0ef1c5e334cbeafe67c0fbdb23e46"
          },
          "name": "Metra Northbrook Station",
          "x": -87.8278,
          "y": 42.12771
          },
          "RT": {
          "arr": "2017-12-18T08:28:02"
          },
          "time": "2017-12-18T08:24:32"
        },
        "Dep": {
          "Addr": {
          "x": -87.8253731,
          "y": 42.5944448
          },
          "Transport": {
          "mode": 21
          },
          "time": "2017-12-18T07:30:00"
        },
        "Journey": {
          "distance": 72583,
          "duration": "PT0H54M32S"
        },
        "id": "R000413-C2-S0",
        "mode": 21
        },
        {
        "Arr": {
          "AP": {
          "id": "718821134#100",
          "name": "Northbrook",
          "x": -87.827621,
          "y": 42.127317
          },
          "Stn": {
          "id": "718820395#100",
          "name": "Northbrook",
          "x": -87.827774,
          "y": 42.126949
          },
          "time": "2017-12-18T08:32:32"
        },
        "Dep": {
          "Addr": {
          "x": -87.827792,
          "y": 42.127713
          },
          "Transport": {
          "mode": 20
          },
          "time": "2017-12-18T08:29:32"
        },
        "Journey": {
          "distance": 89,
          "duration": "PT3M"
        },
        "id": "R000413-C2-S1",
        "mode": 20
        },
        {
        "Arr": {
          "Stn": {
          "id": "718820303#100",
          "name": "Chicago Union Station",
          "x": -87.638883,
          "y": 41.878891
          },
          "time": "2017-12-18T09:22:00"
        },
        "Dep": {
          "Freq": {
          "AltDep": [
            {
            "Transport": {
              "At": {
              "category": "Regional Train",
              "color": "#CC5500",
              "operator": "43AMET00",
              "textColor": "#FFFFFF"
              },
              "dir": "Chicago Union Station",
              "mode": 3,
              "name": "Milwaukee North"
            },
            "time": "2017-12-18T09:33:00"
            },
            {
            "Transport": {
              "At": {
              "category": "Regional Train",
              "color": "#CC5500",
              "operator": "43AMET00",
              "textColor": "#FFFFFF"
              },
              "dir": "Chicago Union Station",
              "mode": 3,
              "name": "Milwaukee North"
            },
            "time": "2017-12-18T10:32:00"
            },
            {
            "Transport": {
              "At": {
              "category": "Regional Train",
              "color": "#CC5500",
              "operator": "43AMET00",
              "textColor": "#FFFFFF"
              },
              "dir": "Chicago Union Station",
              "mode": 3,
              "name": "Milwaukee North"
            },
            "time": "2017-12-18T11:32:00"
            }
          ],
          "max": 60,
          "min": 59
          },
          "Stn": {
          "id": "718820395#100",
          "name": "Northbrook",
          "x": -87.827774,
          "y": 42.126949
          },
          "Transport": {
          "At": {
            "category": "Regional Train",
            "color": "#CC5500",
            "operator": "43AMET00",
            "textColor": "#FFFFFF"
          },
          "dir": "Chicago Union Station",
          "mode": 3,
          "name": "Milwaukee North"
          },
          "time": "2017-12-18T08:33:00"
        },
        "Journey": {
          "Stop": [
          {
            "Stn": {
            "id": "718820395#100",
            "name": "Northbrook",
            "x": -87.827774,
            "y": 42.126949
            },
            "dep": "2017-12-18T08:33:00"
          },
          {
            "Stn": {
            "id": "718820168#100",
            "name": "Glen/N. Glenview",
            "x": -87.815836,
            "y": 42.0975
            },
            "dep": "2017-12-18T08:37:00"
          },
          {
            "Stn": {
            "id": "718820326#100",
            "name": "Glenview",
            "x": -87.805552,
            "y": 42.075
            },
            "dep": "2017-12-18T08:40:00"
          },
          {
            "Stn": {
            "id": "718820327#100",
            "name": "Golf",
            "x": -87.796941,
            "y": 42.058334
            },
            "dep": "2017-12-18T08:43:00"
          },
          {
            "Stn": {
            "id": "718820389#100",
            "name": "Morton Grove",
            "x": -87.785273,
            "y": 42.034998
            },
            "dep": "2017-12-18T08:46:00"
          },
          {
            "Stn": {
            "id": "718820307#100",
            "name": "Edgebrook",
            "x": -87.76555,
            "y": 41.997774
            },
            "dep": "2017-12-18T08:51:00"
          },
          {
            "Stn": {
            "id": "718820316#100",
            "name": "Forest Glen",
            "x": -87.755554,
            "y": 41.978051
            },
            "dep": "2017-12-18T08:54:00"
          },
          {
            "Stn": {
            "id": "718820379#100",
            "name": "Mayfair",
            "x": -87.745828,
            "y": 41.959722
            },
            "dep": "2017-12-18T08:57:00"
          },
          {
            "Stn": {
            "id": "718820329#100",
            "name": "Grayland",
            "x": -87.740273,
            "y": 41.94889
            },
            "dep": "2017-12-18T08:59:00"
          },
          {
            "Stn": {
            "id": "718820340#100",
            "name": "Healy",
            "x": -87.727778,
            "y": 41.924718
            },
            "dep": "2017-12-18T09:02:00"
          },
          {
            "Stn": {
            "id": "718820448#100",
            "name": "Western Ave",
            "x": -87.688054,
            "y": 41.889166
            },
            "dep": "2017-12-18T09:08:00"
          },
          {
            "Stn": {
            "id": "718820303#100",
            "name": "Chicago Union Station",
            "x": -87.638883,
            "y": 41.878891
            },
            "arr": "2017-12-18T09:22:00"
          }
          ],
          "duration": "PT49M"
        },
        "id": "R000413-C2-S2",
        "mode": 3
        },
        {
        "Arr": {
          "Stn": {
          "id": "418804488#100",
          "name": "Clinton + Jackson",
          "x": -87.641149,
          "y": 41.878136
          },
          "time": "2017-12-18T09:28:00"
        },
        "Dep": {
          "AP": {
          "id": "718820617#100",
          "name": "Chicago Union Station",
          "x": -87.641041,
          "y": 41.878361
          },
          "Stn": {
          "id": "718820303#100",
          "name": "Chicago Union Station",
          "x": -87.638883,
          "y": 41.878891
          },
          "Transport": {
          "mode": 20
          },
          "time": "2017-12-18T09:22:00"
        },
        "Journey": {
          "_guide": 0,
          "distance": 214,
          "duration": "PT6M"
        },
        "id": "R000413-C2-S3",
        "mode": 20
        },
        {
        "Arr": {
          "Stn": {
          "id": "418809979#100",
          "name": "Racine + Taylor",
          "x": -87.656835,
          "y": 41.869165
          },
          "time": "2017-12-18T09:36:00"
        },
        "Dep": {
          "Freq": {
          "AltDep": [
            {
            "Transport": {
              "At": {
              "category": "Bus",
              "operator": "1gA48700"
              },
              "dir": "Roosevelt/Racine",
              "mode": 5,
              "name": "60"
            },
            "time": "2017-12-18T09:36:00"
            },
            {
            "Transport": {
              "At": {
              "category": "Bus",
              "operator": "1gA48700"
              },
              "dir": "Cicero/24th Pl",
              "mode": 5,
              "name": "60"
            },
            "time": "2017-12-18T09:45:00"
            },
            {
            "Transport": {
              "At": {
              "category": "Bus",
              "operator": "1gA48700"
              },
              "dir": "Roosevelt/Racine",
              "mode": 5,
              "name": "60"
            },
            "time": "2017-12-18T09:54:00"
            }
          ],
          "max": 15,
          "min": 8
          },
          "Stn": {
          "id": "418804488#100",
          "name": "Clinton + Jackson",
          "x": -87.641149,
          "y": 41.878136
          },
          "Transport": {
          "At": {
            "category": "Bus",
            "operator": "1gA48700"
          },
          "dir": "Cicero/24th Pl",
          "mode": 5,
          "name": "60"
          },
          "time": "2017-12-18T09:28:00"
        },
        "Journey": {
          "Stop": [
          {
            "Stn": {
            "id": "418804488#100",
            "name": "Clinton + Jackson",
            "x": -87.641149,
            "y": 41.878136
            },
            "dep": "2017-12-18T09:28:00"
          },
          {
            "Stn": {
            "id": "418804490#100",
            "name": "Clinton Blue Line Station",
            "x": -87.641077,
            "y": 41.875592
            },
            "dep": "2017-12-18T09:29:00"
          },
          {
            "Stn": {
            "id": "418804491#100",
            "name": "Clinton + Harrison",
            "x": -87.641041,
            "y": 41.874514
            },
            "dep": "2017-12-18T09:30:00"
          },
          {
            "Stn": {
            "id": "418804492#100",
            "name": "Harrison + Jefferson",
            "x": -87.642245,
            "y": 41.874424
            },
            "dep": "2017-12-18T09:30:00"
          },
          {
            "Stn": {
            "id": "418800165#100",
            "name": "Harrison + Halsted",
            "x": -87.647747,
            "y": 41.874442
            },
            "dep": "2017-12-18T09:31:00"
          },
          {
            "Stn": {
            "id": "418800166#100",
            "name": "900 W Harrison",
            "x": -87.649859,
            "y": 41.874478
            },
            "dep": "2017-12-18T09:32:00"
          },
          {
            "Stn": {
            "id": "418800167#100",
            "name": "Harrison + Morgan",
            "x": -87.651585,
            "y": 41.87446
            },
            "dep": "2017-12-18T09:32:00"
          },
          {
            "Stn": {
            "id": "418804493#100",
            "name": "Racine + Harrison",
            "x": -87.656889,
            "y": 41.873938
            },
            "dep": "2017-12-18T09:34:00"
          },
          {
            "Stn": {
            "id": "418810056#100",
            "name": "Racine + Lexington",
            "x": -87.656925,
            "y": 41.872347
            },
            "dep": "2017-12-18T09:35:00"
          },
          {
            "Stn": {
            "id": "418810057#100",
            "name": "Racine + Cabrini",
            "x": -87.65688,
            "y": 41.871179
            },
            "dep": "2017-12-18T09:35:00"
          },
          {
            "Stn": {
            "id": "418809979#100",
            "name": "Racine + Taylor",
            "x": -87.656835,
            "y": 41.869165
            },
            "dep": "2017-12-18T09:36:00"
          }
          ],
          "duration": "PT8M"
        },
        "id": "R000413-C2-S4",
        "mode": 5
        },
        {
        "Arr": {
          "Addr": {
          "x": -87.657824,
          "y": 41.868518
          },
          "time": "2017-12-18T09:41:00"
        },
        "Dep": {
          "Stn": {
          "id": "418809979#100",
          "name": "Racine + Taylor",
          "x": -87.656835,
          "y": 41.869165
          },
          "Transport": {
          "mode": 20
          },
          "time": "2017-12-18T09:36:00"
        },
        "Journey": {
          "distance": 229,
          "duration": "PT5M"
        },
        "id": "R000413-C2-S5",
        "mode": 20
        }
      ]
      },
      "Tariff": {
      "Fares": [
        {
        "Fare": [
          {
          "currency": "USD",
          "name": "Single Ride, with no transfer, Metra",
          "price": 6.5,
          "sec_ids": "R000413-C2-S2"
          }
        ]
        }
      ]
      },
      "duration": "PT2H11M0S",
      "id": "R000413-C2",
      "transfers": 2
    },
    ... more options ...
    ],
    "Operators": {
    "Op": [
      {
      "Link": [
        {
        "href": "http://www.metrarail.com/",
        "text": "Metra",
        "type": "website"
        }
      ],
      "code": "43AMET00",
      "name": "Metra",
      "type": "RT"
      },
      {
      "At": {
        "phone": "1-888-YOURCTA"
      },
      "Link": [
        {
        "href": "http://transitchicago.com",
        "text": "Chicago Transit Authority",
        "type": "website"
        }
      ],
      "code": "1gA48700",
      "name": "Chicago Transit Authority",
      "type": "TT"
      }
    ]
    },
    "context": ""
  },
  "serviceUrl": "https://mobility.cit.api.here.com/smartmob/v1/route.json"
  }
}