Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 2, 2014 01:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save devdays/47eb9c47dd77cb35ba31 to your computer and use it in GitHub Desktop.
Geolocation get current position
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