Current Location to destination using mapview or google maps for the iphone iOS Xcode 4

GhostShaman picture GhostShaman · Jul 11, 2011 · Viewed 12k times · Source

SO I am a totally new and do not know where to begin. I basically want to create a view that shows the users current location and directs them to my set location (park, concert, business, etc.). It seems fairly simple but there is so much smoke and mirrors online that I do not know where to start or how to finish. Would it be easier to call to google maps or use the mapview in the SDK?

And the bigger question is how do you do this? I mean I can create simple views and load webviews but I can not figure this out.

Answer

Kal picture Kal · Jul 11, 2011

Use MKMapView .. its fairly straightforward to set up -- you can get the current location from CLLocationManager and pass its coordinates to the map view.

http://mithin.in/2009/06/22/using-iphone-sdk-mapkit-framework-a-tutorial