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 | The Navigation API is unable to access the internet. |
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.
public static final int NETWORK_ERROR
The Navigation API is unable to access the internet.
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.
public static final int TERMS_NOT_ACCEPTED
The user has not accepted Google's Navigation terms.