Created
December 2, 2014 01:07
-
-
Save devdays/47eb9c47dd77cb35ba31 to your computer and use it in GitHub Desktop.
Geolocation get current position
This file contains 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 (position) { | |
var pos = "Latitude: " + position.coords.latitude + | |
" Longitude: " + position.coords.longitude; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment