Traccar Client sends speed in knots.
how to im get total distance ?
im use for website on php
How is your question related to the topic? Please ask in appropriate place.
Dear Master Anton,
I have upgraded server to newest version 3.15 and now speed is shown in knots. How can speed unit be changed in km/h, because in previous version of traccar server in server preferences there was an option to choose speed unit. I've searched forum but I could't find any information about it.
It's explained in the release notes (blog post). It has been moved to attributes. Next time please ask in a relevant topic or create a new one.
Please accept my apologies, didn't saw the information in release log!
In which unit of speed does the client send to the server?
I've found somewhere in code this line:
String speed = String.valueOf(l.getSpeed() * 1.943844); // speed in knots
So is the speed from the client sent in the OsmAnd protocol in m/s? Or I totally missed the line ...
I get the value around "49" from the client and it should be around 90 km/h.
To me it seems times 1.852 should be it, so I assume it's sent in knots?