需要客户端 API 来确定 IP 地址的地理位置 [英] Need a client side API for determing geo location of IP addresses

查看:29
本文介绍了需要客户端 API 来确定 IP 地址的地理位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个 Java 或 Ruby 客户端 API.我非常prefer 只需要本地.事实上,这甚至可能不是 IP,而是更多的数据库导入.问题是我无法使用基于 Web 服务的服务,因为这对我来说太繁重了.

I need a client side API in either Java or Ruby. I would much prefer need this to be LOCAL only. Infact this might not even be an IP, but more of a database import. The thing is that I cannot make use of a web service based one as that is too much heavy I/O for me.

注意:根据地理位置,我真正需要的只是国家/地区.我也会接受实际的纬度/经度坐标.

Note: By geolocation, all I really need is country/region at best. I would accept actual lat/long cordinates as well.

推荐答案

几个月前我在看这些家伙:http://www.maxmind.com/app/geolitecountry

I was looking at these guys a couple months ago: http://www.maxmind.com/app/geolitecountry

就我有限的用途而言,这似乎没问题.

It seemed OK, for my limited purposes.

这篇关于需要客户端 API 来确定 IP 地址的地理位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆