{"action":"created","issue":{"url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/242","repository_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt","labels_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/242/comments","events_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/242/events","html_url":"https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/242","id":196249287,"number":242,"title":"Proper configuration for tracking a walk","user":{"login":"andistancu","id":5528106,"avatar_url":"https://avatars.githubusercontent.com/u/5528106?v=3","gravatar_id":"","url":"https://api.github.com/users/andistancu","html_url":"https://github.com/andistancu","followers_url":"https://api.github.com/users/andistancu/followers","following_url":"https://api.github.com/users/andistancu/following{/other_user}","gists_url":"https://api.github.com/users/andistancu/gists{/gist_id}","starred_url":"https://api.github.com/users/andistancu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andistancu/subscriptions","organizations_url":"https://api.github.com/users/andistancu/orgs","repos_url":"https://api.github.com/users/andistancu/repos","events_url":"https://api.github.com/users/andistancu/events{/privacy}","received_events_url":"https://api.github.com/users/andistancu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-17T23:45:00Z","updated_at":"2017-01-09T15:49:48Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to track a walk. I'm doubting what's the best configuration of the plugin considering that I might stop and sit a bench. It can be that I stop for 2 minutes, or for an hour. What is the proper (battery friendly) way to configure this?\r\n\r\n\r\nThe issues I've encountered in my multiple configuration tests:\r\n- I stop for a little bit. Then I appear after a long time in a very distant place.\r\n- When I walk in a straight line I appear jumping from one side of the sidewalk to the other.\r\n\r\nI use all the geo submissions to calculate the distance walked (server side). jumping from one side to the other of the sidewalk greatly increases the distance walked.\r\n\r\nThe \"best\" configuration I got so far:\r\n\r\n```\r\n\t\t        desiredAccuracy: 0,\r\n\t\t        distanceFilter: 5,\r\n\t\t        stationaryRadius: 3,\r\n\t\t        locationUpdateInterval: 1000,\r\n\t\t        fastestLocationUpdateInterval: 500,\r\n\t\t\r\n\t\t        // Activity Recognition config\r\n\t\t        activityType: 'Fitness',\r\n\t\t        activityRecognitionInterval: 1000,\r\n\t\t        pausesLocationUpdatesAutomatically: false,\r\n\t\t        stopDetectionDelay: 10,\r\n\t\t        disableStopDetection: true,\r\n\t\t        stopTimeout: 240,\r\n\t\t\r\n\t\t        // Application config\r\n\t\t        debug: true,\r\n\t\t        stopOnTerminate: true,\r\n\t\t        startOnBoot: false,\r\n\t\t\r\n\t\t        // HTTP / SQLite config\r\n\t\t        url: '',\r\n\t\t        method: 'POST',\r\n\t\t        autoSync: true,\r\n\t\t        maxDaysToPersist: 1,\r\n```\r\n\r\n\r\n\r\nI also played around with changePace() but I guess I didn't understand exactly how this one works.\r\n\r\nThank you.\r\n\r\n\r\nAttachment\r\n![img_0154](https://cloud.githubusercontent.com/assets/5528106/21327742/dda993b0-c630-11e6-9894-fe0503cb6248.PNG)\r\n: screenshot of zigzag walking"},"comment":{"url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/comments/271319090","html_url":"https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/242#issuecomment-271319090","issue_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/242","id":271319090,"user":{"login":"christocracy","id":14999,"avatar_url":"https://avatars.githubusercontent.com/u/14999?v=3","gravatar_id":"","url":"https://api.github.com/users/christocracy","html_url":"https://github.com/christocracy","followers_url":"https://api.github.com/users/christocracy/followers","following_url":"https://api.github.com/users/christocracy/following{/other_user}","gists_url":"https://api.github.com/users/christocracy/gists{/gist_id}","starred_url":"https://api.github.com/users/christocracy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christocracy/subscriptions","organizations_url":"https://api.github.com/users/christocracy/orgs","repos_url":"https://api.github.com/users/christocracy/repos","events_url":"https://api.github.com/users/christocracy/events{/privacy}","received_events_url":"https://api.github.com/users/christocracy/received_events","type":"User","site_admin":false},"created_at":"2017-01-09T15:49:48Z","updated_at":"2017-01-09T15:49:48Z","body":"Native location services are like a tap of water.  The plugin allows you to adjust the \"heat\" (`desiredAccuracy`) and rate-of-flow (`distanceFilter`).  The plugin holds a cup of water under the tap and delivers this to you.  The water coming out of the tap is completely up to the device, network environment (including satellites in space; obstructions to those satellites).\r\n\r\nYou've configured `desiredAccuracy: 0`.  There's nothing else the plugin can do for you.\r\n\r\nFor over 4 years now, I get nothing but superb results from locations all over the world, including [Iceland](http://www.transistorsoft.com/lab/iceland).\r\n\r\n"}}
{"actor":{"display_login":"christocracy"}}