You can use the Routing API to optimize the routing for specific modes of transport.
You specify modes of transport with the
TransportModes request parameter. You can use one of the following modes from the list below.
- car: routing for cars, adheres to link rules and restrictions such as speed limits or direction of travel. Can consider traffic if it is enabled.
- carHOV: same as routing for cars, but also allows usage of HOV (high-occupancy vehicle) lanes and roads.
- pedestrian: routing for pedestrians. Considers pedestrian maneuverability of links but disregards traffic.
- bicycle: routing for bicycles, currently in Beta version. Uses the pedestrian road network. Roads are considered to be open for cycling if they are open for both cars and pedestrians, or if they are pedestrian roadways in a park. The routing algorithm may consider roads not open for cycling, including travelling the wrong way down one-way streets, but only at walking speed. Traffic information is not used in this mode.
For more information on transport modes, see TrafficModeType.