Distance / fuel numbers and decimal

neph 11 hours ago

Hi,

In Reports > Trips, the distance and fuel consumption are fixed to two decimal places. I can't get the actual distance to display. If I change the distance unit (from km to nmi), I can see the actual distance...

traccar_trips.png

How can I change this? I tried creating "ui.distanceFormat" and "ui.fuelFormat" attributes in my user account (and even on my device), but these attributes aren't being applied.

I'm using Traccar 6.12.2 with Docker.

Thanks in advance for your help.

Anton Tananaev 10 hours ago

What do you mean by actual distance? What do you see when nmi are selected?

neph 10 hours ago

Anton Tananaev: sorry, my message wasn't clear...

I see this with the distance in nmi:
traccar_trips_nmi.png

I don't understand why all my trips are exactly 3.00 km or 17.00 km, and not 3.50 km or 17.80 km for example. Could this be a problem with my tracker Teltonika FMB003?

Or is there a round() function on the Traccar interface? I'm trying to understand.

Thanks for your help

Anton Tananaev 10 hours ago

2.70 nmi is 5.00 km. And for my own device I see decimal places, so I don't think it's a server issue.

neph 9 hours ago

You're right, I'll check if the tracker is sending the "Virtual Odometer" data. That could be the source of the problem.