如何从谷歌纵横获取地址Django GeoIP中的经度? [英] How to get Address from Latitude & Longitude in Django GeoIP?
本文介绍了如何从谷歌纵横获取地址Django GeoIP中的经度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在他们的API中看不到任何东西可以做到这一点:$ b $ b https://docs.djangoproject.com/en/dev/ref/contrib/gis/geoip/#geoip-api
I cannot see anything in their API to do this: https://docs.djangoproject.com/en/dev/ref/contrib/gis/geoip/#geoip-api
或者我应该只使用Google API进行反向地址编码?
Or should I just use Google API for Reverse Geocoding?
推荐答案
解决方案-调用此URL并解析为JSON。
Solution - call this URL and parse it's JSON.
http://maps.googleapis.com/maps/api/geocode/json?latlng=%f,%f&sensor=false
这篇关于如何从谷歌纵横获取地址Django GeoIP中的经度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文