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

withConstantSpeedConsumptionInKWhPerHundredKm

fun withConstantSpeedConsumptionInKWhPerHundredKm(constantSpeedConsumptionInKWhPerHundredKm: SpeedToConsumptionMap): RouteQueryBuilder

Overrides IRouteQuery.withConstantSpeedConsumptionInKWhPerHundredKm

Specifies the speed-dependent component of consumption. Provided as an unordered list of speed/consumption-rate in kWh pairs. Applicable only for electric engines.

Parameters

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

Return
reference to the common params object