Distance Calculations

Neil Romig7 years ago

I have Teltonika FM1100 tracker units in our vehicles and am trying to compare distance values as reported by the Teltonika units and those given by Traccar.
For example, Traccar report gives distance as 133.43km, Teltonika gives 225.5km - and to add to confusion if I sum the "distance" values stored in attributes I get 4575.4km (presuming it to be metres)!
What is stored in the "distance" element of attribute and how does Traccar convert it, and why should it differ so much from the Teltonika value (which is correct).

Anton Tananaev7 years ago

Distance is calculated using coordinates on the server. It's in meters in the database. If it's incorrect, it means that something is wrong with the data. One possibility is that data is not reporting in correct order.

Neil Romig7 years ago

Would this be caused by the vehicle being out of GPRS signal, and the tracker unit reporting buffered GPS fixes newest first when it gets back into GPRS range?

Anton Tananaev7 years ago

Yes, it can be.

Neil Romig7 years ago

Shall I raise a Github issue for this?

Anton Tananaev7 years ago

You can, but that's how it's designed to work at the moment.