{"action":"created","issue":{"url":"https://api.github.com/repos/christocracy/cordova-plugin-background-geolocation/issues/158","labels_url":"https://api.github.com/repos/christocracy/cordova-plugin-background-geolocation/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/christocracy/cordova-plugin-background-geolocation/issues/158/comments","events_url":"https://api.github.com/repos/christocracy/cordova-plugin-background-geolocation/issues/158/events","html_url":"https://github.com/christocracy/cordova-plugin-background-geolocation/issues/158","id":65269005,"number":158,"title":"Good parameter for automotive geolocation ?","user":{"login":"davidbarre","id":2768671,"avatar_url":"https://avatars.githubusercontent.com/u/2768671?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbarre","html_url":"https://github.com/davidbarre","followers_url":"https://api.github.com/users/davidbarre/followers","following_url":"https://api.github.com/users/davidbarre/following{/other_user}","gists_url":"https://api.github.com/users/davidbarre/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbarre/subscriptions","organizations_url":"https://api.github.com/users/davidbarre/orgs","repos_url":"https://api.github.com/users/davidbarre/repos","events_url":"https://api.github.com/users/davidbarre/events{/privacy}","received_events_url":"https://api.github.com/users/davidbarre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-30T18:09:36Z","updated_at":"2015-03-30T22:01:43Z","closed_at":null,"body":"Hello, \r\n\r\nI have some difficulties to have a regular and good working geolocation.\r\n(On ios, I remark geocation works very well when google maps is open and in front. \r\nOR when wifi is up and running )\r\n\r\nI try to find good parameters to have an automotive track works regulary.\r\nCan someone share this geoloc parameter with me ?\r\nActually I got geolocation very randomly in car in city\r\n\r\nMy actual configuration below : \r\n```javascript\r\n\tvar geoloc_options = {\r\n            url: api_adr + 'location', \r\n            headers: {                                  \r\n                'token' : Session.token()\r\n            },\r\n            desiredAccuracy: 10,\r\n            stationaryRadius: 10,\r\n            distanceFilter: 300,\r\n            notificationTitle: 'xxxxxxxx', \r\n            notificationText: 'xxxxxxxx', \r\n            activityType: 'AutomotiveNavigation',\r\n            debug: false,\r\n            stopOnTerminate: false, \r\n            locationTimeout: 10\r\n    };\r\n```\r\nI saw you don't use \"locationTimeout\" parameter ?\r\nSo, I will try your demo-app's parameter and remove locationTimeout tonight\r\n\r\n```javascript\r\nconfigure(callbackFn, failureFn, {\r\n(...)\r\n            desiredAccuracy: 10,\r\n            stationaryRadius: 20,\r\n            distanceFilter: 30,\r\n(...)\r\n            activityType: \"AutomotiveNavigation\",       // <-- iOS-only\r\n```\r\n\r\nThanks, Regards\r\n\r\n--\r\nDavid Barré"},"comment":{"url":"https://api.github.com/repos/christocracy/cordova-plugin-background-geolocation/issues/comments/87847505","html_url":"https://github.com/christocracy/cordova-plugin-background-geolocation/issues/158#issuecomment-87847505","issue_url":"https://api.github.com/repos/christocracy/cordova-plugin-background-geolocation/issues/158","id":87847505,"user":{"login":"davidbarre","id":2768671,"avatar_url":"https://avatars.githubusercontent.com/u/2768671?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbarre","html_url":"https://github.com/davidbarre","followers_url":"https://api.github.com/users/davidbarre/followers","following_url":"https://api.github.com/users/davidbarre/following{/other_user}","gists_url":"https://api.github.com/users/davidbarre/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbarre/subscriptions","organizations_url":"https://api.github.com/users/davidbarre/orgs","repos_url":"https://api.github.com/users/davidbarre/repos","events_url":"https://api.github.com/users/davidbarre/events{/privacy}","received_events_url":"https://api.github.com/users/davidbarre/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T22:01:43Z","updated_at":"2015-03-30T22:01:43Z","body":"Back,\r\n\r\nI tested parameters given earlier :\r\n\r\n```javascript\r\n\tvar geoloc_options = {\r\n            url: api_adr + 'location', \r\n            params: { (...) },\r\n            headers: { (...)},\r\n            desiredAccuracy: 0,\r\n            stationaryRadius: 20,\r\n            distanceFilter: 30,\r\n            notificationTitle: 'xxxx', \r\n            notificationText: 'xxxx', \r\n            activityType: 'AutomotiveNavigation',\r\n            debug: false,\r\n            stopOnTerminate: false, \r\n    \t\t//  locationTimeout: 10\r\n    };\r\n```\r\nFind below results of my test\r\nI'm starting to walk ~1.5km in a mostly open sky area (green circle)\r\nAnd after I take a cab and travel 9km\r\nPhone was locked and app in backgroup\r\n\r\nhttp://imgur.com/luEvQvX\r\nLive gmaps here (http://tinyurl.com/o4rdq9f)\r\n\r\nThere are few points positions when walking and only the end of the car part.\r\n\r\n--\r\nDavid"}}