GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
GMSNavigationRoutingStrategy is 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.
GMSNavigationRoutingStrategyShorter prioritizes the shortest route based on distance.
GMSNavigationRoutingStrategyDeltaToTargetDistance ranks routes based on their absolute difference from a target distance.
GMSNavigationRoutingStrategy
enumGMSNavigationRoutingStrategy: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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-27 UTC."],[],["The `GMSNavigationRoutingStrategy` enum defines how routes are ranked during navigation and re-routing. `GMSNavigationRoutingStrategyDefaultBest` ranks routes using the NavSDK's default cost model and is the default setting. `GMSNavigationRoutingStrategyShorter` prioritizes the shortest route based on distance. `GMSNavigationRoutingStrategyDeltaToTargetDistance` ranks routes by the difference to a target distance, from smallest to largest difference. Each strategy is assigned a unique integer value in both Swift and Objective-C.\n"]]