FormattedDistance

data class FormattedDistance(val distance: String, val unit: String)

Container for a formatted distance.

Parameters

distance

Distance result of a formatting.

unit

Formatted unit abbreviation with a respect for a locale.

Constructors

Link copied to clipboard
constructor(distance: String, unit: String)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the formatted distance in the format "$distance $unit".