Skip to content

Instantly share code, notes, and snippets.

@justindmartin
Last active August 29, 2015 13:57
Show Gist options
  • Save justindmartin/9573955 to your computer and use it in GitHub Desktop.
Save justindmartin/9573955 to your computer and use it in GitHub Desktop.
navigator.geolocation.getCurrentPosition(function(pos) {
var coords = pos.coords;
Pebble.showSimpleNotificationOnPebble('Hello!',
'Your coordinates are ' + coords.latitude + ', ' + coords.longitude);
)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment