Google Maps API v3:使用IP地址多个LatLng的Geocoder.geocode

时间:2013-02-05 10:43:26

标签: google-maps google-maps-api-3 geolocation ip-geolocation

我正在使用geocoder.geocode(address: <ip_address>, function(results, status){//do something})获取所提供IP地址的LatLng。输出显示“结果”中的LatLng数组。要访问LatLng,我使用的是results[i].geometry.location。 我的问题是为什么输出包含单个IP地址的多个LatLng值,它们是什么意思?并且这些LatLng值之间似乎存在很大差异(地图上的距离)。

1 个答案:

答案 0 :(得分:0)

很遗憾,Google不提供使用IP地址的公共地理编码API。

有关指示,请参阅此related question and answers

相关问题