MapboxDistanceUtil

object MapboxDistanceUtil

A utility for rounding distances for displaying in view components.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
formatDistance
Link copied to clipboard
fun formatDistance(distanceInMeters: Double, roundingIncrement: Int, unitType: UnitType): Double
This will recalculate and format a distance based on the parameters inputted.
fun formatDistance(distanceInMeters: Double, roundingIncrement: Int, unitType: UnitType, context: Context): FormattedDistanceData
This will recalculate and format a distance based on the parameters inputted.
fun formatDistance(distanceInMeters: Double, roundingIncrement: Int, unitType: UnitType, context: Context, locale: Locale): FormattedDistanceData
This will recalculate and format a distance based on the parameters inputted.
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String