GuidesAPI Reference
Guides

Bus and taxi routing

📘

Note

This feature is currently in beta.

Bus and taxi modes take into account bus/taxi restricted streets as well as streets reserved for exclusive bus/taxi access.

You can enable bus routing by setting transportMode=bus or transportMode=privateBus and taxi routing by setting transportMode=taxi.

When the request is for transportMode=privateBus, the streets that are marked as exclusive-for-buses in the map-data will be used only when a waypoint is on such a street. The use case of pick-up and drop-off of passengers is supported with this. The mode is meant for private buses that do not have permissions to go through bus-only streets in cities, but might have permissions to pick-up or drop-off passengers on them.

When transportMode=taxi with taxi[allowDriveThroughTaxiRoads]=false parameter is specified, it behaves in a similar fashion on streets exclusive to taxis. This parameter is set to true by default. In addition to that, when the parameter is not set to false, traffic information on roads with taxi lanes is ignored. The assumption is that the taxi can avoid congestion by going through the taxi lane.