GoogleNavigation Framework Reference

GMSRouteStatus

enum GMSRouteStatus : NSInteger {}

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

  • 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
  • A route to the destination was successfully calculated.

    Declaration

    Swift

    case OK = 1

    Objective-C

    GMSRouteStatusOK
  • A route to the destination could not be calculated.

    Declaration

    Swift

    case noRouteFound = 2

    Objective-C

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

    Declaration

    Swift

    case networkError = 3

    Objective-C

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

    Declaration

    Swift

    case quotaExceeded = 4

    Objective-C

    GMSRouteStatusQuotaExceeded
  • 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
  • The route calculation was canceled in favor of a newer one.

    Declaration

    Swift

    case canceled = 6

    Objective-C

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

    Declaration

    Swift

    case duplicateWaypointsError = 7

    Objective-C

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

    Declaration

    Swift

    case noWaypointsError = 8

    Objective-C

    GMSRouteStatusNoWaypointsError
  • 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
  • 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
  • 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