Summary: Constants | Inherited Constants | Methods | Inherited Methods | [Expand All]
public class

# PlacesStatusCodes

extends CommonStatusCodes

java.lang.Object
↳ | com.google.android.gms.common.api.CommonStatusCodes
| ↳ | com.google.android.gms.location.places.PlacesStatusCodes

## Class Overview

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

## Summary

Constants
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.

[Expand] Inherited Constants
From class com.google.android.gms.common.api.CommonStatusCodes
int | API_NOT_CONNECTED | The client attempted to call a method from an API that failed to connect.
int | CANCELED | The result was canceled either due to client disconnect or `cancel()`.
int | DEVELOPER_ERROR | The application is misconfigured.
int | ERROR | The operation failed with no more detailed information.
int | INTERNAL_ERROR | An internal error occurred.
int | INTERRUPTED | A blocking call was interrupted while waiting and did not run to completion.
int | INVALID_ACCOUNT | The client attempted to connect to the service with an invalid account name specified.
int | NETWORK_ERROR | A network error occurred.
int | RESOLUTION_REQUIRED | Completing the operation requires some form of resolution.
int | SERVICE_DISABLED | This constant is deprecated. This case handled during connection, not during API requests. No results should be returned with this status code.
int | SERVICE_VERSION_UPDATE_REQUIRED | This constant is deprecated. This case handled during connection, not during API requests. No results should be returned with this status code.
int | SIGN_IN_REQUIRED | The client attempted to connect to the service but the user is not signed in.
int | SUCCESS | The operation was successful.
int | SUCCESS_CACHE | The operation was successful, but was used the device's cache.
int | TIMEOUT | Timed out while awaiting the result.

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

[Expand] Inherited Methods
From class com.google.android.gms.common.api.CommonStatusCodes
static String | getStatusCodeString(int statusCode)
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## 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 (0x0000232b)

#### 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 (0x0000232e)

#### 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 (0x00002330)

#### public static final int INVALID_ARGUMENT

Operation failed due to an invalid argument.

Constant Value: 9004 (0x0000232c)

#### 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 (0x0000232f)

#### 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 (0x0000232a)

#### 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 (0x0000232d)

#### 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 (0x00002329)

## 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.