GoogleNavigation Framework Reference

  • GMSNavigationNavState is an enum defining the current state of navigation.

  • It includes four states: unknown, enroute, rerouting, and stopped, 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 = 0

    Objective-C

    GMSNavigationNavStateUnknown = 0
  • Actively navigating. Information about the upcoming maneuver step is available.

    Declaration

    Swift

    case enroute = 1

    Objective-C

    GMSNavigationNavStateEnroute = 1
  • Actively navigating but searching for a new route. The upcoming maneuver step is not yet available.

    Declaration

    Swift

    case rerouting = 2

    Objective-C

    GMSNavigationNavStateRerouting = 2
  • Navigation has ended.

    Declaration

    Swift

    case stopped = 3

    Objective-C

    GMSNavigationNavStateStopped = 3