30

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.

Brad Larson
  • 168,330
  • 45
  • 388
  • 563
Vikings
  • 2,517
  • 30
  • 45
  • 5
    Good question, curious on the answer/s. (+1) – Till Sep 26 '12 at 17:52
  • 1
    I think yahoo has something similar to "places". not sure if it has the same restriction – Mike M Sep 26 '12 at 17:55
  • Mike is right, yahoo has similar thing. – Midhun MP Sep 26 '12 at 17:57
  • now the iOS 6.0+ map issue get event more complex! +1 for the question – Jonas Schnelli Sep 26 '12 at 18:00
  • 1
    @MidhunMP checked out Yahoo's service, but they are lacking – Vikings Sep 26 '12 at 18:14
  • 1
    This is a very interesting issue. Please comment on what happened after you figured everything out. Also, seeing that they specify that the results must be placed on a google map, I assume they also have a way for you to do that. – Alex Bardasu Jan 03 '13 at 20:23
  • 1
    @AlexBardasu check my answer – Vikings Jan 03 '13 at 20:26
  • @Brad Larson & Vikings I'm not sure whether this is new, but now, Google states in the Google places API web service main page: "The Google Places API Web Service is for use in server applications. If you're building a client-side application, take a look at the Google Places API for Android...". They now have Google places API library for Android and iOS, however, they are less flexible compared to calling the web service directly, IMO. Any idea if calling the web service is unacceptable now? – Khaled Alanezi Jun 24 '15 at 16:41

3 Answers3

7

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/

Vikings
  • 2,517
  • 30
  • 45
  • Hi Vikings, I also want to use google places api, so should i go with google maps or i can use Apple Map Kit? – prasad Dec 27 '12 at 10:10
  • I have registered for sdk for one week before but still not received any api key. – prasad Jan 04 '13 at 06:10
  • hi Vikings can you please suggest any other option. – prasad Jan 04 '13 at 06:55
  • @prasad I have not personal used the new Maps SDK. The method I went with a while ago was the Google Maps JavaScript API. It is the first link. – Vikings Jan 04 '13 at 14:57
  • The difference between the Javascript API and the Maps SDK for iOS is that the SDK has a (free, but credit-card backed) limit of 100,000 requests PER API KEY, but the Javascript API has a limit of 100,000 requests PER DEVICE. That's pretty big if your app gets to any scale. – Peter K. Oct 06 '14 at 01:16
5

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.

Owen Hartnett
  • 5,827
  • 2
  • 17
  • 34
  • 3
    Seems logical as long as you never had contact with the lawyers of a company. – JustSid Sep 26 '12 at 18:13
  • I have dealt with lawyers of a company, and usually when it was in their best interest (i.e. they make money on it, like in this case), they often agreed. In any case, it won't hurt to ask, and if you succeed, you don't have to rewrite your code. If you don't try, then you either try to run against your agreement, or you look for another POI vendor which will still cost you time and money to implement. Just say you'd like an exception until such time as Google maps are again available, so that both you and Google can continue to make money using Places. – Owen Hartnett Sep 26 '12 at 22:08
  • To not even try because you dislike all lawyers is just silly. – Owen Hartnett Sep 26 '12 at 22:09
  • @OwenHartnett When you are building applications for a company, I need the application to work in the long term. If by chance Google let us use places for our application, they would have the right to change that at anytime, which would result in our application having to fixed. Also, although this question has legal implications, it is most certainly a coding question, whether or not you see code pasted. – Vikings Sep 26 '12 at 22:17
  • 1
    @Vikings Whoever you use for your maps has the right to change that anytime. That's evident in why you even have to ask the question, because Apple has changed the circumstances already. Asking Google to let you continue costs you only an email. If they say yes, you don't have to make any changes at all, which is a big win. If they say no, you're just back in the situation you are now, you're not any worse. Other vendors who use Places are in the same boat as you, and they may be already granting exceptions. Why change good working code if you don't have to? – Owen Hartnett Sep 27 '12 at 15:54
  • @Vikings - also, I didn't mean to imply that your question wasn't a valid one. I'm just saying that it makes sense to explore the legal side of this before investing in a programming change that will cost you time and only put you at the same place you were before. – Owen Hartnett Sep 27 '12 at 18:28
  • @OwenHartnett How can I contact Google? I have the same question – MCKapur Oct 14 '12 at 05:02
  • I will award you the bounty tomorrow, when I am eligible! – MCKapur Oct 15 '12 at 15:27
  • Wait, I have a problem, for the category, what do I put... Online? Also, what do I put for URL, I do not have a website for the app – MCKapur Oct 15 '12 at 15:35
  • Online looks appropriate - the URL box asks for title/URL, I'd put in Google Places (or whatever program you're looking for). – Owen Hartnett Oct 15 '12 at 15:40
  • Many months later and they haven't replied, I just went ahead and released the app, forget Google, it got accepted a while ago, nothing has happened yet, I couldnt care less im putting this straight on Google if they try to attack me back – MCKapur Dec 30 '12 at 09:04
1

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.

Steve Ives
  • 6,970
  • 3
  • 21
  • 49
  • I went with the Google Maps JavaScript API, its just displayed though a web view, so it shouldn't need to be changed for quite some time – Vikings Oct 03 '12 at 13:59