# GoogleNavigation Framework Reference

# GMSRouteStatus

    enum GMSRouteStatus : NSInteger {}

A `GMSRouteStatus` is a status code that represents the result of a route request.
- `


  ### [GMSRouteStatusInternalError](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSRouteStatus#/c:@E@GMSRouteStatus@GMSRouteStatusInternalError)


  ` A route could not be calculated because of an internal error. In some case, this can be
  resolved by updating to a newer SDK version.

  #### Declaration

  Swift

      case internalError = 0

  Objective-C

      GMSRouteStatusInternalError = 0

- `


  ### [GMSRouteStatusOK](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSRouteStatus#/c:@E@GMSRouteStatus@GMSRouteStatusOK)


  ` A route to the destination was successfully calculated.

  #### Declaration

  Swift

      case OK = 1

  Objective-C

      GMSRouteStatusOK

- `


  ### [GMSRouteStatusNoRouteFound](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSRouteStatus#/c:@E@GMSRouteStatus@GMSRouteStatusNoRouteFound)


  ` A route to the destination could not be calculated.

  #### Declaration

  Swift

      case noRouteFound = 2

  Objective-C

      GMSRouteStatusNoRouteFound

- `


  ### [GMSRouteStatusNetworkError](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSRouteStatus#/c:@E@GMSRouteStatus@GMSRouteStatusNetworkError)


  ` A route to the destination could not be calculated because of a network error.

  #### Declaration

  Swift

      case networkError = 3

  Objective-C

      GMSRouteStatusNetworkError

- `


  ### [GMSRouteStatusQuotaExceeded](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSRouteStatus#/c:@E@GMSRouteStatus@GMSRouteStatusQuotaExceeded)


  ` A route to the destination could not be calculated because of insufficient quota.

  #### Declaration

  Swift

      case quotaExceeded = 4

  Objective-C

      GMSRouteStatusQuotaExceeded

- `


  ### [GMSRouteStatusAPIKeyNotAuthorized](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSRouteStatus#/c:@E@GMSRouteStatus@GMSRouteStatusAPIKeyNotAuthorized)


  ` A route could not be calculated because the provided key does not have permission to use the
  Navigation SDK.

  #### Declaration

  Swift

      case apiKeyNotAuthorized = 5

  Objective-C

      GMSRouteStatusAPIKeyNotAuthorized

- `


  ### [GMSRouteStatusCanceled](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSRouteStatus#/c:@E@GMSRouteStatus@GMSRouteStatusCanceled)


  ` The route calculation was canceled in favor of a newer one.

  #### Declaration

  Swift

      case canceled = 6

  Objective-C

      GMSRouteStatusCanceled

- `


  ### [GMSRouteStatusDuplicateWaypointsError](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSRouteStatus#/c:@E@GMSRouteStatus@GMSRouteStatusDuplicateWaypointsError)


  ` A route could not be calculated because there were duplicate waypoints present in the request.

  #### Declaration

  Swift

      case duplicateWaypointsError = 7

  Objective-C

      GMSRouteStatusDuplicateWaypointsError

- `


  ### [GMSRouteStatusNoWaypointsError](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSRouteStatus#/c:@E@GMSRouteStatus@GMSRouteStatusNoWaypointsError)


  ` A route could not be calculated because no waypoints were provided.

  #### Declaration

  Swift

      case noWaypointsError = 8

  Objective-C

      GMSRouteStatusNoWaypointsError

- `


  ### [GMSRouteStatusLocationUnavailable](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSRouteStatus#/c:@E@GMSRouteStatus@GMSRouteStatusLocationUnavailable)


  ` A route could not be calculated because the user's location is not available. This could be
  because the user hasn't granted location permissions for the app.

  #### Declaration

  Swift

      case locationUnavailable = 9

  Objective-C

      GMSRouteStatusLocationUnavailable

- `


  ### [GMSRouteStatusWaypointError](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSRouteStatus#/c:@E@GMSRouteStatus@GMSRouteStatusWaypointError)


  ` A route could not be generated because there was a problem with the waypoints provided in the
  request. For example, a stale or invalid Place ID may have been provided.

  #### Declaration

  Swift

      case waypointError = 10

  Objective-C

      GMSRouteStatusWaypointError

- `


  ### [GMSRouteStatusTravelModeUnsupported](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSRouteStatus#/c:@E@GMSRouteStatus@GMSRouteStatusTravelModeUnsupported)


  ` A route could not be generated if given an unsupported travel mode. For example, if you are
  setting destinations with a route token, only Driving and TwoWheeler travel mode are supported.

  #### Declaration

  Swift

      case travelModeUnsupported = 11

  Objective-C

      GMSRouteStatusTravelModeUnsupported