Locating your user in meatspace
- An understanding of how to find users
- An understanding of how cool CloudFlare Workers can be
- An understanding of how cool the haversine formula is
Detecting the physical location by IP Address OR HTML5 geolocation
In this pen, I show how to implement a web service that can either determine the user's location based upon their IP address or based upon what location their web browser returns. The IP-based geolocation also includes "confidence level" that can be used in the listing.