To send a request to the Intermodal Routing API v8, the basic elements shown in the following table are required:
Table 1. Required request parameters
|Base URL||string, ||Production environment|
|Version||string, ||The API version to use|
|Resource||string, ||The endpoint to access the resource|
| ||string, ||The origin WGS-84 compliant coordinates of the request|
| ||string, ||The destination WGS-84 compliant coordinates of the request|
For more information, see the following response examples:
The response to the above request delivers the following high-level elements:
notices(optional) object with a list of issues related to the response
routesobject with a list of sections for each transit route alternative.
For a comprehensive list of request parameters available to the Intermodal Routing API, see the Routing section of the Intermodal Routing API Reference.
These are some commonly used request parameters available for all services of the Intermodal Routing API:
departureTimeparameter to request a route for a later time. By default, a route starting right now is computed.
alternativesrepresents the number of alternative routes to return aside from the optimal route. By default, it is set to
routesobject only contains departure, arrival and transport mode nodes for each section of the journey. Set the
returnparameter for additional attributes such as fare information (if present), turn-by-turn navigation or geometry information about the route taken. See the API Reference for more details.
changesparameter to a value from 0 to 6. By default, an unlimited number of changes is permitted.