TravelTime Docs logo
TravelTime API
ArcGIS plugin
QGIS plugin
Alteryx plugin

Routesanchor icon

Returns routing information between source and destinations.

Request Bodyanchor icon

array[object]

Define your locations to use later in departure_searches or arrival_searches

Hide child attributes

You will have to reference this id in your searches. It will also be used in the response body. Must be unique among all locations.

The coordinates of the locations.

Show child attributes

Latitude.

Longitude.

array[object]

Searches based on departure time. Leave departure location at no earlier than given time. This allows you to specify a single departure location and multiple arrival locations. You can define a maximum of 10 searches.

Hide child attributes

Used to identify each search in the results array. Must be unique among all searches.

The id of the location we should start the search from. Must reference an id from locations array.

The ids of locations we should find the routes to. Must reference ids from locations array.

Transportation mode and related parameters. The default parameters are sensible and it is usually enough to only specify the type.

Show child attributes

cycling, driving, driving+train (only in Great Britain), public_transport, walking, coach, bus, train, ferry, driving+ferry, cycling+ferry or cycling+public_transport (only in Netherlands).

If set to true, the crossing of country borders is disabled. Only available with the driving transportation mode, and is enabled by default (false).

Time in seconds needed to board public transportation vehicle.
Default is 0.
Used in public_transport, coach, bus, train, driving+train and cycling+public_transport transportation modes.

Upper limit for the number of changes between public transit legs in a journey.
Used in public_transport, coach, bus, train, driving+train and cycling+public_transport transportation modes. For other modes the max_changes parameter is ignored.

Show child attributes

Enable transit leg change limit?

Maximum number of changes between transit legs in a journey. Must be at least 0.

Maximum time (in seconds) allowed for walking at the start and end of a public transport journey. i.e:

  • the maximum walking time from the origin to the first stop/station, and
  • the maximum walking time from the final stop/station to the destination

These limits are independent and not cumulative. They only apply to the first and last walking legs of the journey - all walking times between public transport legs are limited to 600s (10 minutes) each.

The default value is 900.

Cannot be higher than travel_time.

Used in public_transport, coach, bus, train, driving+train and cycling+public_transport transportation modes.

Maximum time (in seconds) allowed for driving from the origin to the train station.
Default value is 1800.
Used only in driving+train transportation mode.

Maximum time (in seconds) allowed for cycling (including any ferry transfers) from from the origin to the first stop/station.
Default value is 900.
Used only in cycling+public_transport transportation mode.

Time in seconds required to park a car or a bicycle.
Default value is 300.
Used in driving+train and cycling+public_transport transportation modes.

Time in seconds required to board a ferry.
Default value is 0.
Used in public_transport, ferry, driving+ferry, cycling+ferry and cycling+public_transport transportation modes. For public_transport mode, pt_change_delay is used instead.

date in extended ISO-8601 format

Leave departure location at no earlier than given time. In ISO 8601 format. For example:
2022-07-01T06:00:00Z (representing UTC)
2022-07-01T06:00:00-05:00 (representing New York on Standard Time: UTC-05:00)

Properties to be returned about the locations. Possible values: travel_time, distance, fares, route.

object | optional

When enabled, range adds a departure window to the departure time, and a combined shape of all possible journeys departing within the window is returned.
Disabled by default.
Used in public_transport, coach, bus, train and driving+train transportation modes. For other modes range search parameters are ignored.

Show child attributes

Enable range search?

Maximum number of results to return. Limited to 5 results.

When enabled, range adds an arrival window to the arrival time, and results are returned for any journeys that arrive during this window.
In the results array, the properties of these multiple alternative results are sorted by travel_time in ascending order.
Disabled by default.
Used in public_transport, coach, bus, train, driving+train and cycling+public_transport transportation modes. For other modes the parameter is ignored.

array[object]

Searches based on arrival time. Arrive at destination location at no later than given time. This allows you to specify a single arrival location and multiple departure locations. You can define a maximum of 10 searches

Hide child attributes

Used to identify each search in the results array. Must be unique among all searches.

The id of the location we should start the search from. Must reference an id from locations array.

The ids of locations we should find the routes to. Must reference ids from locations array.

Transportation mode and related parameters. The default parameters are sensible and it is usually enough to only specify the type.

Show child attributes

cycling, driving, driving+train (only in Great Britain), public_transport, walking, coach, bus, train, ferry, driving+ferry, cycling+ferry or cycling+public_transport (only in Netherlands).

If set to true, the crossing of country borders is disabled. Only available with the driving transportation mode, and is enabled by default (false).

Time in seconds needed to board public transportation vehicle.
Default is 0.
Used in public_transport, coach, bus, train, driving+train and cycling+public_transport transportation modes.

Upper limit for the number of changes between public transit legs in a journey.
Used in public_transport, coach, bus, train, driving+train and cycling+public_transport transportation modes. For other modes the max_changes parameter is ignored.

Show child attributes

Enable transit leg change limit?

Maximum number of changes between transit legs in a journey. Must be at least 0.

Maximum time (in seconds) allowed for walking at the start and end of a public transport journey. i.e:

  • the maximum walking time from the origin to the first stop/station, and
  • the maximum walking time from the final stop/station to the destination

These limits are independent and not cumulative. They only apply to the first and last walking legs of the journey - all walking times between public transport legs are limited to 600s (10 minutes) each.

The default value is 900.

Cannot be higher than travel_time.

Used in public_transport, coach, bus, train, driving+train and cycling+public_transport transportation modes.

Maximum time (in seconds) allowed for driving from the origin to the train station.
Default value is 1800.
Used only in driving+train transportation mode.

Maximum time (in seconds) allowed for cycling (including any ferry transfers) from from the origin to the first stop/station.
Default value is 900.
Used only in cycling+public_transport transportation mode.

Time in seconds required to park a car or a bicycle.
Default value is 300.
Used in driving+train and cycling+public_transport transportation modes.

Time in seconds required to board a ferry.
Default value is 0.
Used in public_transport, ferry, driving+ferry, cycling+ferry and cycling+public_transport transportation modes. For public_transport mode, pt_change_delay is used instead.

date in extended ISO-8601 format

Be at arrival location at no later than given time. In ISO 8601 format. For example:
2022-07-01T06:00:00Z (representing UTC)
2022-07-01T06:00:00-05:00 (representing New York on Standard Time: UTC-05:00)

Properties to be returned about the locations. Possible values: travel_time, distance, fares, route.

object | optional

When enabled, range adds a departure window to the departure time, and a combined shape of all possible journeys departing within the window is returned.
Disabled by default.
Used in public_transport, coach, bus, train and driving+train transportation modes. For other modes range search parameters are ignored.

Show child attributes

Enable range search?

Maximum number of results to return. Limited to 5 results.

When enabled, range adds an arrival window to the arrival time, and results are returned for any journeys that arrive during this window.
In the results array, the properties of these multiple alternative results are sorted by travel_time in ascending order.
Disabled by default.
Used in public_transport, coach, bus, train, driving+train and cycling+public_transport transportation modes. For other modes the parameter is ignored.

Response Bodyanchor icon

array[object]

The results array which is sorted lexicographically by the id attribute.

Hide child attributes

Maximum number of results to return. Limited to 5 results.

Show child attributes

Properties array. May contain multiple elements if range was enabled, single element otherwise. Sorted by travel_time. Only the properties included in the request are returned.

Show child attributes

Travel time in seconds.

Distance in meters.

Show child attributes

date in extended ISO-8601 format

2022-07-01T06:00:00+03:00 or 2022-07-01T06:00:00Z.

date in extended ISO-8601 format

Example 2022-07-01T06:00:00+03:00 or 2022-07-01T06:00:00Z.

Show child attributes

A sequential id, used to relate route parts with fare data.

Possible values: basic, start_end, road or public_transport.

car, parking, boarding, walk, bike, bike_parking, train, rail_national, rail_overground, rail_underground, rail_dlr, bus, cable_car, plane, ferry or coach.

Distance in meters.

Travel time in seconds.

Only available when type is start_end.

May be present on parts where type is road.

May be present on parts where type is road.

Only available when type is public_transport.

Only available when type is public_transport.

Only available when type is public_transport.

Local departure time. Only available when type is public_transport.

Local arrival time. Only available when type is public_transport.

Only available when type is public_transport.

Show child attributes
Show child attributes

Mode covered by the ticket, can be: car, parking, boarding, walk, bike, bike_parking, train, rail_national, rail_overground, rail_underground, rail_dlr, bus, cable_car, plane, ferry or coach.

Id's of route parts that are covered by these tickets.

Show child attributes
Show child attributes

Possible values: single, week, month or year.

array[string]

Id's of locations for which we cannot find a route. This can happen if the point cannot be reached within 12 hours.

Limitationsanchor icon

Currently “departure_location_id.arrival_location_ids” and “arrival_searches.departure_location_ids” array sizes are limited to a maximum of 2 values.

You can use time-filter with route property to work around this limitation, but you will have to specify “travel_time”.

Examplesanchor icon

Requestanchor icon

POST /v4/routes HTTP/1.1
Host: api.traveltimeapp.com
Content-Type: application/json
Accept: application/json
X-Application-Id: ...
X-Api-Key: ...

{
  "locations": [
    {
      "id": "London center",
      "coords": {
        "lat": 51.508930,
        "lng": -0.131387
      }
    },
    {
      "id": "Hyde Park",
      "coords": {
        "lat": 51.508824,
        "lng": -0.167093
      }
    },
    {
      "id": "ZSL London Zoo",
      "coords": {
        "lat": 51.536067,
        "lng": -0.153596
      }
    }
  ],
  "departure_searches": [
    {
      "id": "departure search example",
      "departure_location_id": "London center",
      "arrival_location_ids": [
        "Hyde Park",
        "ZSL London Zoo"
      ],
      "transportation": {
        "type": "driving"
      },
      "departure_time": "2022-06-03T08:00:00Z",
      "properties": ["travel_time", "distance", "route"]
    }
  ],
  "arrival_searches": [
    {
      "id": "arrival search example",
      "departure_location_ids": [
        "Hyde Park",
        "ZSL London Zoo"
      ],
      "arrival_location_id": "London center",
      "transportation": {
        "type": "public_transport",
        "max_changes": {
          "enabled": true,
          "limit": 3
        }
      },
      "arrival_time": "2022-06-03T09:00:00Z",
      "properties": ["travel_time", "distance", "route", "fares"],
      "range": {
        "enabled": true,
        "max_results": 1,
        "width": 1800
      }
    }
  ]
}

Response Bodyanchor icon


{
    "results": [
      {
        "search_id": "arrival search example",
        "locations": [
          {
            "id": "Hyde Park",
            "properties": [
              {
                "travel_time": 1499,
                "distance": 847,
                "route": {
                  "departure_time": "2022-06-03T08:10:00Z",
                  "arrival_time": "2022-06-03T08:52:00Z",
                  "parts": [
                    {
                      "id": 0,
                      "type": "start_end",
                      "mode": "walk",
                      "directions": "Start your journey 57 meters south",
                      "distance": 57,
                      "travel_time": 41,
                      "coords": [
                        {
                          "lat": 51.508824,
                          "lng": -0.167093
                        },
                        {
                          "lat": 51.5083198,
                          "lng": -0.167281
                        }
                      ],
                      "direction": "south"
                    },
                    {
                      "id": 1,
                      "type": "road",
                      "mode": "walk",
                      "directions": "Walk 544 meters",
                      "distance": 544,
                      "travel_time": 402,
                      "coords": [
                        {
                          "lat": 51.5083198,
                          "lng": -0.167281
                        },
                        {
                          "lat": 51.5083412,
                          "lng": -0.1671866
                        },
                        {
                          "lat": 51.5096339,
                          "lng": -0.1673583
                        },
                        {
                          "lat": 51.5100606,
                          "lng": -0.1680954
                        },
                        {
                          "lat": 51.5104013,
                          "lng": -0.1677107
                        },
                        {
                          "lat": 51.51081,
                          "lng": -0.1672531
                        },
                        {
                          "lat": 51.5112151,
                          "lng": -0.1667602
                        },
                        {
                          "lat": 51.5115817,
                          "lng": -0.1663888
                        },
                        {
                          "lat": 51.5117586,
                          "lng": -0.1663198
                        },
                        {
                          "lat": 51.5118238,
                          "lng": -0.1663467
                        },
                        {
                          "lat": 51.5121276,
                          "lng": -0.1664422
                        },
                        {
                          "lat": 51.5122168,
                          "lng": -0.1664586
                        },
                        {
                          "lat": 51.5123821,
                          "lng": -0.1664891
                        },
                        {
                          "lat": 51.5123266,
                          "lng": -0.1669159
                        }
                      ]
                    },
                    {
                      "id": 2,
                      "type": "basic",
                      "mode": "walk",
                      "directions": "Go to 'Hyde Park Street, Stop D'",
                      "distance": 33,
                      "travel_time": 48,
                      "coords": [
                        {
                          "lat": 51.5123266,
                          "lng": -0.1669159
                        },
                        {
                          "lat": 51.5125734047,
                          "lng": -0.1672023418
                        }
                      ]
                    },
                    {
                      "id": 3,
                      "type": "public_transport",
                      "mode": "bus",
                      "directions": "Take a bus (94) from 'Hyde Park Street' (leaves at 08:20) to 'New Bond Street' (arrives at 08:33) (4 stops)",
                      "distance": 0,
                      "travel_time": 425,
                      "coords": [
                        {
                          "lat": 51.5125734047,
                          "lng": -0.1672023418
                        },
                        {
                          "lat": 51.5131251817,
                          "lng": -0.1622368953
                        },
                        {
                          "lat": 51.5137366459,
                          "lng": -0.1565050722
                        },
                        {
                          "lat": 51.5141319693,
                          "lng": -0.1524824953
                        },
                        {
                          "lat": 51.5148142747,
                          "lng": -0.1461422065
                        }
                      ],
                      "line": "94",
                      "departure_station": "Hyde Park Street",
                      "arrival_station": "New Bond Street",
                      "departs_at": "08:20",
                      "arrives_at": "08:33",
                      "num_stops": 4
                    },
                    {
                      "id": 4,
                      "type": "public_transport",
                      "mode": "bus",
                      "directions": "Take a bus (13) from 'New Bond Street' (leaves at 08:18) to 'Haymarket  Jermyn Street' (arrives at 08:41) (4 stops)",
                      "distance": 0,
                      "travel_time": 400,
                      "coords": [
                        {
                          "lat": 51.5148142747,
                          "lng": -0.1461422065
                        },
                        {
                          "lat": 51.5145906148,
                          "lng": -0.1416690138
                        },
                        {
                          "lat": 51.5113027982,
                          "lng": -0.1390502284
                        },
                        {
                          "lat": 51.5100605171,
                          "lng": -0.135570147
                        },
                        {
                          "lat": 51.5096826461,
                          "lng": -0.1327322109
                        }
                      ],
                      "line": "13",
                      "departure_station": "New Bond Street",
                      "arrival_station": "Haymarket  Jermyn Street",
                      "departs_at": "08:18",
                      "arrives_at": "08:41",
                      "num_stops": 4
                    },
                    ...
                  ]
                }
              }
            ]
          }
        ],
        "unreachable": []
      }
    ]
  }

Request When a Route Cannot Be Foundanchor icon


POST /v4/routes HTTP/1.1
Host: api.traveltimeapp.com
Content-Type: application/json
Accept: application/json
X-Application-Id: ...
X-Api-Key: ...

{
  "locations": [
    {
      "id": "London center",
      "coords": {
        "lat": 51.508930,
        "lng": -0.131387
      }
    },
    {
      "id": "Manchester",
      "coords": {
        "lat": 53.459790,
        "lng": -2.216907
      }
    },
    {
      "id": "ZSL London Zoo",
      "coords": {
        "lat": 51.536067,
        "lng": -0.153596
      }
    }
  ],
  "departure_searches": [
    {
      "id": "forward search example",
      "departure_location_id": "London center",
      "arrival_location_ids": [
        "Manchester",
        "ZSL London Zoo"
      ],
      "transportation": {
        "type": "cycling"
      },
      "departure_time": "2022-06-03T08:00:00Z",
      "properties": ["travel_time", "distance", "route"]
    }
  ]
}

Response Bodyanchor icon


{
    "results": [
      {
        "search_id": "forward search example",
        "locations": [
          {
            "id": "ZSL London Zoo",
            "properties": [
              {
                "travel_time": 1066,
                "distance": 4335,
                "route": {
                  "departure_time": "2022-06-03T08:20:00Z",
                  "arrival_time": "2022-06-03T08:40:00Z",
                  "parts": [
                    {
                      "id": 0,
                      "type": "start_end",
                      "mode": "walk",
                      "directions": "Start your journey 24 meters northeast",
                      "distance": 24,
                      "travel_time": 17,
                      "coords": [
                        {
                          "lat": 51.50893,
                          "lng": -0.131387
                        }
                      ],
                      "direction": "northeast"
                    },
                    {
                      "id": 1,
                      "type": "road",
                      "mode": "bike",
                      "directions": "Cycle 147 meters along Oxendon Street",
                      "distance": 147,
                      "travel_time": 27,
                      "coords": [
                        {
                          "lat": 51.5091191,
                          "lng": -0.131198
                        },
                        {
                          "lat": 51.5095541,
                          "lng": -0.1316053
                        },
                        {
                          "lat": 51.5098161,
                          "lng": -0.131861
                        },
                        {
                          "lat": 51.5102692,
                          "lng": -0.1322966
                        }
                      ],
                      "road": "Oxendon Street"
                    },
                    {
                      "id": 2,
                      "type": "road",
                      "mode": "bike",
                      "directions": "Turn right onto Coventry Street and cycle 59 meters",
                      "distance": 59,
                      "travel_time": 21,
                      "coords": [
                        {
                          "lat": 51.5102692,
                          "lng": -0.1322966
                        },
                        {
                          "lat": 51.5102942,
                          "lng": -0.1321586
                        },
                        {
                          "lat": 51.5104296,
                          "lng": -0.131459
                        }
                      ],
                      "road": "Coventry Street",
                      "turn": "right"
                    },
                    {
                      "id": 3,
                      "type": "road",
                      "mode": "bike",
                      "directions": "Turn left onto Wardour Street and cycle 678 meters",
                      "distance": 678,
                      "travel_time": 166,
                      "coords": [
                        {
                          "lat": 51.5104296,
                          "lng": -0.131459
                        },
                        {
                          "lat": 51.5110264,
                          "lng": -0.1318385
                        },
                        {
                          "lat": 51.5110324,
                          "lng": -0.1318431
                        },
                        {
                          "lat": 51.5110441,
                          "lng": -0.131852
                        },
                        {
                          "lat": 51.5112459,
                          "lng": -0.1320061
                        },
                        {
                          "lat": 51.5114061,
                          "lng": -0.1321188
                        },
                        {
                          "lat": 51.5116421,
                          "lng": -0.1322565
                        },
                        {
                          "lat": 51.511814,
                          "lng": -0.1323773
                        },
                        {
                          "lat": 51.5120677,
                          "lng": -0.1326695
                        },
                        {
                          "lat": 51.5121479,
                          "lng": -0.132756
                        },
                        {
                          "lat": 51.5123061,
                          "lng": -0.1329265
                        },
                        {
                          "lat": 51.5124501,
                          "lng": -0.1331124
                        },
                        {
                          "lat": 51.5125857,
                          "lng": -0.133382
                        },
                        {
                          "lat": 51.5127303,
                          "lng": -0.1334622
                        },
                        {
                          "lat": 51.5129889,
                          "lng": -0.1336622
                        },
                        {
                          "lat": 51.5133016,
                          "lng": -0.1338786
                        },
                        {
                          "lat": 51.5139906,
                          "lng": -0.1343431
                        },
                        {
                          "lat": 51.5140939,
                          "lng": -0.1344381
                        },
                        {
                          "lat": 51.5142319,
                          "lng": -0.1345547
                        },
                        {
                          "lat": 51.5147994,
                          "lng": -0.1350161
                        },
                        {
                          "lat": 51.5149066,
                          "lng": -0.1350995
                        },
                        {
                          "lat": 51.515308,
                          "lng": -0.1354094
                        },
                        {
                          "lat": 51.5158195,
                          "lng": -0.1357861
                        },
                        {
                          "lat": 51.5158601,
                          "lng": -0.1358155
                        },
                        {
                          "lat": 51.5159337,
                          "lng": -0.1358688
                        }
                      ],
                      "road": "Wardour Street",
                      "turn": "left"
                    },
                    {
                      "id": 4,
                      "type": "road",
                      "mode": "bike",
                      "directions": "Continue onto Berners Street for 117 meters",
                      "distance": 117,
                      "travel_time": 42,
                      "coords": [
                        {
                          "lat": 51.5159337,
                          "lng": -0.1358688
                        },
                        {
                          "lat": 51.5160076,
                          "lng": -0.1359221
                        },
                        {
                          "lat": 51.5160656,
                          "lng": -0.1359638
                        },
                        {
                          "lat": 51.5169098,
                          "lng": -0.1365059
                        }
                      ],
                      "road": "Berners Street",
                      "turn": "straight"
                    },
                    ...
                  ]
                }
              }
            ]
          }
        ],
        "unreachable": [
          "Manchester"
        ]
      }
    ]
  }

Example Request

POST /v4/routes HTTP/1.1
Host: api.traveltimeapp.com
Content-Type: application/json
Accept: application/json
X-Application-Id: ...
X-Api-Key: ...

{
  "locations": [
    {
      "id": "London center",
      "coords": {
        "lat": 51.508930,
        "lng": -0.131387
      }
    },
    {
      "id": "Hyde Park",
      "coords": {
        "lat": 51.508824,
        "lng": -0.167093
      }
    },
    {
      "id": "ZSL London Zoo",
      "coords": {
        "lat": 51.536067,
        "lng": -0.153596
      }
    }
  ],
  "departure_searches": [
    {
      "id": "departure search example",
      "departure_location_id": "London center",
      "arrival_location_ids": [
        "Hyde Park",
        "ZSL London Zoo"
      ],
      "transportation": {
        "type": "driving"
      },
      "departure_time": "2022-06-03T08:00:00Z",
      "properties": ["travel_time", "distance", "route"]
    }
  ],
  "arrival_searches": [
    {
      "id": "arrival search example",
      "departure_location_ids": [
        "Hyde Park",
        "ZSL London Zoo"
      ],
      "arrival_location_id": "London center",
      "transportation": {
        "type": "public_transport",
        "max_changes": {
          "enabled": true,
          "limit": 3
        }
      },
      "arrival_time": "2022-06-03T09:00:00Z",
      "properties": ["travel_time", "distance", "route", "fares"],
      "range": {
        "enabled": true,
        "max_results": 1,
        "width": 1800
      }
    }
  ]
}

Response Body


{
    "results": [
      {
        "search_id": "arrival search example",
        "locations": [
          {
            "id": "Hyde Park",
            "properties": [
              {
                "travel_time": 1499,
                "distance": 847,
                "route": {
                  "departure_time": "2022-06-03T08:10:00Z",
                  "arrival_time": "2022-06-03T08:52:00Z",
                  "parts": [
                    {
                      "id": 0,
                      "type": "start_end",
                      "mode": "walk",
                      "directions": "Start your journey 57 meters south",
                      "distance": 57,
                      "travel_time": 41,
                      "coords": [
                        {
                          "lat": 51.508824,
                          "lng": -0.167093
                        },
                        {
                          "lat": 51.5083198,
                          "lng": -0.167281
                        }
                      ],
                      "direction": "south"
                    },
                    {
                      "id": 1,
                      "type": "road",
                      "mode": "walk",
                      "directions": "Walk 544 meters",
                      "distance": 544,
                      "travel_time": 402,
                      "coords": [
                        {
                          "lat": 51.5083198,
                          "lng": -0.167281
                        },
                        {
                          "lat": 51.5083412,
                          "lng": -0.1671866
                        },
                        {
                          "lat": 51.5096339,
                          "lng": -0.1673583
                        },
                        {
                          "lat": 51.5100606,
                          "lng": -0.1680954
                        },
                        {
                          "lat": 51.5104013,
                          "lng": -0.1677107
                        },
                        {
                          "lat": 51.51081,
                          "lng": -0.1672531
                        },
                        {
                          "lat": 51.5112151,
                          "lng": -0.1667602
                        },
                        {
                          "lat": 51.5115817,
                          "lng": -0.1663888
                        },
                        {
                          "lat": 51.5117586,
                          "lng": -0.1663198
                        },
                        {
                          "lat": 51.5118238,
                          "lng": -0.1663467
                        },
                        {
                          "lat": 51.5121276,
                          "lng": -0.1664422
                        },
                        {
                          "lat": 51.5122168,
                          "lng": -0.1664586
                        },
                        {
                          "lat": 51.5123821,
                          "lng": -0.1664891
                        },
                        {
                          "lat": 51.5123266,
                          "lng": -0.1669159
                        }
                      ]
                    },
                    {
                      "id": 2,
                      "type": "basic",
                      "mode": "walk",
                      "directions": "Go to 'Hyde Park Street, Stop D'",
                      "distance": 33,
                      "travel_time": 48,
                      "coords": [
                        {
                          "lat": 51.5123266,
                          "lng": -0.1669159
                        },
                        {
                          "lat": 51.5125734047,
                          "lng": -0.1672023418
                        }
                      ]
                    },
                    {
                      "id": 3,
                      "type": "public_transport",
                      "mode": "bus",
                      "directions": "Take a bus (94) from 'Hyde Park Street' (leaves at 08:20) to 'New Bond Street' (arrives at 08:33) (4 stops)",
                      "distance": 0,
                      "travel_time": 425,
                      "coords": [
                        {
                          "lat": 51.5125734047,
                          "lng": -0.1672023418
                        },
                        {
                          "lat": 51.5131251817,
                          "lng": -0.1622368953
                        },
                        {
                          "lat": 51.5137366459,
                          "lng": -0.1565050722
                        },
                        {
                          "lat": 51.5141319693,
                          "lng": -0.1524824953
                        },
                        {
                          "lat": 51.5148142747,
                          "lng": -0.1461422065
                        }
                      ],
                      "line": "94",
                      "departure_station": "Hyde Park Street",
                      "arrival_station": "New Bond Street",
                      "departs_at": "08:20",
                      "arrives_at": "08:33",
                      "num_stops": 4
                    },
                    {
                      "id": 4,
                      "type": "public_transport",
                      "mode": "bus",
                      "directions": "Take a bus (13) from 'New Bond Street' (leaves at 08:18) to 'Haymarket  Jermyn Street' (arrives at 08:41) (4 stops)",
                      "distance": 0,
                      "travel_time": 400,
                      "coords": [
                        {
                          "lat": 51.5148142747,
                          "lng": -0.1461422065
                        },
                        {
                          "lat": 51.5145906148,
                          "lng": -0.1416690138
                        },
                        {
                          "lat": 51.5113027982,
                          "lng": -0.1390502284
                        },
                        {
                          "lat": 51.5100605171,
                          "lng": -0.135570147
                        },
                        {
                          "lat": 51.5096826461,
                          "lng": -0.1327322109
                        }
                      ],
                      "line": "13",
                      "departure_station": "New Bond Street",
                      "arrival_station": "Haymarket  Jermyn Street",
                      "departs_at": "08:18",
                      "arrives_at": "08:41",
                      "num_stops": 4
                    },
                    ...
                  ]
                }
              }
            ]
          }
        ],
        "unreachable": []
      }
    ]
  }