Playing with Python, Flask, and IP2Location
Go to http://lite.ip2location.com/ and download a data file with lat/log into a folder named data
at the root of the project. This should be all you need, and then you can call the following...
/distance/<any_public_ip>
- for distance information between the given IP and the AWS regions, sorted shortest to longest/distance/server
- for distance information between the service's IP and the AWS regions, sorted shortest to longest/distance
- for distance information between Google's DNS IP and the AWS regions, sorted shortest to longest/details/<any_public_ip>
- for location name information for the given IP/details/server
- for location name information for the service's IP/details
- for location name information for Google's DNS IP