简体   繁体   English

geokit轨道2.3.9

[英]geokit rails 2.3.9

I've a hostmonster account, where I installed geokit as a gem. 我有一个hostmonster帐户,我在其中安装了geokit作为gem。 When I try to find location based on IP, i get "Unknow City" for the city field. 当我尝试查找基于IP的位置时,我会在城市字段中看到“未知城市”。 This happens on my local machine as well, where it shows "Private Address" for city. 这也发生在我的本地计算机上,在该计算机上显示城市的“私人地址”。

Please help me solve this. 请帮我解决这个问题。

Replaced IpGeocoder in my code with MultiGeocoder and it worked. 用MultiGeocoder替换了我代码中的IpGeocoder,它开始工作了。 Tried different geocoder providers (Yahoo, Gooogle) but MultiGeocoder seems to be the most accurate. 尝试过使用不同的地址解析器提供商(Yahoo,Gooogle),但MultiGeocoder似乎是最准确的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM