OsmAnd request , how to set speed in SI (km/h)

tfoutfou a year ago

Hi

i would like to know how i can send my speed in Km/h

or how would i set the server to understand that my POST request is in Km/h

currently if i do

http://serveradress:port/?id=1234567&timestamp=1737903846&lat=12.3456&lon=12.3456&speed=45

i got 83.34 Km/h in the position report and that's not what i would like as a behaviour

i understand that this is a conversion from Knot to Kmh but how can i avoid that ?

thanks

Anton Tananaev a year ago

You can set osmand.speed to kmh in the config file.

tfoutfou a year ago

is there a way to set it for a single device ?

because if i set it globally , it will mess with all the android client device that can't be set to a particular unit in the app

Anton Tananaev a year ago

Currently it's a global configuration.

tfoutfou a year ago

i don't understand why traccar is not using the SI system for speed

and not even Miles per hour , but a strange Knot unit

seem couterintuitive as an european

Thanks

Anton Tananaev a year ago

In case you're not aware, all GPS receivers report knots. That's the standard format.

tfoutfou a year ago

ok absolutely not aware about that , thanks for the information

you seem to be the guy that knows a lot around here , thanks for your time

will add a few line of code in my request to convert it before it reach the server