A little javascript class to handle geolocation in a web browser
https://github.com/FabFab/GPS-in-your-browser
How it works :
GPS.get(); [...] var latitude = GPS.position.latitude; var longitude = GPS.position.longitude;
or with a callback:
GPS.get(updatePosition); function updatePosition() { var latitude = GPS.position.latitude; var longitude = GPS.position.longitude; [...] }
More about Geolocation in web browsers:
http://en.wikipedia.org/wiki/W3C_Geolocation_API#How_does_Geolocation_work.3F
Latest posts by Fab (see all)
- La Horde du Contrevent : review - 13 October 2024
- For Whom the Bells Tolls: review - 4 August 2024
- Self Aware On Air Neon Sign - 8 June 2024