Search code examples
javaandroidgeonames

get place name by providing lat and long


In my application i want to get the weather report I'm using http://www.google.com/ig/api?weather="" for that by providing a city. But for me only lat and longitude is available

How can I get the place name by lat and longitudes.


Solution

  • FYI, what you're doing is called reverse geocoding.

    Most of the Geonames webservices are available in JSON, including findNearby.

    Google also has a reverse geocoding webservice

    What you're asking is not a small thing - a lat/lng database is almost certainly going to be presented in either XML or JSON, so it might be worth investing a little time and effort in this. Android must have xml/json wrappers?