Skip to content

Instantly share code, notes, and snippets.

@andreafortuna andreafortuna/geolocating.js Secret
Created May 16, 2016

Embed
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
You can’t perform that action at this time.