PlacesStatusCodes

public class PlacesStatusCodes extends CommonStatusCodes

This class is deprecated.
The Google Play Services Places SDK is deprecated. A new SDK is available. See the client migration guide for more information.

Places API specific status codes, for use in getStatusCode()

Constant Summary

int ACCESS_NOT_CONFIGURED Operation failed due to an invalid quota project.
int DEVICE_RATE_LIMIT_EXCEEDED Operation failed due to exceeding the per-device usage rate limit.
int INVALID_APP Operation failed due to the app not being allowed to use the API key.
int INVALID_ARGUMENT Operation failed due to an invalid argument.
int KEY_EXPIRED Operation failed due to an expired API key.
int KEY_INVALID Operation failed due to an invalid (malformed or missing) API key.
int RATE_LIMIT_EXCEEDED Operation failed due to exceeding the usage rate limit for the API key.
int USAGE_LIMIT_EXCEEDED Operation failed due to exceeding the quota usage limit.

Inherited Constant Summary

Public Method Summary

static String
getStatusCodeString(int statusCode)
Returns a string containing the name of the given status code.

Inherited Method Summary

Constants

public static final int ACCESS_NOT_CONFIGURED

Operation failed due to an invalid quota project.

Check that "Google Places API for Android" is enabled for your API key. See the developer's guide for more information.

Constant Value: 9003

public static final int DEVICE_RATE_LIMIT_EXCEEDED

Operation failed due to exceeding the per-device usage rate limit.

This status code shouldn't be returned during normal usage of the API. It relates to usage of the API that far exceeds normal request levels.

Constant Value: 9006

public static final int INVALID_APP

Operation failed due to the app not being allowed to use the API key.

Check that the list of allowed apps for your API key includes the package name and SHA1 certificate fingerprint of your app. See the developer's guide for more information on how to do this.

Constant Value: 9008

public static final int INVALID_ARGUMENT

Operation failed due to an invalid argument.

Constant Value: 9004

public static final int KEY_EXPIRED

Operation failed due to an expired API key.

See the developer's guide for information on creating and using an API key.

Constant Value: 9007

public static final int KEY_INVALID

Operation failed due to an invalid (malformed or missing) API key.

See the developer's guide for information on creating and using an API key.

Constant Value: 9002

public static final int RATE_LIMIT_EXCEEDED

Operation failed due to exceeding the usage rate limit for the API key.

This status code shouldn't be returned during normal usage of the API. It relates to usage of the API that far exceeds normal request levels.

Constant Value: 9005

public static final int USAGE_LIMIT_EXCEEDED

Operation failed due to exceeding the quota usage limit.

See the developer's guide for information on usage limits and how to request a higher limit.

Constant Value: 9001

Public Methods

public static String getStatusCodeString (int statusCode)

Returns a string containing the name of the given status code.

For example, if KEY_INVALID is passed to this method, it will return the string "PLACES_API_KEY_INVALID".

Note that the output of this method is not localized or user-friendly. It is recommended for debugging only.

Returns
  • The name of the given status code.