How to get Latitude and Longitude for particular city or street or location from server side in java.
Asked
Active
Viewed 95 times
-1
-
You may request from a web service for that information: http://stackoverflow.com/questions/158474/how-to-obtain-longitude-and-latitude-for-a-street-address-programmatically-and – PeterMmm Jan 12 '15 at 08:59
2 Answers
0
You should use any location library or api.
For example :
A simple google request could have answered this.

i.am.michiel
- 10,281
- 7
- 50
- 86
0
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.
API : http://code.google.com/apis/maps/documentation/geocoding/

Vignesh Shiv
- 1,129
- 7
- 22