MKMapView - how to see location by pkace enterd
i want to know if i can see place on map-MKMapView- by entering the name of a place. like if i enter "Paradise Valley, AZ, United States" in here http://maps.google.开发者_如何学JAVAcom/ and it give me the location on the map of that place.
Below is source code of Address to Coordinate and ReverseGeoCoordinate.
http://xxki.com/tutorial/pukiwiki.php?MacOS%2FiPhone%20-%20MapKit
Some more links to MapKit tutorial to learn abt the Map framework in iPhone
http://www.switchonthecode.com/tutorials/getting-your-location-in-an-iphone-application
How to find location using MapKit in Xcode?
Forward geocoding is not available in the iOS SDK (unlike reverse geocoding). I use this solution -
http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/
This works really well for me. You can try it if you download my app, iGoBy, then go to the map and search for an address (Not trying to advertise here, just to let you see it working :))
Google have this feature available through their map API.
You could also use geonames.org which have a similar API. My ILGeoNames project on GitHub provides some simple Objective C wrappers for accessing geonames.org.
Update: You would need to do the annotations on the map yourself though.
精彩评论