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

withDownhillEfficiency

abstract fun withDownhillEfficiency(downhillEfficiency: Double!): T

Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation (i.e., ChemicalEnergySaved/PotentialEnergyLost). 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 #withUphillEfficiency(double). If used, #withVehicleWeightInKg(int) has to be used as well.

Parameters

downhillEfficiency - Double!: valid values: [0.0, 1/uphillEfficiency]

Return
T: A reference to the common params object.