Unit of speed.

seba7 years ago

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?

Anton Tananaev7 years ago

Traccar Client sends speed in knots.

adirahman6 years ago

how to im get total distance ?
im use for website on php

Anton Tananaev6 years ago

How is your question related to the topic? Please ask in appropriate place.

Simeon6 years ago

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.

Anton Tananaev6 years ago

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.

Simeon6 years ago

Please accept my apologies, didn't saw the information in release log!