Incoming position data validation

Sifumwikea year ago

Hi, is it possible to set Traccar to only record position data if the incoming latitude and longitude parameters differ from already recorded position data (latitude and longitude)

Sifumwikea year ago

I took time going through the configuration resource. Will the "filter.distance" config solve my issue?

Track-trace2a year ago

Yes it can.

In the conf directory you can set it in traccar.xml

For instance filter for distance within 20 meters

<entry key='filter.enable'>true</entry>
<entry key='filter.distance'>20</entry>

After that restart traccar server.

Sifumwikea year ago

Thank you.

Sifumwikea year ago

What factor(s) marks a position data as not valid? I would like to understand that.

Track-trace2a year ago

Not Valid is when the device reports that the GPS position is not valid (then normally a geolocation service will be used to determine the position on LBS or WIFI)

Or when you ask that question in relation to filtering. In the example filter.distance 20 all valid positions which are within range of 20 meter from the last recorded position will be filtered out.

Sifumwikea year ago

Can I set traccar not to record invalid positions?

Anton Tananaeva year ago

Yes, there's a filter for that. Please check the documentation.

Track-trace2a year ago

@Sifumwike

filter.invalid config
Filter invalid (valid field is set to false) positions.

Sifumwikea year ago

Okay, thank you.

Track-trace2a year ago

But you would still be better off with using a geolocation service for that. Because invalid position normally include LBS or Wifi in that data so that you can still have a fairly accurate position (with Wifi it can even be up to 10 meters).

Sifumwikea year ago

Thank you, understood.