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

withUphillEfficiency

abstract fun withUphillEfficiency(uphillEfficiency: Double!): T

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 to combustion engines. If used at all, it must be used in conjunction with #withDownhillEfficiency(double). If used, #withVehicleWeightInKg(int) has to be used as well.

Parameters

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

Return
T: A reference to the common params object.