formatDistance

fun formatDistance(distance: Double): SpannableString

The distance formatted to locale and unit type, which can be shown in a human viewable text element.

Return

SpannableString formatted with bold and relative size.

See also

Parameters

distance

in meters.