RoutingOptions.RoutingStrategy

  • RoutingOptions.RoutingStrategy is an annotation that defines how routes are ranked during navigation.

  • The default strategy, DEFAULT_BEST, uses the Navigation SDK's cost model for ranking.

  • Alternative strategies include SHORTER (prioritizes distance) and TARGET_DISTANCE (ranks based on proximity to specified target distances).

  • Developers can select the routing strategy to influence route selection and re-routing behavior.

public static abstract @interface RoutingOptions.RoutingStrategy implements Annotation

The routing strategy specifies how routes are ranked, which affects the route that is chosen initially, and during re-routing. The default is DEFAULT_BEST.

Constant Summary

int DEFAULT_BEST Ranks routes by NavSDK's default cost model.
int SHORTER Ranks routes by distance, shortest first.
int TARGET_DISTANCE Ranks routes based on absolute delta to each distance provided by RoutingOptions.targetDistancesMeters(List).

Inherited Method Summary

Constants

public static final int DEFAULT_BEST

Ranks routes by NavSDK's default cost model. This is the default routing strategy for navigating.

Constant Value: 0

public static final int SHORTER

Ranks routes by distance, shortest first.

Constant Value: 1

public static final int TARGET_DISTANCE

Ranks routes based on absolute delta to each distance provided by RoutingOptions.targetDistancesMeters(List).

Constant Value: 2