IP地理定位如何工作? [英] How does IP geolocating work?
问题描述
我不是在寻找可以做到这一点的服务.我只是好奇地理定位的工作原理.
I'm not looking for a service that does this. I'm just curious as to how geolocation works.
推荐答案
将 IP 地址映射到地理位置是通过表格完成的,其中 IP 映射到特定位置.但是,此位置不需要准确,因为 IP 地址不携带任何有关其位置的信息,这些是近似值.
Mapping IP addresses to geolocations is done via tables, where an IP maps to a particular location. This location, however, does't need to be accurate, since IP addresses don't carry any information about their locations, these are approximated.
来自 http://en.wikipedia.org/wiki/Geolocation_software:
IP 地址数据的主要来源是区域互联网注册机构,它们在各自服务区域内的组织之间分配和分发 IP 地址:
The primary source for IP address data is the regional Internet registries which allocate and distribute IP addresses amongst organizations located in their respective service regions:
- 美国互联网号码注册机构 (ARIN)
- RIPE 网络协调中心 (RIPE NCC)
- 亚太网络信息中心 (APNIC)
- 拉丁美洲和加勒比互联网地址注册 (LACNIC)
- 非洲网络信息中心 (AfriNIC)
次要来源包括:
- 数据挖掘或用户提交的地理位置数据.例如,天气网站可能会要求访问者提供城市名称以查找当地预报.另一个示例是将用户的 IP 地址与其帐户资料中的地址信息配对.
- 互联网服务提供商提供的数据.
- 合并来自不同供应商的数据库.
- 来自相邻 C 类范围[2] 和/或从网络跃点收集的猜测.
通过以下方式提高准确性:
Accuracy is improved by:
- 数据清理以过滤或识别异常情况.
- 对用户提交的数据进行统计分析.
这篇关于IP地理定位如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!