report.ignoreOdometer ==> Meaning

Peter Flower5 years ago

What's the functionality of the key report.ignoreOdometer into default.xml ??
In my tracker I have a record for the odometer calculation, which is done by the tracker, which I think is a little bit more precise than Traccar.

  • What's the default value of this key?
  • What happen if I put TRUE this key in the conf?
  • Is it related to the Total Distance?

Thanks in advance.
Best Regards

Anton Tananaev5 years ago

What's the default value of this key?

Default values for boolean parameters are always false.

What happen if I put TRUE this key in the conf?
Is it related to the Total Distance?

It would ignore odometer reported by device and use total distance instead.

Peter Flower5 years ago

Great! only to re-confirm, in my case, I send the key Position.KEY_ODOMETER, according you told me, the best thing is this, because the calculate of the distance is done by the tracker. The reports, maintenance module will use the new value KEY_ODOMETER and not TOTAL DISTANCE, which is calculated by Traccar, anyway in some test that I did, the difference is too small.

ODOMETER: 100 Km
TOTAL DISTANCE: 98Km

Well, I send position every 20 seconds, this helps a lot of for the calculation.
In addition, if I have the ODOMETER data in the State Window, the TOTAL DISTANCE don't have much sense, no? Could I remove that row?

Thanks in advance Anton.
Best Regards.

Anton Tananaev5 years ago

Yes, you can hide it.