AI-generated Key Takeaways
-
GMSNavigationAlternateRoutesStrategy
is 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 = 0
Objective-C
GMSNavigationAlternateRoutesStrategyAll = 0
-
No alternate routes should be shown.
Declaration
Swift
case none = 1
Objective-C
GMSNavigationAlternateRoutesStrategyNone
-
One alternate route should be shown.
Declaration
Swift
case one = 2
Objective-C
GMSNavigationAlternateRoutesStrategyOne