updatePostedAndCurrentSpeed

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

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

Return

an updated state for rendering in the view, null if not available (e. g. current speed is unknown)

Parameters

formatter

a ValueFormatter instance

locationMatcherResult
distanceFormatterOptions