AI-generated Key Takeaways
-
RoutingOptions.TravelModeis an annotation used to specify the mode of transportation for directions. -
The default travel mode is
DRIVING. -
Available travel modes include
DRIVING,CYCLING,WALKING,TWO_WHEELER, andTAXI. -
Each travel mode provides tailored directions optimized for the specific type of transportation.
-
You can set the desired travel mode using
RoutingOptions.travelMode(int).
Specifies the type of transportation used to tailor the directions. The default is DRIVING.
See Also
Constant Summary
| int | CYCLING | Provides directions based on travel for a bicycle. |
| int | DRIVING | Provides directions based on travel for a 4-wheeled, motorized vehicle. |
| int | TAXI | Provides directions on routes for a vehicle authorized to use taxi lanes. |
| int | TWO_WHEELER | Provides directions based on travel for 2-wheeled, motorized transport. |
| int | WALKING | Provides directions based on walking. |
Inherited Method Summary
Constants
public static final int CYCLING
Provides directions based on travel for a bicycle.
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 TAXI
Provides directions on routes for a vehicle authorized to use taxi lanes. This is an experimental feature.
public static final int TWO_WHEELER
Provides directions based on travel for 2-wheeled, motorized transport. For example, a motorcycle or scooter.
public static final int WALKING
Provides directions based on walking.
Note: During walking navigation, the chevron always points in the direction that the user's device is pointing (toward the top of the device in portrait mode). Keep in mind that when testing with an emulator, neither the chevron direction nor the map orientation will appear to change. However, when using a physical device, the map orientation will change when the device is rotated, while the chevron continues to point in the direction that the device is pointing.