工具或PHP代码将IP地址转换为经/纬度坐标 [英] Tool or PHP code to convert IP address into lat/lng coordinates
问题描述
我有数千个访问者的IP地址,可以使用哪些工具将其转换为经/纬度坐标?然后,我将能够使用过滤器将地图上的数据可视化,以收集进一步的人口统计信息.
I have thousands of IP addresses of visitors to my site, what tools can I use to convert these into lat/lng coordinates? I will then be able visualise the data on a map with filters for further demographics gathered.
推荐答案
对于我的一个站点,我使用了maxmind的免费geolite国家数据库,可以在这里下载:
For one of my sites I made use of maxmind's free geolite country database which can be downloaded here: http://www.maxmind.com/app/geolitecountry
他们还提供了城市级别的版本,其中包括长/短: http://www.maxmind .com/app/geolitecity
They also provide a city level version which includes the long/lat: http://www.maxmind.com/app/geolitecity
但是请注意,免费版本的准确性比付费版本低很多.
but note that the accuracy on the free version is a lot lower than the paid version.
这篇关于工具或PHP代码将IP地址转换为经/纬度坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!