tags:

views:

131

answers:

1

Hello.

I'm developing an iPhone application to search cities on a MKMapView. The user specify a city and then it show its location on a MKMapView. Is that possible?

Thanks.

A: 

You could use Google's Geocoder REST API. A request looks like this:

http://maps.google.com/maps/api/geocode/json?address=city&sensor=true_or_false

Since the response is in JSON format, you'll need a JSON parser.

Sam V
Thank you very much for your answer. I know that service. The problem is a paid service and I looking for something cheaper (is a paid service because I'm going to sell the application). Thanks again.
VansFannel
Google's Geocoder REST API is a free service. You don't even need an API key. I'm pretty sure you can sell an app that uses Google's Geocoder REST API.
Sam V
I've asked to Google, and this is his answer: There is no need to use a key if you are using the FREE service. Ifyou use the free service, terms and conditions apply. These aremostly aimed at preventing people copying the data, and/or using thedata outside of a Google branded application (e.g.a map), and/orreselling the free service. There are also speed and volume limitsto prevent users hogging the service.If no-one can see the results of geocoding without buying yourapplication, you are re-selling Google's service and should get alicence.
VansFannel