formatDistance method

FormattedMeasure formatDistance(
  1. DgisLocalizations localizations
)

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);
}