1
使用在IRB的geokit宝石:为什么Google的Geolocation API认为localhost在伊拉克?
>> Geokit::Geocoders::secure = false
=> false
>> Geokit::Geocoders::MultiGeocoder.geocode("::1").full_address
=> "1, Madain, Iraq"
什么...?
使用在IRB的geokit宝石:为什么Google的Geolocation API认为localhost在伊拉克?
>> Geokit::Geocoders::secure = false
=> false
>> Geokit::Geocoders::MultiGeocoder.geocode("::1").full_address
=> "1, Madain, Iraq"
什么...?
您正在对“:: 1”进行地理编码,因为地址非常模糊,并且由于任何收益。
的Geokit宝石使用地址解析 API,从而解决邮政地址转换成经纬度坐标。这是你实际上是使用API: https://developers.google.com/maps/documentation/geocoding/intro
如果你想找到坐标IP地址,你需要的东西,会谈到地理位置 API,这样谷歌的。这是你所需要的: https://developers.google.com/maps/documentation/geolocation/intro
唯一的IP地址,这个API可以让你的地理位置是你自己的,这意味着公共IP访问http://whatismyip.com
时,你会看到