You can get a route suited to different types of vehicles. If you don't specify a vehicle type, the Routes API uses the default of a gasoline powered car.
You set the mode of transportation using the travelMode
parameter, with choices of
transit, driving, two-wheeled vehicles, walking, or bicycling.
| Vehicle type | Travel Mode Enum | Description |
|---|---|---|
|
Bicycle
|
BICYCLING
|
Compute a route for bicycles and other human-powered travel. For motorized two-wheeled vehicles, see Two-wheeled. |
DRIVING
|
Compute a driving route. Drive is the default if you don't specify a vehicle type. | |
TWO_WHEELER
|
Two-wheeler refers to two-wheeled motorized vehicles (for example, motorcycles). The two-wheeler travel mode differs from the bicycle travel mode, which is a human-powered travel mode. | |
TRANSIT
|
Get a transit route for navigation instructions using the public transportation options available in the region. Transit options may include buses, subways, and trains, among others. A transit route also usually includes instructions on walking to, from, and between transit stations. | |
|
Walk
|
WALKING
|
Compute a walking route. |

