I am perplexed as to why there is an iPhone API for Reverse Geocoding (lat/long to address) but NOT for regular Geocoding (address to lat/long).
I want to be able to display an annotation on a map (MKMapView) at an address entered by the user. (As text, not by touching the map) As far as I can tell, that means I have to determine the lat/long for the entered address.
It looks like it can be done using HTTP, but then, Reverse Geocoding ALSO could have been done that way, too. Why did they support one but not the other?
Answers as to "why?" or "how?" would both be appreciated.
*** Anyone learned anything new on this topic? Any announcements I haven't heard about?
Geocoding is the process of transforming a street address or other description of a location into a (latitude, longitude) coordinate. Reverse geocoding is the process of transforming a (latitude, longitude) coordinate into a (partial) address.
Forward geocoding or typically known simply as “geocoding” refers to the process of identifying a specific location based on a street address. In other words, the process converts a street address to a specific latitude and longitude.
Forward geocoding means you start with an address or location (such as Boston, MA) and end up with latitude and longitude coordinates. Reverse geocoding is the process of going from latitude and longitude coordinates back to a human-readable address.
Reverse-Geocoding is a process used to convert coordinates (latitude and longitude) to human-readable addresses. This is not exactly the opposite of Geocoding. In Geocoding, the Place is associated with a name and fixed coordinates. These coordinates are Double in nature.
Merrimack wrote an answer here with a useful example..
Forward geocoding from the iPhone
There is a nice blog post of him
http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/
I had the same issue and wrote a geocoding class. http://web.me.com/andreas.bungert/erle_muss_sein/iPhone_Development/Einträge/2009/7/9_Geocoding_im_SDK.html
Best Regards
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With