frontend icon indicating copy to clipboard operation
frontend copied to clipboard

locale based scale and distance units

Open rrkarman opened this issue 2 years ago • 2 comments
trafficstars

I live in the US and recently took a 7,000 mile road trip with my family. I used owntracks to share my location and route with family and friends but my US based friends were confused how many miles we traveled per day because the showDistanceTraveled only shows km. A quick multiplication of km times 0.6214 would return the miles value and could be based on the locale of en-US.

(Also, would love to have locale settings in the mobile app for distance and speed to be displayed in mile and miles per hour.)

rrkarman avatar Aug 04 '23 16:08 rrkarman

Personally I have no use for imperial units, but I would not be opposed to merging a PR adding those as a config option :) (it should be explicit rather than being tied to the locale, however)

The mobile apps have separate repos, please file issues for those in https://github.com/owntracks/android/ / https://github.com/owntracks/ios.

linusg avatar Aug 04 '23 17:08 linusg

https://github.com/owntracks/android/issues/1573 https://github.com/owntracks/ios/issues/765

troycarpenter avatar Jan 12 '24 17:01 troycarpenter

Did this feature ever get added? I've been digging through https://github.com/owntracks/frontend/blob/main/docs/config.md looking for an option to show miles/mph/ft etc on the map instead of km/kmh/m and wasn't able to find it.

jeremyakers avatar Jan 02 '25 00:01 jeremyakers

Did this feature ever get added? I've been digging through https://github.com/owntracks/frontend/blob/main/docs/config.md looking for an option to show miles/mph/ft etc on the map instead of km/kmh/m and wasn't able to find it.

To the best of my knowledge, no... Looks like you fixed it though. Can't wait to try it! 🎉

compuguy avatar Jan 02 '25 06:01 compuguy