return "";
UnitSystem unitSystem = RouteConverter.getInstance().getUnitSystemModel().getUnitSystem();
double distanceInMeters = unitSystem.valueToUnit(distance);
if (abs(distanceInMeters) < maximumDistanceDisplayedInMeters)
return format("%d %s", round(distanceInMeters), unitSystem.getElevationName());
double distanceInKiloMeters = unitSystem.distanceToUnit(distance / 1000.0);
if (abs(distanceInMeters) < maximumDistanceDisplayedInHundredMeters)
return format("%s %s", roundFraction(distanceInKiloMeters, 1), unitSystem.getDistanceName());
return format("%d %s", round(distanceInKiloMeters), unitSystem.getDistanceName());
}