How to know if to show Kilometers or Miles?


I have an app with localisation, and I want to know how to know if to use KM or Miles?

The globalization plugin does not have that…


As you may well be aware, if you are using Google Maps, an additional layer of complexity may arise because it will return distances in the unit of the country of trip origin.

That being said, I don’t think there is an easy standard way of doing this. If you have a country code, you might be best off just checking if it’s ly/mm/us or not.


Luckily I am not relying on google maps to do this, because that sounds odd.

Thanks, I will check the navigator for the country code, and convert the KM if needed!