MapboxDistanceFormatter

class MapboxDistanceFormatter(options: DistanceFormatterOptions) : DistanceFormatter

Implementation of DistanceFormatter, which can format distances in meters based on a language format and unit type.

Parameters

options

Constructors

MapboxDistanceFormatter
Link copied to clipboard
fun MapboxDistanceFormatter(options: DistanceFormatterOptions)

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
formatDistance
Link copied to clipboard
open override fun formatDistance(distance: Double): SpannableString
Returns a formatted SpannableString with bold and size formatting.
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

options
Link copied to clipboard
val options: DistanceFormatterOptions