A real-time demonstration of Cloudflare's edge network in action. Gets your location (lat/lon) from the Cloudflare request object. The same request object gives us the colo of the Cloudflare data center where your request is being handled. Calculates the distance between you and the worker, and displays detailed information about both endpoints.
The colo mapping to location is taken from this repo
Check out the code on GitHub.