Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: