AI-generated Key Takeaways
-
GMSNavigationAlternateRoutesStrategyis an enum used to specify the maximum number of alternate routes to be requested during navigation. -
The strategy can be set to show all available alternate routes (
all), no alternate routes (none), or just one alternate route (one). -
Each strategy option is represented by an integer value and is available in both Swift and Objective-C.
GMSNavigationAlternateRoutesStrategy
enum GMSNavigationAlternateRoutesStrategy : NSInteger {}Indicates the maximum number of alternate routes that can be requested.
-
All available alternate routes should be shown.
Declaration
Swift
case all = 0Objective-C
GMSNavigationAlternateRoutesStrategyAll = 0 -
No alternate routes should be shown.
Declaration
Swift
case none = 1Objective-C
GMSNavigationAlternateRoutesStrategyNone -
One alternate route should be shown.
Declaration
Swift
case one = 2Objective-C
GMSNavigationAlternateRoutesStrategyOne