Difference between totalDistance and io16

Chris4 years ago

I was wondering what is the difference between the totalDistance and io16? If I want to fetch the real vehicle klm from the dashboard which of these two should I use? I use the following link from the reference https://traccar-staging.open1.eu/api/reports/route?deviceId=17&from=2021-01-01T21:00:00Z&to=2021-01-02T20:55:00Z. It returns Inside the attributes object I see the following attributes:

battery: 0
distance: 2.12
driver2: "null"
event: 240
gpsStatus: 1
hdop: 0.30000000000000004
ignition: false
io16: 6603323
io24: 0
io68: 0
io81: 0
io82: 0
io83: 0
io84: 360
io85: 0
io87: 29037000
io89: 0
io100: 11173
io102: 0
io103: 0
io105: 6311910
io107: 3988
io110: 0
io135: 0
io152: 0
io168: 0
io187: 0
io199: 0
io200: 0
io235: 0
motion: false
operator: 20210
pdop: 0.5
power: 12.521
priority: 0
rssi: 2
sat: 15
totalDistance: 21728496.29

which one is the correct?

Anton Tananaev4 years ago

Total distance is calculated on the server.

Chris4 years ago

So the io16 is what I need?

Chris4 years ago

I am not sure I understand what do you mean..