Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Places API for iOS is not enabled error

I'm not able to call the places API

Error: The operation couldn’t be completed. The Places API for iOS is not enabled. See the developer's guide (https://developers.google.com/places/ios-api/start) for how to enable the Google Places API for iOS.

I've followed this guide Places API getting started:

1) Install the API (Pod file and pod install)

2) Setup the API Key and restrict it to iOS

3) Add the key in AppDelegate (GMSPlacesClient.provideAPIKey("YOUR_API_KEY"))

However, I'm still hitting the above-mentioned error.

Is this the correct API to enable?

enter image description here

I've waited for more than 30 mins (more than 17 hours now)for the API key settings to take effect but the error still persist. I'm able to use the same key to get Maps API to work though.

Version: "GooglePlaces (2.7.0)" + iOS12.0

like image 509
user1872384 Avatar asked Feb 27 '19 16:02

user1872384


People also ask

What is places API?

The Places API and the client libraries are for use in server applications. If you're building a client-side application, take a look at the Places SDK for Android, the Places SDK for iOS, and the Places Library, Maps JavaScript API. The Places API is a service that returns information about places using HTTP requests.

Can I use places API for free?

Places API is not free, however, once you set up your billing account, you will be entitled for a one time $300 free credit(usable for Google Cloud Platform products) and a monthly recurring $200 free credit(exclusive for Google Maps Platform products), after consuming the credits, you will receive an OVER_QUERY_LIMIT ...


1 Answers

Works after updating the version in Podfile from 2.7.0 to 3.0.3

  pod 'GooglePlaces', '= 3.0.3'
  pod 'GooglePlacePicker', '= 3.0.3'
  pod 'GoogleMaps', '= 3.0.3'

Installing GoogleMaps 3.0.3 (was 2.7.0)

Installing GooglePlaces 3.0.3 (was 2.7.0)

Just noticed there's a note in the documentation which states:

IMPORTANT: The Place Picker is deprecated as of January 29, 2019. This feature will be turned off on July 29, 2019, and will no longer be available after that date. To continue using the Place Picker through the deprecation period, do NOT migrate to the new SDK yet, and do NOT disable the Places SDK for iOS service in your Google Cloud Platform project, as doing so will also disable the Place Picker.

Apparently it's not working now although it mentioned that it will be turned off on July 29, 2019. Perhaps I need to revert the code to use the prior version.

like image 92
user1872384 Avatar answered Oct 19 '22 05:10

user1872384