Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
all of geolocation
  • Loading branch information
Joel Salisbury committed Jan 21, 2016
1 parent e7696e9 commit ce56809
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/main.js
Expand Up @@ -38,7 +38,9 @@ function showPosition(position) {

x.innerHTML = "Latitude: " + position.coords.latitude +
"<br>Longitude: " + position.coords.longitude +
"<br>Altitude: " + position.coords.altitude;
"<br>Altitude: " + position.coords.altitude +
"<br>Heading: " + position.coords.heading+
"<br>Speed: " + position.coords.speed
}

getLocation();
setInterval(getLocation, 500);

0 comments on commit ce56809

Please sign in to comment.