Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Address from Latitude & Longitude in Django GeoIP?

I cannot see anything in their API to do this: https://docs.djangoproject.com/en/dev/ref/contrib/gis/geoip/#geoip-api

Or should I just use Google API for Reverse Geocoding?

like image 767
Ernest Avatar asked Oct 17 '12 20:10

Ernest


People also ask

How do I find a physical address from GPS coordinates?

Google Maps is an easy way to pull up coordinates if you want to use a familiar program to find your address. You can use longitude and latitude to find an address on Google Maps from your phone, tablet, or computer. Visit the website or open the app to start looking for your address.

How do I find a location using latitude?

To find a location using its latitude and longitude on any device, just open Google Maps. On your phone or tablet, start the Google Maps app. On a computer, go to Google Maps in a browser. Then enter the latitude and longitude values in the search field — the same one you would ordinarily use to enter an address.

How do I find a street name from latitude and longitude?

There is a last trick to get Address from Lat-Long (Geo-coordinates). You can simply hit google-maps web service passing the Latitude and longitude. It is simply a GET-Method web-service. You can replace 32,75 with lat,long.


1 Answers

Solution - call this URL and parse it's JSON.

http://maps.googleapis.com/maps/api/geocode/json?latlng=%f,%f&sensor=false
like image 85
Ernest Avatar answered Oct 05 '22 22:10

Ernest