Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Latitude and Longitude for particular city or street without using google map?

How to get Latitude and Longitude for particular city or street or location without using google map? For example user entered city name is "Chennai" and i need to show only Latitude and Longitude for that city. How to do this?

like image 930
bharath Avatar asked Mar 11 '11 07:03

bharath


1 Answers

This is called Geocoding, and requires matching a place name up to a latitude and longitude.

You can either code a known list of place name/lat-lons into your app, read them in at runtime and search through them when required, or you can use an online Geocoding service such as this one from Yahoo, or this one from Google.

like image 153
funkybro Avatar answered Oct 12 '22 23:10

funkybro