I’ve implemented a simple app with a Mapkit that shows one pin for a certain address.
If I click on this pin, I can see the details of the location and the disclosure indication.
At this point, I would like to enable the user to obtain directions from his location to there.
The only idea I had, it was to push a web view that opens an url in Google Maps with the desired coordinates.
Are there many effective and usable ways to do this? Any other ideas?
Thanks in advance,
yassa
You have to decide if you want to embed a
UIWebViewor let the user go to the maps app. You sort of lose “user connection” if you let the user out of your app but the user experience in the maps app is far better than the web experience. For that reason, I went with the maps app.See http://wiki.akosma.com/IPhone_URL_Schemes#Maps for how to launch the maps app via
UIApplication openURL.Note that if the maps app isn’t installed (just the simulator?) this will open the web page, but in Safari rather than in an embedded
UIWebView.