Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Places API Violation

I am using Google Places API to pull a list of resturants, and I am displaying them on map. However, since Apple has switched there map services over from Google in iOS 6.0, I am now in violation of Google's terms of use, which states that you must display Google data on a Google map.

"If your application displays Places API data on a map, that map must be provided by Google."

https://developers.google.com/places/policies#terms_of_use

I obviously need to change the map, because I am not going to release an application that is in violation. Any thoughts or suggestions on what to do? Should I go Google Maps with a web view? Does apple have some sort of Google Places API alternative?

Edit:

Using Google Maps through a web view is a hassle, i'd like to find an alternative to that, although it would technically work.

like image 675
Vikings Avatar asked Sep 26 '12 17:09

Vikings


People also ask

How can I get more than 20 results on Google Places API?

The documentation says that the Places API returns up to 20 results. It does not indicate that there is any way to change that limit. So, the short answer seems to be: You can't. Of course, you might be able to sort of fake it by doing queries for several locations, and then merging/de-duplicating the results.

Is Google Places API 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 ...

How do I restrict Google Places API?

Step 1: Ensure you're logged in with the Google account under which you created your Google Maps API key. Step 2: Navigate to Google Console Credentials screen and click to your API key to enter it. Step 3: In API restrictions section choose 'Restrict key' and click on 'Select APIs' dropdown. That's it!


3 Answers

I decided to use Google Maps JavaScript API. Although, it is a little more difficult to deal with, mainly the JavaScript through Objective-C, it is a solution. The map is displayed through a web view, and I use JavaScript to interact with the map.

https://developers.google.com/maps/documentation/javascript/tutorial#api_key

I will wait to accept this answer, to see if anyone else has any thoughts. I just wanted to post this, in case it helps someone else.

Edit:

Google recently released a Maps SDK for iOS, this is the better solution now.

https://developers.google.com/maps/documentation/ios/

like image 193
Vikings Avatar answered Oct 04 '22 03:10

Vikings


I would try to directly contact Google, explaining the situation, and ask them for written permission to use Apple's maps. This is more a legal question than programming. One would think that Google is aware that you can no longer display their maps using Apple's API and that, even regardless of the map, they would want you to use their places, as doing so generates advertising revenue for them.

like image 44
Owen Hartnett Avatar answered Oct 04 '22 03:10

Owen Hartnett


Agree with @Owen here - you could get permission to leave your app unchanged until some possible future date when you might have to change it, or could you definitely go to the effort of changing it now and then possibly have to change it again in the future for some other reason.

If you could get a 100% guarantee that you could change it once and never have to change it again then I'd say do it now, but nothing's certain.

like image 39
Steve Ives Avatar answered Oct 04 '22 01:10

Steve Ives