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

withDecelerationEfficiency

abstract fun withDecelerationEfficiency(decelerationEfficiency: Double!): T

Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the vehicle decelerates (i.e., ChemicalEnergySaved/KineticEnergyLost). ChemicalEnergySaved is obtained by converting saved (not consumed) fuel to energy using fuelEnergyDensityInMJoulesPerLiter. Applicable only to combustion engines. If used at all, it must be used in conjunction with #withAccelerationEfficiency(double). If used, #withVehicleWeightInKg(int) has to be used as well.

Parameters

decelerationEfficiency - Double!: valid values: [0.0, 1/accelerationEfficiency]

Return
T: A reference to the common params object.