sdk-routing / com.tomtom.online.sdk.routing.ev / ElectricVehicleDescriptor

ElectricVehicleDescriptor

@Beta(2020, 10) class ElectricVehicleDescriptor

Represents electric vehicle descriptor used during route plan.

Parameters

speedConsumptionInKWhPerHundredKm - Specifies the speed-dependent component of consumption in kWh.

currentChargeInKWh - Specifies the current electric energy supply in kWh.

maxChargeInkWh - Specifies the maximum electric energy supply in kWh that may be stored in the vehicle's battery.

minChargeAtDestinationInkWh - The battery level upon arrival at the destination of the resulting route will be at least this much. Maximum value: maxChargeInkWh

minChargeAtChargingStopsInkWh - The battery level upon arrival at each intermediate charging stop of the resulting route will be at least this much. Maximum value: 0.2 × maxChargeInkWh

chargingModes - A non-empty list of at most 10 chargingModes, which the vehicle is able to use to charge. Each chargingConnection appears in at most one chargingMode.

auxiliaryPowerInKW - Specifies the amount of power consumed for sustaining auxiliary systems, in kWh.

vehicleLoadType - Types of cargo that may be classified as hazardous materials and restricted from some roads.

vehicleAdrTunnelRestrictionCode - If vehicleAdrTunnelRestrictionCode is specified, the vehicle is subject to ADR tunnel restrictions.

Types

Builder

class Builder

A builder class used to create ElectricVehicleDescriptor for the Long Distance EV Routing service.

Properties

auxiliaryPowerInKW

var auxiliaryPowerInKW: Double?

Specifies the amount of power consumed for sustaining auxiliary systems, in kWh.

chargingModes

val chargingModes: List<ChargingMode>

A non-empty list of at most 10 chargingModes, which the vehicle is able to use to charge. Each chargingConnection appears in at most one chargingMode.

currentChargeInKWh

val currentChargeInKWh: Double

Specifies the current electric energy supply in kWh.

maxChargeInkWh

val maxChargeInkWh: Double

Specifies the maximum electric energy supply in kWh that may be stored in the vehicle's battery.

minChargeAtChargingStopsInkWh

val minChargeAtChargingStopsInkWh: Double

The battery level upon arrival at each intermediate charging stop of the resulting route will be at least this much. Maximum value: 0.2 × maxChargeInkWh

minChargeAtDestinationInkWh

val minChargeAtDestinationInkWh: Double

The battery level upon arrival at the destination of the resulting route will be at least this much. Maximum value: maxChargeInkWh

speedConsumptionInKWhPerHundredKm

val speedConsumptionInKWhPerHundredKm: Map<Double, Double>

Specifies the speed-dependent component of consumption in kWh.

vehicleAdrTunnelRestrictionCode

var vehicleAdrTunnelRestrictionCode: VehicleAdrTunnelRestrictionCode

If vehicleAdrTunnelRestrictionCode is specified, the vehicle is subject to ADR tunnel restrictions.

vehicleLoadType

var vehicleLoadType: VehicleLoadType

Types of cargo that may be classified as hazardous materials and restricted from some roads.