Hello fellow coders! I need assistance finding a lightweight JavaScript code that can filter based on geographical location.
This script needs to first determine if the GPS is enabled or not. If disabled, redirect to www.no.com. If enabled, it should check the current location (latitude, longitude) and calculate the proximity to a specific point. For instance, if within 1.2 km of coordinates 48.858364,2.294509, redirect to www.yes.com; otherwise, redirect to www.no.com
I would like the latitude, longitude, and radius values in the code to be easily modifiable. I'm sure there must be existing scripts out there that offer this functionality! ;) Could someone please point me in the right direction? Thank you! :)
Best regards, Shelley