CustomRoutesOptions.TravelMode
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
CustomRoutesOptions.TravelMode is an annotation used to specify the mode of transportation for route calculation in Google Maps Navigation for Android.
It offers two travel modes: DRIVING (default) for 4-wheeled vehicles and TWO_WHEELER for 2-wheeled vehicles.
This annotation allows developers to tailor directions based on the specific type of vehicle used by the user.
public static abstract @interface
CustomRoutesOptions.TravelMode
implements
Annotation
Specifies the type of transportation used to tailor the directions. The default is DRIVING.
[[["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 2026-01-07 UTC."],[],[]]