Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I do geocoding (NOT reverse geocoding) on iPhone?

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?

like image 581
Amagrammer Avatar asked Jun 12 '09 17:06

Amagrammer


People also ask

What is the difference between geocoding and reverse geocoding?

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.

What is forward geocode?

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.

What is forward geocoding and reverse geocoding?

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.

What is meant by reverse geocoding?

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.


2 Answers

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/

like image 148
S.P. Avatar answered Nov 15 '22 08:11

S.P.


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

like image 21
Erle Avatar answered Nov 15 '22 08:11

Erle