CustomRoutesOptions.TravelMode

  • 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.

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.

Constant Value: 0

public static final int TWO_WHEELER

Provides directions based on travel for 2-wheeled, motorized transport. For example, a motorcycle or scooter.

Constant Value: 1