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

后端 未结 4 1207
遇见更好的自我
遇见更好的自我 2021-02-06 08:39

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 Geocodi

4条回答
  •  误落风尘
    2021-02-06 09:04

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

    http://maps.googleapis.com/maps/api/geocode/json?latlng=%f,%f&sensor=false
    

提交回复
热议问题