sdk-routing / com.tomtom.online.sdk.routing.data / RouteQueryBuilder / withConstantSpeedConsumptionInLitersPerHundredKm

withConstantSpeedConsumptionInLitersPerHundredKm

fun withConstantSpeedConsumptionInLitersPerHundredKm(constantSpeedConsumptionInLitersPerHundredKm: SpeedToConsumptionMap): RouteQueryBuilder

Overrides IRouteQuery.withConstantSpeedConsumptionInLitersPerHundredKm

Specifies the speed-dependent component of consumption. Provided as an unordered list of speed/consumption-rate in liters-per-100km pairs. Applicable only for combustion engines.

Parameters

constantSpeedConsumptionInLitersPerHundredKm - constraints: size - 1,25, consumption value - 0.01,100000.0

Return
reference to the common params object