MapboxTripProgressApi

class MapboxTripProgressApi

Used for calculating data needed for trip progress.

Parameters

formatter
processor

an instance of TripProgressProcessor

Constructors

Link copied to clipboard
fun MapboxTripProgressApi(formatter: TripProgressUpdateFormatter)

Functions

Link copied to clipboard
fun getTripProgress(routeProgress: RouteProgress): TripProgressUpdateValue

Calculates a trip progress update based on a RouteProgress

Properties

Link copied to clipboard
var formatter: TripProgressUpdateFormatter