GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSNavigationAlternateRoutesStrategy
enum GMSNavigationAlternateRoutesStrategy : NSInteger {}
Indicates the maximum number of alternate routes that can be requested.
-
All available alternate routes should be shown.
Declaration
Objective-C
GMSNavigationAlternateRoutesStrategyAll = 0
-
No alternate routes should be shown.
Declaration
Objective-C
GMSNavigationAlternateRoutesStrategyNone
-
One alternate route should be shown.
Declaration
Objective-C
GMSNavigationAlternateRoutesStrategyOne
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSNavigationAlternateRoutesStrategy\u003c/code\u003e is an enum used to specify the maximum number of alternate routes to be requested during navigation.\u003c/p\u003e\n"],["\u003cp\u003eThe strategy can be set to show all available alternate routes (\u003ccode\u003eall\u003c/code\u003e), no alternate routes (\u003ccode\u003enone\u003c/code\u003e), or just one alternate route (\u003ccode\u003eone\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eEach strategy option is represented by an integer value and is available in both Swift and Objective-C.\u003c/p\u003e\n"]]],[],null,["# GoogleNavigation Framework Reference\n\nGMSNavigationAlternateRoutesStrategy\n====================================\n\n enum GMSNavigationAlternateRoutesStrategy : NSInteger {}\n\nIndicates the maximum number of alternate routes that can be requested.\n- `\n ``\n ``\n `\n\n ### [GMSNavigationAlternateRoutesStrategyAll](#/c:@E@GMSNavigationAlternateRoutesStrategy@GMSNavigationAlternateRoutesStrategyAll)\n\n `\n ` \n All available alternate routes should be shown. \n\n #### Declaration\n\n Swift \n\n case all = 0\n\n Objective-C \n\n GMSNavigationAlternateRoutesStrategyAll = 0\n\n- `\n ``\n ``\n `\n\n ### [GMSNavigationAlternateRoutesStrategyNone](#/c:@E@GMSNavigationAlternateRoutesStrategy@GMSNavigationAlternateRoutesStrategyNone)\n\n `\n ` \n No alternate routes should be shown. \n\n #### Declaration\n\n Swift \n\n case none = 1\n\n Objective-C \n\n GMSNavigationAlternateRoutesStrategyNone\n\n- `\n ``\n ``\n `\n\n ### [GMSNavigationAlternateRoutesStrategyOne](#/c:@E@GMSNavigationAlternateRoutesStrategy@GMSNavigationAlternateRoutesStrategyOne)\n\n `\n ` \n One alternate route should be shown. \n\n #### Declaration\n\n Swift \n\n case one = 2\n\n Objective-C \n\n GMSNavigationAlternateRoutesStrategyOne"]]