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
// onSuccess Callback | |
// This method accepts a Position object, which contains the | |
// current GPS coordinates | |
// | |
var onSuccess = function(position) { | |
alert('Latitude: ' + position.coords.latitude + '\n' + | |
'Longitude: ' + position.coords.longitude + '\n' + | |
'Altitude: ' + position.coords.altitude + '\n' + | |
'Accuracy: ' + position.coords.accuracy + '\n' + | |
'Heading: ' + position.coords.heading + '\n' + |