基于 SOAP 或 REST 的地理定位服务?

发布于 2024-07-05 12:21:51 字数 120 浏览 7 评论 0原文

有人知道可以接受 SOAP 或 REST 请求的(最好是免费的)Web 服务吗?

该请求将包含一个 IP 地址,并且该服务将返回该 IP 位置的近似值。

编辑:我需要解决可能的城市问题。

Is anyone aware of a (preferablly free) webservice that would accept a SOAP or REST request.

This request would contain an IP address, and the service would return an approximation of that IP's location.

EDIT: I need resolution down to the city of possible.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

提赋 2024-07-12 12:21:51

http://countries.nerd.dk 通过 IP 提供国家/地区信息。 您需要多少分辨率?

There is http://countries.nerd.dk which provides country information by IP. How much resolution do you need?

薔薇婲 2024-07-12 12:21:51

它不是网络服务,但 MaxMind 还提供免费数据库供您下载。 如果您需要 Web 服务,那么使用此数据库在您自己的服务器上设置一个 Web 服务将非常简单。 如果免费数据库不合适,您还可以获得更准确的数据库的站点许可证。

It's not a web service, but MaxMind also provide a free database that you can download. If you need a web service, then it would be trivial to set one up on your own server using this database. You can also get a site-license for a more accurate database if the free one isn't suitable.

大姐,你呐 2024-07-12 12:21:51

MaxMind 做了一个相当便宜的。 您将 IP 作为查询字符串参数发送,然后它会向您发送回 2 个字母的代码或错误代码。 在转向我们自己的查找表之前,我们使用了它很长一段时间,它快速且可靠。

找到链接:http://www.maxmind.com/app/web_services#country - 200,000 次查找的费用为 20 美元,这根本不值钱​​。

编辑:MaxMind 还提供一项服务,分辨率可精确到城市:http://www.maxmind。 com/app/web_services#city。 50,000 次查询的费用为 20 美元,价格稍贵一些,但这仍然不算太糟糕。 我无法保证这项服务的准确性,因为我只使用了国家/地区分辨率,而这就是我们所需要的。

MaxMind do a fairly cheap one. You send the IP as a query string parameter, then it sends you back either a 2 letter code or an error code. We used it for quite a while before moving to our own lookup tables, and it's quick and reliable.

Found the link: http://www.maxmind.com/app/web_services#country - it's $20 for 200,000 lookups which isn't bad value at all.

EDIT: MaxMind also do a service with resolution down to the city: http://www.maxmind.com/app/web_services#city. It's a bit more expensive at $20 for 50,000 queries but that still isn't too bad. I can't vouch for the accuracy of this service though as I have only used the country resolution one, as that's all we need.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文