Incoming position data validation

Sifumwike2 years 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)

Sifumwike2 years ago

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

Track-trace22 years 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.

Sifumwike2 years ago

Thank you.

Sifumwike2 years ago

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

Track-trace22 years 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.

Sifumwike2 years ago

Can I set traccar not to record invalid positions?

Anton Tananaev2 years ago

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

Track-trace22 years ago

@Sifumwike

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

Sifumwike2 years ago

Okay, thank you.

Track-trace22 years 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).

Sifumwike2 years ago

Thank you, understood.