filter.invalid documentation is confusing

florin216 years ago

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

i had expected to filter out invalid positions using <entry key='filter.invalid'>true</entry>, yet if i go to reports-> pick a device -> today -> show https://i.imgur.com/3NZteeL.png i still see invalid positions

how do i filter your those invalid positions?

Anton Tananaev6 years ago
  1. Have you enabled filtering?
  2. Have you restarted service?
  3. Are you sure you are not looking at the old data?
florin216 years ago

Have you enabled filtering?

i dont know what you mean

Have you restarted service?

yes

Are you sure you are not looking at the old data?

no the change was days ago and the data was from today

Anton Tananaev6 years ago

To turn on filtering use filter.enable parameter.

florin216 years ago

oh you mean <entry key='filter.enable'>true</entry>

here is the relevant part of the file, in case there are any conflicts

  <entry key="config.default">/opt/traccar/conf/default.xml</entry>
  <entry key='filter.enable'>true</entry>
  <entry key='filter.distance'>50</entry>
  <entry key='filter.zero'>true</entry>
  <entry key='filter.invalid'>true</entry>
  <entry key='filter.future'>300</entry>
  <entry key='filter.duplicate'>true</entry>
  <entry key='web.port'>8082</entry>
  <entry key='geocoder.enable'>false</entry>
Anton Tananaev6 years ago

If that's really your config, it should work.

florin216 years ago

If that's really your config

yes, since 2019-02-01 i dont get any more invalid tags and i did exactly nothing

the only issue that may be is whit server snapshot delaying the restart

Hello, I would like to know what is the criterion used to consider a position as invalid? Invalid positions are not inserted into the table ? I'm kind of confused, I imagined that the filter would be exactly to not register invalid positions in the positions table.

Anton Tananaev2 years ago

GPS module reports the validity flag. By default we store "invalid" position because they might include some other useful information. If for your use case you want to filter them, there's a filter for it specifically.

Anton Tananaev2 years ago

Also even "invalid" position might be useful. For example if my vehicle is stolen, I would prefer to have invalid (could be outdated or inaccurate) location than nothing at all.

Thanks for the quick response, in my case, I use a suntech st310u model tracker, and this model is showing GPS signal losses, so the device ends up sending the same geolocation information (latitude, longitude) every 10 seconds, causing duplicity information for a long period of time, which leaves us confused. I will enable this parameter and monitor its behavior. Thanks again!