GMSNavigationRoutingStrategy
enum GMSNavigationRoutingStrategy : NSInteger {}
The routing strategy specifies how routes are ranked, which affects the route when it is chosen
and during re-routing. The default value is GMSNavigationRoutingStrategyDefaultBest
.
-
Ranks routes by NavSDK default cost model. This is the default routing strategy for navigating.
Declaration
Swift
case defaultBest = 0
Objective-C
GMSNavigationRoutingStrategyDefaultBest = 0
-
Ranks routes by distance. The highest ranking route is the shortest of those returned.
Declaration
Swift
case shorter = 1
Objective-C
GMSNavigationRoutingStrategyShorter
-
Ranks routes by absolute delta to a target distance, from smallest to largetest
Declaration
Swift
case deltaToTargetDistance = 2
Objective-C
GMSNavigationRoutingStrategyDeltaToTargetDistance