Search code examples
iphonegoogle-maps-api-3mkmapviewgoogle-geocodermkpinannotationview

How to get latitude and longitude of a city?


I am designing a project in which I have used two text fields. One is for source address and another one is for destination address.

Now, I want to get latitude and longitude of both addresses and then draw it on map view.

How can I accomplish that?


Solution

  • check this post for geocoding

    http://fredandrandall.com/blog/2011/03/23/geocoding-on-the-iphone-getting-the-latitude-and-longitude-of-an-address/

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