Wednesday, May 23

Geolocation by area/city name

Hi its again about the Geo-location , but its inverse Geo-location 
actually I was googling for a question:
how to get lat long by city name ? 
OR 
how to get lat long by address ?

and got this one working and simply awesome : http://ws.geonames.org/search?name=ujjain&country=in&type=xml

XML Response
Add caption


This will return you XML  that will contain lat- long for that are with some other city related information.
you just have to extract the lat- long from this xml.
be lazy... be awesome :)