Route Two-wheeled VehiclesStay organized with collectionsSave and categorize content based on your preferences.
Page Summary
Routes Preferred APIs support four travel modes: drive, walk, bicycle, and two-wheeler (motorcycles).
Two-wheeler travel mode is distinct from bicycle travel mode, catering to motorized two-wheeled vehicles instead of human-powered ones.
When using Routes Preferred APIs, specify the desired travel mode using theRouteTravelModeenumeration value within the request.
An example demonstrates how to set thetravelModeto "TWO_WHEELER" within theComputeRoutes()method request body, illustrating its practical application.
Routes Preferred APIs support four travel modes:
Drive
Walk
Bicycle
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.
Specifying the two-wheeler travel mode
When you call the Routes Preferred APIs, you use aRouteTravelModeenumeration value to specify the travel mode.
Example
The following example demonstrates how to set the travel mode in theComputeRoutes()method request
body.
[[["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-12-18 UTC."],[],["The Routes Preferred APIs support four travel modes: Drive, Walk, Bicycle, and Two-wheeler, where Two-wheeler refers to motorized two-wheeled vehicles. To use a specific mode, utilize the `RouteTravelMode` enumeration in the API call. For example, to specify the two-wheeler mode in the `ComputeRoutes()` method request body, set the `\"travelMode\"` parameter to `\"TWO_WHEELER\"`. The two-wheeler mode is distinct from the bicycle mode, which is human-powered.\n"]]