MapboxSpeedInfoApi

class MapboxSpeedInfoApi

Mapbox implementation of for deriving the posted speed limit and current speed at users current location.

Parameters

processor

an instance of a SpeedLimitProcessor

Constructors

Link copied to clipboard
fun MapboxSpeedInfoApi()

Mapbox implementation for deriving the posted and current speed at users current location.

Functions

Link copied to clipboard
fun updatePostedAndCurrentSpeed(    locationMatcherResult: LocationMatcherResult,     distanceFormatterOptions: DistanceFormatterOptions,     formatter: ValueFormatter<SpeedData, Int> = PostedAndCurrentSpeedFormatter()): SpeedInfoValue?

Evaluates LocationMatcherResult data to calculate the posted and user's current speed.