AI-generated Key Takeaways
-
RoutingOptions.RoutingStrategyis 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) andTARGET_DISTANCE(ranks based on proximity to specified target distances). -
Developers can select the routing strategy to influence route selection and re-routing behavior.
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.
public static final int SHORTER
Ranks routes by distance, shortest first.
public static final int TARGET_DISTANCE
Ranks routes based on absolute delta to each distance provided by RoutingOptions.targetDistancesMeters(List.