Routes Preferred API is currently available only to select customers.
Contact sales to learn more.
RouteTravelMode
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
Specifies the mode of travel for a journey, defaulting to driving if unspecified.
Includes common options like driving, bicycling, walking, and two-wheeler motorized travel.
Features a specialized mode for taxis, potentially utilizing designated lanes for optimized routes.
Offers 'TWO_WHEELER' as a distinct category for motorized two-wheelers, separate from bicycles.
Utilizes 'TRAVEL_MODE_UNSPECIFIED' to signify the absence of a specified mode, automatically reverting to 'DRIVE'.
A set of values used to specify the mode of travel.
Enums
TRAVEL_MODE_UNSPECIFIED
No travel mode specified. Defaults to DRIVE
.
DRIVE
Travel by passenger car.
BICYCLE
Travel by bicycle.
WALK
Travel by walking.
TWO_WHEELER
Two-wheeled, motorized vehicle. For example, motorcycle. Note that this differs from the BICYCLE
travel mode which covers human-powered mode.
TAXI
Travel by licensed taxi, which may allow the vehicle to travel on designated taxi lanes in some areas.
TAXI mode is an experimental feature. If customer requests TAXI route in a city where taxi lane data is not available, a DRIVE route is returned.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-27 UTC."],[],[]]