IP 地理定位的准确度如何? [英] Exactly how accurate is IP Geolocation?

查看:28
本文介绍了IP 地理定位的准确度如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的朋友设置一个 iPhone 跟踪系统,这样他们就可以通过他们的 iPhone 随时随地通过 WiFi 或蜂窝数据将他们的位置提交到我的网站.

I'm setting up a iPhone tracking system for my friends, so they can submit their location to my website by their iPhone, anywhere, anytime - by WiFi or cellular data.

该网站将使用谷歌地图进行协调,以便我的其他朋友可以跟踪他们的位置,但是,我关心的是 IP 与谷歌地图协调的准确性,它到底有多准确使用通过 IP 地址追踪位置的 Google 地图?

The website will use Google Maps for their coordination's so that my other friends can track where they are, however, it is the accuracy of the IP to coordinates to Google Maps is what I'm concerned about, exactly how accurate is it to use Google Maps that would track down the locations by an IP address?

我在考虑 95%,但这是在一个相当准确的村庄测试的,但如果是在城市会发生什么?这会导致位置不准确吗?

I was thinking about 95%, but this was tested in a village which was quite fairly accurate, but what happens if it was in a city? Would this cause unaccurate locations?

任何帮助表示赞赏.

推荐答案

IP 地理位置真的是命中注定,这取决于用户的 ISP 分配 IP 的方式以及您正在使用的 IP 地理位置数据库.例如,我制作了一个简单的 PHP 脚本,IP2FireEagle,它会查找您的 IP.我发现数据库一直将我放在我所在位置以西 10 多公里处.更新我在 Host IP 中的条目并不是最好的,因为它很快就被恢复了,大概是偶尔有人由我的 ISP 分配的 IP!话虽如此,我发现 Clarke 的坐标非常准确(并不是说它本身使用的是 IP 地理定位,而是 Skyhook 的 API 和他们的 WiFi 地理定位数据库).

IP geolocation is really hit-or-miss, depending on both how the user's ISP assigns IPs and on the IP geolocation database you're using. For instance, I made a simple PHP script, IP2FireEagle, which looks up your IP. I found that the database kept placing me 10+ km to the west of where I really was. Updating my entry in Host IP wasn't the greatest, as it soon got reverted, presumably by someone also occasionally assigned that IP by my ISP! That being said, I found that Clarke has very accurate coordinates (not that this it's using IP geolocation per se but rather Skyhook's API and their WiFi geolocation database).

如果它是您朋友的网站,并且您知道他们有 iPhone,我建议使用它的 浏览器对 navigator.geolocation.getCurrentPosition() 的支持.也就是说,通过 Javascript 获取位置并通过 AJAX 调用将其提交到您的服务器.更好的是,因为你想使用谷歌地图,他们给你一个 关于如何获取朋友位置然后更新地图的简短教程.

If it's a website for your friends and you know they have iPhones, I would suggest using its browser's support for navigator.geolocation.getCurrentPosition(). That is, get the location via Javascript and submit it to your server via an AJAX call. Even better since you want to use Google Maps, they give you a short tutorial on how get your friends' locations and then update a map.

这篇关于IP 地理定位的准确度如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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