MapboxTripProgressApi

class MapboxTripProgressApi

Used for calculating data needed for trip progress.

Parameters

formatter
processor

an instance of TripProgressProcessor

Constructors

MapboxTripProgressApi
Link copied to clipboard
fun MapboxTripProgressApi(formatter: TripProgressUpdateFormatter)

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getTripProgress
Link copied to clipboard
fun getTripProgress(routeProgress: RouteProgress): TripProgressUpdateValue
Calculates a trip progress update based on a RouteProgress
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

formatter
Link copied to clipboard
var formatter: TripProgressUpdateFormatter