Created
November 15, 2016 18:14
-
-
Save refo/05a1058bbb1b23c5e53968e05c03c6c9 to your computer and use it in GitHub Desktop.
Javascript GeoLocation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigator.geolocation.getCurrentPosition(function(geopos){ | |
var coords = geopos.coords; | |
console.log('https://maps.google.com/?q='+coords.latitude+','+coords.longitude); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment