MapboxDistanceFormatter

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

Parameters

options

Constructors

Link copied to clipboard
constructor(options: DistanceFormatterOptions)

Properties

Link copied to clipboard

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"