AI-generated Key Takeaways
- 
          
GMSNavigationNavStateis an enum defining the current state of navigation. - 
          
It includes four states:
unknown,enroute,rerouting, andstopped, indicating errors, active navigation, route recalculation, and navigation completion, respectively. - 
          
Each state provides information about the navigation process, such as whether maneuver information is available or if a new route is being searched for.
 - 
          
Developers can use this enum to understand and respond to different navigation scenarios within their applications.
 
GMSNavigationNavState
enum GMSNavigationNavState : NSInteger {}The state of navigation.
- 
                  
                  
Error or unspecified state.
Declaration
Swift
case unknown = 0Objective-C
GMSNavigationNavStateUnknown = 0 - 
                  
                  
Actively navigating. Information about the upcoming maneuver step is available.
Declaration
Swift
case enroute = 1Objective-C
GMSNavigationNavStateEnroute = 1 - 
                  
                  
Actively navigating but searching for a new route. The upcoming maneuver step is not yet available.
Declaration
Swift
case rerouting = 2Objective-C
GMSNavigationNavStateRerouting = 2 - 
                  
                  
Navigation has ended.
Declaration
Swift
case stopped = 3Objective-C
GMSNavigationNavStateStopped = 3