AlternateRoutesStrategy

  • AlternateRoutesStrategy is an enum used to define how alternate routes are displayed in Google Maps Navigation.

  • It offers three options: SHOW_ALL, SHOW_NONE, and SHOW_ONE.

  • SHOW_ALL displays all available alternate routes, SHOW_NONE disables alternate routes, and SHOW_ONE shows a maximum of one alternate route.

  • This enum extends the standard Java Enum class and inherits its methods for comparison, equality checks, and obtaining enum values.

public final enum AlternateRoutesStrategy extends Enum<AlternateRoutesStrategy>

Desired display strategy for showing alternate routes.

Inherited Method Summary

Enum Values

public static final AlternateRoutesStrategy SHOW_ALL

Show all available alternate routes.

public static final AlternateRoutesStrategy SHOW_NONE

Do not show alternate routes.

public static final AlternateRoutesStrategy SHOW_ONE

Show at most one alternate route.