You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why american's developers only calculate distance with miles and never think about all the rest of the "standardized-world-developers" ?
Please, use the ISU (International System of Units) by default... it has been released in 1960... so any length must be expressed in meters (or cm/Km/...)
I think DistanceUnit should be a required parameter. If I just see GeoCalculator.GetDistance(a, b), it is not clear what that distance is measured in (meters? km?).
Furthermore, Changing the default DistanceUnit from Miles to Meters/Kilometers should come with a major version bump since just upgrading would break anyone using the default without their knowing it. However, removing the default would only be a source-level break so this would not require a major bump.
Why american's developers only calculate distance with miles and never think about all the rest of the "standardized-world-developers" ?
Please, use the ISU (International System of Units) by default... it has been released in 1960... so any length must be expressed in meters (or cm/Km/...)
https://en.wikipedia.org/wiki/International_System_of_Units
And if you want to add an overload/option to get the result on miles, I'm not against ;-)
(For example, MAUI Location Extension ask the unit (Km or Miles) in parameter : https://www.andreasnesheim.no/calculating-distance-between-your-device-and-a-location-with-net-maui/)
Some rockets have already exploded in the past for this kind of imperial units problems... with unfortunate human deaths.
The text was updated successfully, but these errors were encountered: