PlacesStatusCodes

public final class PlacesStatusCodes extends CommonStatusCodes

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

Constant Summary

int INVALID_REQUEST Operation failed due to an invalid request.
int NOT_FOUND Operation failed due to no results being found by the server.
int OVER_QUERY_LIMIT Operation failed due to exceeding the query limits.
int REQUEST_DENIED Operation failed due to authorization issues.

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

static String
getStatusCodeString(int statusCode)
Returns an untranslated debug string (not user-friendly!) based on the provided status code.
static boolean
isError(int statusCode)
Returns whether the given status code is identified as an error.

Inherited Method Summary

Constants

public static final int INVALID_REQUEST

Operation failed due to an invalid request.

Constant Value: 9012

public static final int NOT_FOUND

Operation failed due to no results being found by the server.

Constant Value: 9013

public static final int OVER_QUERY_LIMIT

Operation failed due to exceeding the query limits.

Verify that the billing is enabled and the provided method of payment is valid. Otherwise, you may have exceeded the QPS limits for a given API. See the FAQs for information about resolving this error.

Constant Value: 9010

public static final int REQUEST_DENIED

Operation failed due to authorization issues.

Check that the API key is set, not expired and configured with the correct key restrictions. See the developer's guide for information on creating and using an API key.

Constant Value: 9011

Public Constructors

public PlacesStatusCodes ()

Public Methods

public static String getStatusCodeString (int statusCode)

Returns an untranslated debug string (not user-friendly!) based on the provided status code.

Parameters
statusCode

public static boolean isError (int statusCode)

Returns whether the given status code is identified as an error.

Parameters
statusCode

发送以下问题的反馈:

此网页
Places SDK for Android