MapboxSpeedLimitApi

class MapboxSpeedLimitApi

A Mapbox implementation for formatting speed limit view related data.

Parameters

formatter

formats the speed limit data into a string for displaying in the UI

processor

an instance of a SpeedLimitProcessor

Constructors

Link copied to clipboard
fun MapboxSpeedLimitApi(formatter: ValueFormatter<UpdateSpeedLimitValue, String>)

Functions

Link copied to clipboard
fun updateSpeedLimit(speedLimit: SpeedLimit?): Expected<UpdateSpeedLimitError, UpdateSpeedLimitValue>

Evaluates the SpeedLimit data into a state that can be rendered by the view.

Properties

Link copied to clipboard
var formatter: ValueFormatter<UpdateSpeedLimitValue, String>