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?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
I had the same problem.. Finally I fixed it by getting the lat long from the server side. This link has the sample code for getting lat and long from java. Hope it helps some one.
check Obtaining geographic coordinates at Wikipedia page
Google provides reverse geocoding - please go through this link
also for example below web service gives you the address of lat long provided in the parameter but hte response is in json, see this link
if you want to get response in xml then check here
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.