0

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?

Yazzmi
  • 1,541
  • 5
  • 18
  • 33
  • To answer your edit, **yes.** You can call the built in Maps app, but it requires switching away from your application. See this SO question for details: http://stackoverflow.com/questions/30058/ – Justin Aug 02 '10 at 00:58

1 Answers1

0

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
  • 20,509
  • 6
  • 47
  • 58
  • does it allow commercial use? if the end-user makes the request then the limit wouldn't be an issue right? – Yazzmi Jul 28 '10 at 22:16
  • 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 Jul 29 '10 at 02:14