GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSNavigationNavState
enum GMSNavigationNavState : NSInteger {}
The state of navigation.
-
Error or unspecified state.
Declaration
Objective-C
GMSNavigationNavStateUnknown = 0
-
Actively navigating. Information about the upcoming maneuver step is available.
Declaration
Objective-C
GMSNavigationNavStateEnroute = 1
-
Actively navigating but searching for a new route. The upcoming maneuver step is not yet
available.
Declaration
Objective-C
GMSNavigationNavStateRerouting = 2
-
Declaration
Objective-C
GMSNavigationNavStateStopped = 3
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\u003eGMSNavigationNavState\u003c/code\u003e is an enum defining the current state of navigation.\u003c/p\u003e\n"],["\u003cp\u003eIt includes four states: \u003ccode\u003eunknown\u003c/code\u003e, \u003ccode\u003eenroute\u003c/code\u003e, \u003ccode\u003ererouting\u003c/code\u003e, and \u003ccode\u003estopped\u003c/code\u003e, indicating errors, active navigation, route recalculation, and navigation completion, respectively.\u003c/p\u003e\n"],["\u003cp\u003eEach state provides information about the navigation process, such as whether maneuver information is available or if a new route is being searched for.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this enum to understand and respond to different navigation scenarios within their applications.\u003c/p\u003e\n"]]],[],null,["# GoogleNavigation Framework Reference\n\nGMSNavigationNavState\n=====================\n\n enum GMSNavigationNavState : NSInteger {}\n\nThe state of navigation.\n- `\n ``\n ``\n `\n\n ### [GMSNavigationNavStateUnknown](#/c:@E@GMSNavigationNavState@GMSNavigationNavStateUnknown)\n\n `\n ` \n Error or unspecified state. \n\n #### Declaration\n\n Swift \n\n case unknown = 0\n\n Objective-C \n\n GMSNavigationNavStateUnknown = 0\n\n- `\n ``\n ``\n `\n\n ### [GMSNavigationNavStateEnroute](#/c:@E@GMSNavigationNavState@GMSNavigationNavStateEnroute)\n\n `\n ` \n Actively navigating. Information about the upcoming maneuver step is available. \n\n #### Declaration\n\n Swift \n\n case enroute = 1\n\n Objective-C \n\n GMSNavigationNavStateEnroute = 1\n\n- `\n ``\n ``\n `\n\n ### [GMSNavigationNavStateRerouting](#/c:@E@GMSNavigationNavState@GMSNavigationNavStateRerouting)\n\n `\n ` \n Actively navigating but searching for a new route. The upcoming maneuver step is not yet\n available. \n\n #### Declaration\n\n Swift \n\n case rerouting = 2\n\n Objective-C \n\n GMSNavigationNavStateRerouting = 2\n\n- `\n ``\n ``\n `\n\n ### [GMSNavigationNavStateStopped](#/c:@E@GMSNavigationNavState@GMSNavigationNavStateStopped)\n\n `\n ` \n Navigation has ended. \n\n #### Declaration\n\n Swift \n\n case stopped = 3\n\n Objective-C \n\n GMSNavigationNavStateStopped = 3"]]