Skip to content

Instantly share code, notes, and snippets.

@YutaWatanabe
Created August 31, 2014 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YutaWatanabe/4251f6442ebce5b37eca to your computer and use it in GitHub Desktop.
Save YutaWatanabe/4251f6442ebce5b37eca to your computer and use it in GitHub Desktop.
Save location data to mobile service
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