Created
August 31, 2014 10:32
-
-
Save YutaWatanabe/4251f6442ebce5b37eca to your computer and use it in GitHub Desktop.
Save location data to mobile service
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
var locationTable = client.getTable("Location"); | |
locationTable.insert({ | |
'Latitude' : position.coords.latitude, | |
'Longitude' : position.coords.longitude, | |
'Altitude' : position.coords.altitude, | |
'Accuracy' : position.coords.accuracy, | |
'AltitudeAccuracy' : position.coords.altitudeAccuracy, | |
'Heading' : position.coords.heading, | |
'Speed' : position.coords.speed | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment