AI-generated Key Takeaways
- 
          GMSNavigationRoutingStrategyis an enum used to define how routes are ranked during navigation and re-routing.
- 
          The default routing strategy, GMSNavigationRoutingStrategyDefaultBest, uses NavSDK's default cost model to rank routes.
- 
          GMSNavigationRoutingStrategyShorterprioritizes the shortest route based on distance.
- 
          GMSNavigationRoutingStrategyDeltaToTargetDistanceranks routes based on their absolute difference from a target distance.
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. DeclarationSwift case defaultBest = 0Objective-C GMSNavigationRoutingStrategyDefaultBest = 0
- 
                  
                  Ranks routes by distance. The highest ranking route is the shortest of those returned. DeclarationSwift case shorter = 1Objective-C GMSNavigationRoutingStrategyShorter
- 
                  
                  Ranks routes by absolute delta to a target distance, from smallest to largetest DeclarationSwift case deltaToTargetDistance = 2Objective-C GMSNavigationRoutingStrategyDeltaToTargetDistance