I'm in search of a simple, lean-and-mean ;) JavaScript that will allow me to filter on geographical location.
The script should first check on GPS enabled yes or no. If no, go to www.no.com If yes, check location (latitude, longitude) and then check proximity to that location. For example: if you are within 1.2 km of location 48.858364,2.294509 go to www.yes.com, if not go to www.no.com
As you will understand: I want to be able to easily change the latitude,longitude AND the radius in the script... Surely something like this has been written before! ;) Can someone please help me find it? Thanks! :)
Kindest regards, Shelley