Hacker News new | ask | show | jobs
by LeifCarrotson 746 days ago
Geo-IP through Cloudflare:

    <script id="cflocation"> 
        window.CFLocation = {"lat":####,"lng":####};window.CFDsm=null;
    </script>
See https://developers.cloudflare.com/network/ip-geolocation/.

Mine's off by more than 100 miles (Comcast Business fiber), it's not magic.

2 comments

It's probably either just the lat long of the PoP or some magic based connection latency?
Cloudflare only gives you the country
Then how did the website end up just about a mile from my house?