NavigationApi.ErrorCode

public static abstract @interface NavigationApi.ErrorCode implements Annotation

An ErrorCode is a status code returned by NavigationApi.getNavigator(Activity, NavigatorListener) and NavigationApi.getNavigator(Application, NavigatorListener) when a Navigator could not be successfully obtained.

Constant Summary

int LOCATION_PERMISSION_MISSING Permission to use GPS location has not been granted to the app.
int NETWORK_ERROR This constant is deprecated. In cases of no network connectivity, the Navigation API will wait to fetch the Navigator until connectivity is restored, after which the @code{NavigatorCallback} will be invoked.
int NOT_AUTHORIZED The API key you supplied is not authorized to use the Navigation API.
int TERMS_NOT_ACCEPTED The user has not accepted Google's Navigation terms.

Inherited Method Summary

Constants

public static final int LOCATION_PERMISSION_MISSING

Permission to use GPS location has not been granted to the app.

Constant Value: 4

public static final int NETWORK_ERROR

This constant is deprecated.
In cases of no network connectivity, the Navigation API will wait to fetch the Navigator until connectivity is restored, after which the @code{NavigatorCallback} will be invoked.

Constant Value: 3

public static final int NOT_AUTHORIZED

The API key you supplied is not authorized to use the Navigation API.

Make sure that the "Navigation SDK" API is enabled for your project in the Google Cloud Console.

If you are a Mobility Services customer, you may need to request provisioning through your Google Maps Platform representative.

Constant Value: 1

public static final int TERMS_NOT_ACCEPTED

The user has not accepted Google's Navigation terms.

Constant Value: 2