sdk-routing / com.tomtom.online.sdk.routing.route.vehicle / CombustionVehicleConsumption

CombustionVehicleConsumption

@PublicPreview("2021.06") data class CombustionVehicleConsumption

Describes parameters used to determine the vehicle power and consumption.

Parameters

currentFuelInLiters - Current fuel in liters.

auxiliaryPowerInLitersPerHour - Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour. It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc. Applicable only for combustion engines.

fuelEnergyDensityInMJoulesPerLiter - Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ). It is used in conjunction with the *Efficiency parameters for conversions between saved or consumed energy and fuel. For example, energy density is 34.2 MJ/l for gasoline, and 35.8 MJ/l for Diesel fuel. Applicable only for combustion engines.

speedConsumptionInLitersPerHundredKm - Map used to determine fuel consumption at different speeds.

Constructors

<init>

CombustionVehicleConsumption(currentFuelInLiters: Double? = null, auxiliaryPowerInLitersPerHour: Double? = null, fuelEnergyDensityInMJoulesPerLiter: Double? = null, speedConsumptionInLitersPerHundredKm: Map<Double, Double>)

Describes parameters used to determine the vehicle power and consumption.

Properties

auxiliaryPowerInLitersPerHour

val auxiliaryPowerInLitersPerHour: Double?

Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour. It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc. Applicable only for combustion engines.

currentFuelInLiters

val currentFuelInLiters: Double?

Current fuel in liters.

fuelEnergyDensityInMJoulesPerLiter

val fuelEnergyDensityInMJoulesPerLiter: Double?

Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ). It is used in conjunction with the *Efficiency parameters for conversions between saved or consumed energy and fuel. For example, energy density is 34.2 MJ/l for gasoline, and 35.8 MJ/l for Diesel fuel. Applicable only for combustion engines.

speedConsumptionInLitersPerHundredKm

val speedConsumptionInLitersPerHundredKm: Map<Double, Double>

Map used to determine fuel consumption at different speeds.