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. The formatter is set up when a MapboxNavigation is attached to MapboxNavigationApp; calling this before that throws.

Link copied to clipboard

The distance formatted to locale and unit type, which can be shown in a human viewable text element. The formatter is set up when a MapboxNavigation is attached to MapboxNavigationApp; calling this before that throws.