How to send a taxi and ride request
To send a Taxi and Ride request to the Intermodal Routing API, you must use the request parameters described in the following table. Table 1. Taxi and Ride request parameters
| Name | Format | Description |
|---|---|---|
| Base URL | string, https://intermodal.router.hereapi.com | Production environment |
| Version | string, /v8 | The API version to use |
| Resource | string, /routes | The endpoint to access the resource |
origin | string, "{lat},{lng}" | The origin WGS-84 compliant coordinates of the request |
destination | string, "{lat},{lng}" | The destination WGS-84 compliant coordinates of the request |
taxi[modes] | string, car | Set the specific transport mode of a taxi |
taxi[enable] | string, routeHead | Enables taxi in the head section of the route |
transit[enable] | string, routeTail | Enables transit in the tail section of the route |
rented[enable] | string, `` | Disables rented transport type from the intermodal route computation. By default, it is enabled for all sections of the route |
See how to Calculate a Taxi and Ride Route
Note
For more information on the currently available authentication methods, see the Identity & Access Management Developer Guide. For more information on the services and transport types of the Intermodal Routing API
v8, see the Intermodal Services & Transport Types
section. The response to the above request delivers the following high-level elements:
- metadata – a
notices(optional) object with a list of issues related to the response - response – a
routesobject with a list of sections for each transit route alternative.
For more information on the request parameters, see the Routing section of the Intermodal Routing API Reference
Updated 10 days ago