RouteTravelMode
Stay organized with collections
Save and categorize content based on your preferences.
A set of values used to specify the mode of travel. NOTE: WALK
, BICYCLE
, and TWO_WHEELER
routes are in beta and might sometimes be missing clear sidewalks, pedestrian paths, or bicycling paths. You must display this warning to the user for all walking, bicycling, and two-wheel routes that you display in your app.
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. |
TRANSIT |
Travel by public transit routes, where available. |
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.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003eTravel modes include driving, bicycling, walking, two-wheeled vehicles, and transit, with driving as the default if unspecified.\u003c/p\u003e\n"],["\u003cp\u003eWalking, bicycling, and two-wheeler routes are in beta and may have incomplete pedestrian or cycling paths, requiring a user warning.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTWO_WHEELER\u003c/code\u003e refers to motorized two-wheelers like motorcycles, distinct from the human-powered \u003ccode\u003eBICYCLE\u003c/code\u003e mode.\u003c/p\u003e\n"]]],["The content defines travel modes, including `DRIVE`, `BICYCLE`, `WALK`, `TWO_WHEELER`, and `TRANSIT`. `WALK`, `BICYCLE`, and `TWO_WHEELER` are in beta and may lack clear paths, requiring a warning display to users. `TRAVEL_MODE_UNSPECIFIED` defaults to `DRIVE`. `TWO_WHEELER` refers to motorized two-wheeled vehicles, distinguishing it from human-powered `BICYCLE` travel. Each mode specifies the means of travel.\n"],null,["# RouteTravelMode\n\nA set of values used to specify the mode of travel. NOTE: `WALK`, `BICYCLE`, and `TWO_WHEELER` routes are in beta and might sometimes be missing clear sidewalks, pedestrian paths, or bicycling paths. You must display this warning to the user for all walking, bicycling, and two-wheel routes that you display in your app.\n\n| Enums ||\n|---------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| `TRAVEL_MODE_UNSPECIFIED` | No travel mode specified. Defaults to `DRIVE`. |\n| `DRIVE` | Travel by passenger car. |\n| `BICYCLE` | Travel by bicycle. |\n| `WALK` | Travel by walking. |\n| `TWO_WHEELER` | Two-wheeled, motorized vehicle. For example, motorcycle. Note that this differs from the `BICYCLE` travel mode which covers human-powered mode. |\n| `TRANSIT` | Travel by public transit routes, where available. |"]]