Get the geographic distance between 2 IP addresses?

守給你的承諾、 提交于 2019-12-12 00:34:10

问题


How can you calculate the geographic distance (e.g. 500 miles) between 2 IP addresses?

Is there some API that lets you look this up?


回答1:


you can check this questtion distance between 2 ip address




回答2:


This might be the closest you're gonna get: Who provides a WHOIS API? as @carl norum said not all IP addresses resolve to a physical location due to ISP and DNS server locations and other fun routing magic. But if you do get the client's ISP it's up to that ISP to release the physical address of their client.



来源:https://stackoverflow.com/questions/16292250/get-the-geographic-distance-between-2-ip-addresses

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!