formatDistance method
Formats the current distance according to the provided localizations.
Returns a FormattedMeasure
containing the value and unit.
Implementation
FormattedMeasure formatDistance(DgisLocalizations localizations) {
return metersToFormattedMeasure(distance, localizations);
}