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

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

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String
updateSpeedLimit
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

formatter
Link copied to clipboard
var formatter: ValueFormatter<UpdateSpeedLimitValue, String>
formats the speed limit data into a string for displaying in the UI