How do I save geolocation data for an HTML5 or trigger.io app for path mapping later? -
im creating app needs track location of user (with knowledge, running app) can show them route later. should use html5 timeout interval save coordinates every n seconds , if so, how should save data , how should save (locally using local storage or post server?)
also, easiest way display map of user has been later?
has done before?
the timeout interval forge.geolocation
, balance of responsiveness of application. also, network traffic expensive. maybe can buffer... last 10 geopositions... , http post (or whatever... see parse below) in bulk? , since geo data sounds temporary device data why there need persist using forge.prefs
? unless maybe need app work "offline"?
for permanent storage @ parse (generous free plan) , parse.geopoint
class via javascript or rest api 1 possible solution. have nifty methods (kilometersto, milesto, radiansto) - https://parse.com/docs/js/symbols/parse.geopoint.html
Comments
Post a Comment