CarDistanceFormatter

object CarDistanceFormatter

Object for formatting distances. Set the DistanceFormatterOptions through the NavigationOptions.

Functions

Link copied to clipboard
fun carDistance(distanceMeters: Double): Distance

Provides a Distance object used in Template objects like RoutingInfo and TravelEstimate.

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

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