getRoundedMetricDistanceStringWithTensRounded

Return

a Distance object containing the rounded value and unit.

Converts the input distance to a user-friendly metric string: • For distances ≥ 1000 m, converts to kilometres rounded to one decimal place. Whole-number kilometres are stored as an Int (e.g. 2000 m → 2 km), otherwise stored as a Float (e.g. 1523 m → 1.5 km). • For distances < 1000 m, rounds to the nearest 10 m. If the rounded value is below the minimum threshold, a default minimum is used.

Parameters

distanceMeters

distance in meters