Hi there,
I am currently working on a data field that displays, among other things, the current speed.
I want the data field to be universally usable for different activities, e.g. for activities that display kmh, mph or kn (nautical speed - knots) as the unit of speed.
The speed value itself is taken from Activity.Info.currentSpeed in meters per second.
I have seen that by using getDeviceSettings() you can get information about the distanceUnits as well as the paceUnits. However, these only return km or miles (metric, statute).
Is there a way to get the speed unit that the current application is using? For example, the sailing application normally displays speed in knots and distance in nautical miles.
Any help would be greatly appreciated.
Kind regards,
Nicolas