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

withAccelerationEfficiency

abstract fun withAccelerationEfficiency(accelerationEfficiency: Double!): T

Specifies the efficiency of converting chemical energy stored in fuel to kinetic energy when the vehicle accelerates (i.e., KineticEnergyGained/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 #withDecelerationEfficiency(double). If used, #withVehicleWeightInKg(int) has to be used as well.

Parameters

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

Return
T: A reference to the common params object.