nextcloud / maps

🌍🌏🌎 The whole world fits inside your cloud!
https://apps.nextcloud.com/apps/maps
GNU Affero General Public License v3.0
507 stars 88 forks source link

Make metric/imperial a user setting #412

Open RoundOrange opened 4 years ago

RoundOrange commented 4 years ago

Currently, the metric/imperial option is hard coded in src/script.js. As measurement units can be a personal preference, or a user may have grown up learning one system, but now live in a country which uses another, please consider allowing the user to specify their preference.

Also, en_AU and en_NZ are listed in src/script.js as imperial countries. They most certainly are not and have not been for a long time. Please remove these countries from the imperial list.

goldgoldfish commented 4 years ago

en_CA should also be removed from the imperial group.

vwbusguy commented 4 years ago

I'm not sure how this is working now anyway? I'm in the USA with en_US and I'm still seeing metric measurements. Besides, I know plenty of people who live in the US who moved here from somewhere else that might prefer metric.

image image image

ToeJet commented 3 years ago

This would be a welcome option. Or possibly a dual display. I do some things like driving which I track in miles. Others like walking are tracked in km.

kenherbert commented 3 years ago

None of the locales currently hardcoded except en_US officially use imperial-derived measurements.

stephen-azure commented 3 months ago

I have my locale in Nextcloud set to English(United States), but Maps doesn't provide Miles. It would be really good to have this be a specific setting in Maps. Seems like a glaring oversight to not have support for this.

vwbusguy commented 3 months ago

Besides the fact that the current intended way is demonstrably not working for en_US (and that technically US Standard is not precisely the same as Imperial but predates Imperial by about 50 years), using language and locality isn't ideal, either. There are plenty of native US Citizens that have Spanish or another language as their primary language (US has no official Federal language!) and plenty of immigrants or metric-enthusiasts here that prefer metric. Further, this is a somewhat political issue in the UK, and a matter of preference for some Canadian, Australian, etc. people, not to mention American ex-pats.

All of this complexity can be side-stepped by making this defined as a simple user preference for metric vs Imperial/US Standard.