views:

44

answers:

1

If I supply an address as a NSString. How can I use mapkit to show me a map with that location centered and a push pin showing that address? What's the easiest way to do this?

EDIT: Is there a way to call the built-in Maps app to do that for me?

A: 

You'll need to forward geocode the address to obtain GPS coordinates. This data is available from third parties like Google via their Geocoding API. Here's a tutorial on forward geocoding using Google APIs.

Take note of their terms of use.

Justin
does it allow commercial use? if the end-user makes the request then the limit wouldn't be an issue right?
Yazzmi
It's probably fine for your purposes, but apps with very high query volumes or a lack of Google Maps UI could get blocked.
Justin