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

withDecelerationEfficiency

fun withDecelerationEfficiency(decelerationEfficiency: Double): RouteQueryBuilder

Overrides IRouteQuery.withDecelerationEfficiency

Specifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation (i.e. PotentialEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed is obtained by converting consumed fuel to chemical energy using fuelEnergyDensityInMJoulesPerLiter. Applicable only for combustion engines. If used at all, must be used in conjunction with .withDownhillEfficiency. If used, .withVehicleWeightInKg has to be used as well.

Parameters

uphillEfficiency - valid values: 0.0,1/downhillEfficiency

Return
reference to the common params object