Position fluctuations constitute towards distance in Summary

SamS3 years ago

Dear Anton,
At Outset, Thanks a tonne for providing amazing software as Open source.

I am using traccar android client to track distance traveled per day. So i use summary report report to get the total distance traveled in a day.
But as usual, Gps positions fluctuates and same distance get added towards distance traveled in summary report. I researched well on google and forum, Accordingly, applied max speed(50Km per hour) and invalid position filter. But still i am getting a huge difference in actual distance traveled and in summary report. Device odometer is showing more than 200+ km even when device is static for a day.
Error Screenshot
error-traccar1

Can you suggest me the solution and direction towards it?
*Kindly ignore, if there is any formatting issue, feel to update the question, if required.
Thanks in advance.

Slawek3 years ago

show yours filters from default.xml

SamS3 years ago

Trccar.xml are as follows:

<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.onRequest'>true</entry>
<entry key='geocoder.ignorePositions'>true</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>https://us1.locationiq.com/v1/reverse.php</entry>
<entry key='geocoder.key'>XXXXXXXXXXXXXXXXXXXXX</entry>
<entry key='geocoder.format'>%f</entry>
<entry key='filter.enable'>true</entry>
<entry key='filter.maxSpeed'>50</entry>
<entry key='mail.smtp.host'>smtp.sparkpostmail.com</entry>
<entry key='mail.smtp.port'>2525</entry>
<entry key='mail.smtp.ssl.enable'>false</entry>
<entry key='mail.smtp.from'>XXXXXXXXXXXXXXXXXXXXXX</entry>
<entry key='mail.smtp.auth'>true</entry>
<entry key='mail.smtp.username'>SMTP_Injection</entry>
<entry key='mail.smtp.password'>XXXXXXXXXXXXXXXXXXXXXXXXXX</entry>
<entry key='decoder.ignoreSessionCache'>true</entry>

Default.xml are as follows:

<entry key='geocoder.enable'>false</entry>
<entry key='geocoder.type'>google</entry>
<entry key='filter.enable'>true</entry>
<entry key='filter.future'>86400</entry>
<entry key='event.enable'>true</entry>
<entry key='event.ignoreDuplicateAlerts'>true</entry>
<entry key='processing.computedAttributes.enable'>true</entry>
<entry key='processing.engineHours.enable'>true</entry>

Rest are as default as provided by traccar.

Slawek3 years ago

try add

<entry key='filter.distance'>45</entry>
<entry key='filter.invalid'>true</entry>
<entry key='filter.accuracy'>70</entry>
<entry key='filter.duplicate'>true</entry>
<entry key='filter.zero'>true</entry>

<entry key='coordinates.filter'>true</entry> 
<entry key='coordinates.minError'>60</entry>
<entry key='event.motion.speedThreshold'>1.11</entry>

make some test with walue filters

filter.distance
filter.accuracy
coordinates.minError
event.motion.speedThreshold

SamS3 years ago

Thanks a lot Slawek. you advice works like charm for me. Here i'll add my 2 cent, in case, anyone follow the questions for answer:

  1. Android Client : Keep Location accuracy High. In medium accuracy, device send the network provider given coordinates, those aren't accurate.

filter.distance to ignore or filter very close points.
filter.accuracy to ignore all inaccurate points( Points provided by network provider).
filter.duplicate : name is self sufficient to explain.

SamS3 years ago

Hi Anton & Slawek,

The above shared solution has minimized the error case but Not zero. Still i am still experiencing fluctuations in positions for certain devices.
Following is the content of traccar.xml

<entry key='filter.distance'>200</entry>
<entry key='filter.invalid'>true</entry>
<entry key='filter.accuracy'>50</entry>
<entry key='filter.duplicate'>true</entry>
<entry key='filter.zero'>true</entry>
<entry key='coordinates.filter'>true</entry> 
<entry key='coordinates.minError'>100</entry>
error2

following are my observations, Data points likely to fluctuate when :

  1. Data points have different fixtime & servertime.
  2. Altitude not in between -100 to 300.
  3. Only in certain devices.

Please suggest the next possible solution to make it better.
Let me know if anyone need Log to analyse it better.

SamS3 years ago

Hey Anton,
Greetings of the day.
looking for your kind attention towards the above mention issue.
Thanks in advance , will always be happy to oblige you.

Anton Tananaev3 years ago

After this don't expect any help from me. Also, there is plenty of information available about filtering options and how they work.

SamS3 years ago

I knew it's gonna impact heavier upon me but I did after an wait of 48 hours.
What I knew "what is wrong" is wrong. My sincerest apologies for that.

I tried almost everything mentioned on forum still getting fluctuations.

Track-trace3 years ago

I do not see the filter <entry key='filter.accuracy'>70</entry> in the configuration file description.

https://www.traccar.org/configuration-file/

Does this filter actually exists ? filter.accuracy and what is the purpose of this filter exactly

SamS3 years ago

Filter.Accuracy is to filter all data points > mentioned value. If GPS is not enabled in traccar client, then App send data position given by network provider which is not accurate. So it will filter all buggy positions.