# GooglePlaces Framework Reference

# GMSPlacesErrorCode

    enum GMSPlacesErrorCode : NSInteger {}

Error codes for `https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Constants/kGMSPlacesErrorDomain.html`.
- `


  ### [kGMSPlacesNetworkError](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlacesErrorCode#/c:@E@GMSPlacesErrorCode@kGMSPlacesNetworkError)


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

  #### Declaration

  Swift

      case networkError = -1

  Objective-C

      kGMSPlacesNetworkError = -1

- `


  ### [kGMSPlacesServerError](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlacesErrorCode#/c:@E@GMSPlacesErrorCode@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](https://developers.google.com/places/ios-sdk/support).

  #### Declaration

  Swift

      case serverError = -2

  Objective-C

      kGMSPlacesServerError = -2

- `


  ### [kGMSPlacesInternalError](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlacesErrorCode#/c:@E@GMSPlacesErrorCode@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](https://developers.google.com/places/ios-sdk/support).

  #### Declaration

  Swift

      case internalError = -3

  Objective-C

      kGMSPlacesInternalError = -3

- `


  ### [kGMSPlacesKeyInvalid](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlacesErrorCode#/c:@E@GMSPlacesErrorCode@kGMSPlacesKeyInvalid)


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


  See the [developer's guide](https://developers.google.com/places/ios-sdk/start)
  for information on creating and using an API key.

  #### Declaration

  Swift

      case keyInvalid = -4

  Objective-C

      kGMSPlacesKeyInvalid = -4

- `


  ### [kGMSPlacesKeyExpired](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlacesErrorCode#/c:@E@GMSPlacesErrorCode@kGMSPlacesKeyExpired)


  ` Operation failed due to an expired API key.


  See the [developer's guide](https://developers.google.com/places/ios-sdk/start)
  for information on creating and using an API key.

  #### Declaration

  Swift

      case keyExpired = -5

  Objective-C

      kGMSPlacesKeyExpired = -5

- `


  ### [kGMSPlacesUsageLimitExceeded](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlacesErrorCode#/c:@E@GMSPlacesErrorCode@kGMSPlacesUsageLimitExceeded)


  ` Operation failed due to exceeding the quota usage limit.


  See the [usage limits guide](https://developers.google.com/places/ios-sdk/usage)
  for information on usage limits and how to request a higher limit.

  #### Declaration

  Swift

      case usageLimitExceeded = -6

  Objective-C

      kGMSPlacesUsageLimitExceeded = -6

- `


  ### [kGMSPlacesRateLimitExceeded](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlacesErrorCode#/c:@E@GMSPlacesErrorCode@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](https://developers.google.com/places/ios-sdk/usage) for more
  information.

  #### Declaration

  Swift

      case rateLimitExceeded = -7

  Objective-C

      kGMSPlacesRateLimitExceeded = -7

- `


  ### [kGMSPlacesDeviceRateLimitExceeded](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlacesErrorCode#/c:@E@GMSPlacesErrorCode@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](https://developers.google.com/places/ios-sdk/usage) for more
  information.

  #### Declaration

  Swift

      case deviceRateLimitExceeded = -8

  Objective-C

      kGMSPlacesDeviceRateLimitExceeded = -8

- `


  ### [kGMSPlacesAccessNotConfigured](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlacesErrorCode#/c:@E@GMSPlacesErrorCode@kGMSPlacesAccessNotConfigured)


  ` The Places API service for iOS is not enabled.


  See the [developer's guide](https://developers.google.com/places/ios-sdk/start)
  to learn how to set up the Places SDK for iOS or the
  [migration guide](https://developers.google.com/places/ios-sdk/client-migration)
  if you are migrating from an earlier version.

  #### Declaration

  Swift

      case accessNotConfigured = -9

  Objective-C

      kGMSPlacesAccessNotConfigured = -9

- `


  ### [kGMSPlacesIncorrectBundleIdentifier](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlacesErrorCode#/c:@E@GMSPlacesErrorCode@kGMSPlacesIncorrectBundleIdentifier)


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


  See the [developer's guide](https://developers.google.com/places/ios-sdk/start)
  for how to configure bundle restrictions on API keys.

  #### Declaration

  Swift

      case incorrectBundleIdentifier = -10

  Objective-C

      kGMSPlacesIncorrectBundleIdentifier = -10

- `


  ### [kGMSPlacesLocationError](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlacesErrorCode#/c:@E@GMSPlacesErrorCode@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.

  #### Declaration

  Swift

      case locationError = -11

  Objective-C

      kGMSPlacesLocationError = -11

- `


  ### [kGMSPlacesInvalidRequest](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlacesErrorCode#/c:@E@GMSPlacesErrorCode@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](https://developers.google.com/places/ios-sdk/support).

  #### Declaration

  Swift

      case invalidRequest = -12

  Objective-C

      kGMSPlacesInvalidRequest = -12