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?
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?
you can check this questtion distance between 2 ip address
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.