transistorsoft / cordova-background-geolocation-SampleApp

Cordova Background Geolocation Sample Application
https://www.transistorsoft.com/shop/products/cordova-background-geolocation
MIT License
122 stars 78 forks source link

wrong distance is calculated #121

Closed Jitendranagar closed 4 years ago

Jitendranagar commented 4 years ago

The odometer value is 1058919 and time is "2019-12-09T06:50:45" for id 1611552 and next odometer value is 1061805 and time 2019-12-09T06:50:55 for id 1611553. The time difference is 5 second and difference in odometer value is (1061805-1058919)=2886 which is very big and therefor wrong distance is calculated. how to fix this issue?

This issue found multiple times. PFA. Tracking_issue

christocracy commented 4 years ago

Why are you posting this issue at the SampleApp?

The odometer is correct for the input data. "Garbage in = Garbage out". Decrease desiredOdometerAccuracy as desired to prevent odometer calculations when accuracy is above that threshold.