GMSPlacesErrors

GMSPlacesErrors

Enumerations

enum  GMSPlacesErrorCode {
  kGMSPlacesNetworkError = -1, kGMSPlacesServerError = -2, kGMSPlacesInternalError = -3, kGMSPlacesKeyInvalid = -4,
  kGMSPlacesKeyExpired = -5, kGMSPlacesUsageLimitExceeded = -6, kGMSPlacesRateLimitExceeded = -7, kGMSPlacesDeviceRateLimitExceeded = -8,
  kGMSPlacesAccessNotConfigured = -9, kGMSPlacesIncorrectBundleIdentifier = -10, kGMSPlacesLocationError = -11, kGMSPlacesInvalidRequest = -12
}
 Error codes for kGMSPlacesErrorDomain. More...

Variables

NSString *const kGMSPlacesErrorDomain
 Error domain used for Places SDK errors.

Enumeration Type Documentation

Error codes for kGMSPlacesErrorDomain.

Enumerator:
kGMSPlacesNetworkError 

Something went wrong with the connection to the Places API server.

kGMSPlacesServerError 

The Places API server returned a response that we couldn't understand.

If you believe this error represents a bug, please file a report using the instructions on our community and support page.

kGMSPlacesInternalError 

An internal error occurred in the Places SDK library.

If you believe this error represents a bug, please file a report using the instructions on our community and support page.

kGMSPlacesKeyInvalid 

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.

kGMSPlacesKeyExpired 

Operation failed due to an expired API key.

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

kGMSPlacesUsageLimitExceeded 

Operation failed due to exceeding the quota usage limit.

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

kGMSPlacesRateLimitExceeded 

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. See the usage limits guide for more information.

kGMSPlacesDeviceRateLimitExceeded 

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. See the usage limits guide for more information.

kGMSPlacesAccessNotConfigured 

The Places API service for iOS is not enabled.

See the developer's guide to learn how to set up the Places SDK for iOS or the migration guide if you are migrating from an earlier version.

kGMSPlacesIncorrectBundleIdentifier 

The application's bundle identifier does not match one of the allowed iOS applications for the API key.

See the developer's guide for how to configure bundle restrictions on API keys.

kGMSPlacesLocationError 

The Places SDK could not find the user's location.

This may be because the user has not allowed the application to access location information.

kGMSPlacesInvalidRequest 

The Places SDK could not process the invalid request.

If you believe this error represents a bug, please file a report using the instructions on our community and support page.


Variable Documentation

NSString* const kGMSPlacesErrorDomain

Error domain used for Places SDK errors.

Send feedback about...