Skip to content

Instantly share code, notes, and snippets.

@nickmeehan
Created May 23, 2014 07:28
Show Gist options
  • Save nickmeehan/1742617540637a9a8ba2 to your computer and use it in GitHub Desktop.
Save nickmeehan/1742617540637a9a8ba2 to your computer and use it in GitHub Desktop.
navigator.geolocation.getCurrentPosition(function(position) {
console.log(position.coords.latitude, position.coords.longitude);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment