RouteCalloutInfoFormat

  • RouteCalloutInfoFormat is an enum used to control the display of information (distance or ETA) in route callouts within the Google Maps Navigation SDK for Android.

  • It provides three options: DEFAULT, DISTANCE, and TIME to determine the information displayed.

  • DEFAULT shows time for the best route and distance for the shorter route, while DISTANCE and TIME show only distance or time respectively.

  • Developers can use this enum to customize the content of route callouts in their navigation applications.

public final enum RouteCalloutInfoFormat extends Enum<RouteCalloutInfoFormat>

The format specifies whether to show distance or ETA information in route callouts.

Inherited Method Summary

Enum Values

public static final RouteCalloutInfoFormat DEFAULT

Shows the time or distance information, depending on the RoutingOptions.RoutingStrategy. Shows time with the default best routing strategy, and distance with the shorter routing strategy.

public static final RouteCalloutInfoFormat DISTANCE

Shows distance information in route callouts (e.g., 10 km, 5 km longer).

public static final RouteCalloutInfoFormat TIME

Shows time information in route callouts (e.g., 10 min, 5 min faster).