在 Rails 中对 IP 地址进行地理编码
我已经安装了 GeoKit,总的来说我对它非常满意。
但我最近尝试用它对 IP 地址进行地理编码,其默认结果(看起来由 hostip.info 提供)似乎不太准确或完整。有其他人因此产生过不好的结果吗?
有没有更好的方法在 Rails 中对 IP 进行地理编码?
I have GeoKit setup and in general I'm really happy with it.
But I recently tried Geocoding IP Addresses with it and its default results (provided by hostip.info it looks like) don't seem very accurate or complete. Has anyone else had bad results from this?
Is there a better way to GeoCode IPs in Rails?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
几年前我开发了 GeoMint(Shaun Inman's Mint 的胡椒)。当时我也使用过 hostip.info,它对我来说效果很好。然而,用户提出了像 maxmind.com (GeoAPI http://www.maxmind.com/app /api)。然而,您需要了解的是(以及我当时的一些用户没有了解的) - 地理定位非常复杂,需要大量更新,并且免费获得完美的数据集很可能行不通。尽管我怀疑国家检测现在确实很可靠。
I've developed GeoMint (a pepper for Shaun Inman's Mint) a few years ago. Back then I've also used hostip.info, which worked fine for me. However, users came up with solutions like maxmind.com (GeoAPI http://www.maxmind.com/app/api). However, what you need to understand (and what some of my users back then didn't) - geotargeting is quite complex, needs a lot of updates and getting a perfect dataset for free will quite likely not work. Although I suspect that country detection is really solid now.