Page Summary
-
CustomRoutesOptions.TravelModeis 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 andTWO_WHEELERfor 2-wheeled vehicles. -
This annotation allows developers to tailor directions based on the specific type of vehicle used by the user.
Specifies the type of transportation used to tailor the directions. The default is DRIVING.
Constant Summary
| int | DRIVING | Provides directions based on travel for a 4-wheeled, motorized vehicle. |
| int | TWO_WHEELER | Provides directions based on travel for 2-wheeled, motorized transport. |
Inherited Method Summary
Constants
public static final int DRIVING
Provides directions based on travel for a 4-wheeled, motorized vehicle. For example, a car or truck.
public static final int TWO_WHEELER
Provides directions based on travel for 2-wheeled, motorized transport. For example, a motorcycle or scooter.