Skip to content

Instantly share code, notes, and snippets.

Created May 16, 2016
What would you like to do?
Geolocating with a single javascript line
if( navigator.geolocation ) navigator.geolocation.getCurrentPosition( function( location ) {console.log( location.coords.latitude, location.coords.longitude );}, function( message ) { console.log( message );});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment