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

ElectricVehicleConsumption

@PublicPreview("2021.06") data class ElectricVehicleConsumption

Describes capacity and the consumption of the EV.

Parameters

maxChargeInkWh - Specifies the capacity of the vehicle's battery in kilowatt hours (kWh). Applicable only for electric engines. If used at all, it must be used in conjunction with {@link #withCurrentChargeInKWh(double)}.

currentChargeInkWh - Specifies the current electric energy supply in kilowatt hours (kWh). Applicable only for electric engines.

auxiliaryPowerInkW - Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW). It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc. Applicable only for electric engines.

speedConsumptionInKWhPerHundredKm - Specifies the speed-dependent component of consumption. Provided as an unordered list of speed/consumption-rate in kWh pairs. Applicable only for electric engines.

Constructors

<init>

ElectricVehicleConsumption(maxChargeInkWh: Double, currentChargeInkWh: Double, auxiliaryPowerInkW: Double, speedConsumptionInKWhPerHundredKm: Map<Double, Double> = mapOf())

Describes capacity and the consumption of the EV.

Properties

auxiliaryPowerInkW

val auxiliaryPowerInkW: Double

Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW). It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc. Applicable only for electric engines.

currentChargeInkWh

val currentChargeInkWh: Double

Specifies the current electric energy supply in kilowatt hours (kWh). Applicable only for electric engines.

maxChargeInkWh

val maxChargeInkWh: Double

Specifies the capacity of the vehicle's battery in kilowatt hours (kWh). Applicable only for electric engines. If used at all, it must be used in conjunction with {@link #withCurrentChargeInKWh(double)}.

speedConsumptionInKWhPerHundredKm

val speedConsumptionInKWhPerHundredKm: Map<Double, Double>

Specifies the speed-dependent component of consumption. Provided as an unordered list of speed/consumption-rate in kWh pairs. Applicable only for electric engines.