Get the geographic distance between 2 IP addresses

2019-08-28 11:22发布

问题:

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.



标签: ip ip-address