MapboxDistanceFormatter

class MapboxDistanceFormatter(val options: DistanceFormatterOptions) : DistanceFormatter

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

Parameters

options

Constructors

Link copied to clipboard
fun MapboxDistanceFormatter(options: DistanceFormatterOptions)

Functions

Link copied to clipboard
open override fun formatDistance(distance: Double): SpannableString

Returns a formatted SpannableString with bold and size formatting. I.e., "10 mi", "350 m"

Properties

Link copied to clipboard
val options: DistanceFormatterOptions