On-demand Rides and Deliveries Solution is currently available only to select partners. Contact sales to learn more.

NavigationApi.ErrorCode

Stay organized with collections Save and categorize content based on your preferences.
public static abstract @interface NavigationApi.ErrorCode implements Annotation

An ErrorCode is a status code returned by getNavigator(Activity, NavigatorListener) and 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.

Constant Value: 4

public static final int NETWORK_ERROR

The Navigation API is unable to access the internet.

Constant Value: 3

public static final int NOT_AUTHORIZED

The API key you supplied is not authorized to use the Navigation API. You may need to request provisioning of the Navigation SDK through your Google Maps APIs representative. Your app should fall back to another navigation mechanism if this code is received.

Constant Value: 1

public static final int TERMS_NOT_ACCEPTED

The user has not accepted Google's Navigation terms.

Constant Value: 2