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>)
Content copied to clipboard
Functions
Link copied to clipboard
fun updateSpeedLimit(speedLimit: SpeedLimit?): Expected<UpdateSpeedLimitError, UpdateSpeedLimitValue>
Content copied to clipboard
Evaluates the SpeedLimit data into a state that can be rendered by the view.