owntracks/ios

Imperial Units in iOS UI

jpmens opened this issue · 6 comments

jpmens commented

As submitted in owntracks/android#1573 and discussed in owntracks/android#1571, there is an enhancement idea to have the UI present data in Imperial units? Feet, miles, mph, etc.

I'd assume a toggle in settings which defaults to metric.

In favor of feature parity between the apps, I link this here.

ckrey commented

Unfortunately this does not work (only for Apple Maps). Need to change Region in "Settings/General/Language&Region"
In iOS, the user can use "Settings/General/Language&Region/Measurement System" to select the system.
<img width=github.com/owntracks/ios/assets/4027289/d9f924f9-8536-463c-9141-d29f5cca1ec3">

ckrey commented

Will use

  • feet (ft) for altitudes and accuracy
  • miles per hour (mph) for speed
  • yards (yd) for short distances (less than a mile)
  • miles (mi) for long distances

no change to

  • heading in degrees (°)

  • barometric pressure in kiloPascal (kPA)

  • radius of circular regions in meters (m)

  • other settings typically in meters (m)

Simulator Screenshot - iPhone SE (3rd generation) - 2024-01-10 at 20 39 59

jpmens commented

Looks good to me!

ckrey commented

Using Apple Foundation's NSMeasurementFormatter now:

... Representations of measurements are reduced and converted into a more convenient unit, when possible. For example, a quantity of 12000 meters would be represented as 12 kilometers.

ckrey commented

Use Region to change settings! Changes to Measurement System affect Apple Maps only!

Simulator Screenshot - iPhone SE (3rd generation) - 2024-01-15 at 14 52 52

ckrey commented

Available since version 17.1.1