owntracks / ios

OwnTracks' iPhone App
http://owntracks.org
Other
315 stars 90 forks source link

Imperial Units in iOS UI #765

Closed jpmens closed 4 months ago

jpmens commented 5 months ago

As submitted in https://github.com/owntracks/android/issues/1573 and discussed in https://github.com/owntracks/android/discussions/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 5 months ago

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 5 months ago

Will use

no change to

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

jpmens commented 5 months ago

Looks good to me!

ckrey commented 5 months ago

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 5 months ago

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 4 months ago

Available since version 17.1.1