Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imperial Units in iOS UI #765

Closed
jpmens opened this issue Jan 10, 2024 · 6 comments
Closed

Imperial Units in iOS UI #765

jpmens opened this issue Jan 10, 2024 · 6 comments

Comments

@jpmens
Copy link
Member

jpmens commented Jan 10, 2024

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
Copy link
Member

ckrey commented Jan 10, 2024

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
Copy link
Member

ckrey commented Jan 10, 2024

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
Copy link
Member Author

jpmens commented Jan 11, 2024

Looks good to me!

@ckrey
Copy link
Member

ckrey commented Jan 15, 2024

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
Copy link
Member

ckrey commented Jan 15, 2024

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
Copy link
Member

ckrey commented Feb 4, 2024

Available since version 17.1.1

@ckrey ckrey closed this as completed Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants