TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ElectricVehicleParams

    Parameters specific to electric vehicles (EVs).

    Use for battery electric vehicles when you need accurate range predictions, charging stop calculations, and EV-specific routing.

    Key Features:

    • Battery consumption modeling
    • Charging stop optimization
    • Regenerative braking consideration
    • Charging curve integration
    const params: ElectricVehicleParams = {
    engineType: 'electric',
    model: {
    dimensions: {
    weightKG: 2000
    },
    engine: {
    charging: {
    maxChargeKWH: 75,
    batteryCurve: [
    { stateOfChargeInkWh: 50, maxPowerInkW: 200 },
    { stateOfChargeInkWh: 70, maxPowerInkW: 100 },
    { stateOfChargeInkWh: 80, maxPowerInkW: 40 },
    ],
    chargingConnectors: [
    {
    currentType: 'AC3',
    plugTypes: [
    'IEC_62196_Type_2_Outlet',
    'IEC_62196_Type_2_Connector_Cable_Attached',
    'Combo_to_IEC_62196_Type_2_Base',
    ],
    efficiency: 0.9,
    baseLoadInkW: 0.2,
    maxPowerInkW: 11,
    },
    {
    currentType: 'DC',
    plugTypes: [
    'IEC_62196_Type_2_Outlet',
    'IEC_62196_Type_2_Connector_Cable_Attached',
    'Combo_to_IEC_62196_Type_2_Base',
    ],
    voltageRange: { minVoltageInV: 0, maxVoltageInV: 500 },
    efficiency: 0.9,
    baseLoadInkW: 0.2,
    maxPowerInkW: 150,
    },
    ]
    },
    consumption: {
    speedsToConsumptionsKWH: [
    { speedKMH: 50, consumptionUnitsPer100KM: 15 },
    { speedKMH: 90, consumptionUnitsPer100KM: 18 },
    { speedKMH: 120, consumptionUnitsPer100KM: 23 }
    ]
    }
    }
    },
    state: {
    currentChargePCT: 80
    },
    preferences: {
    chargingPreferences: {
    minChargeAtDestinationPCT: 20,
    minChargeAtChargingStopsPCT: 10
    }
    }
    };
    type ElectricVehicleParams = {
        engineType: "electric";
        model?: VehicleModel<"electric">;
        preferences?: VehiclePreferences<"electric">;
        state?: VehicleState<"electric">;
    }
    Index

    Properties

    engineType: "electric"

    Electric vehicles (EV).

    Identifies this as a battery electric vehicle.

    model?: VehicleModel<"electric">

    Model (static properties) specifically for electric vehicles.

    Should include battery capacity, charging curve, and consumption profiles.

    preferences?: VehiclePreferences<"electric">

    Preferences specifically for electric vehicles.

    Includes charging preferences for long-distance trips with charging stops.

    state?: VehicleState<"electric">

    State specifically for electric vehicles.

    Must include current battery charge (percentage or kWh) for range calculations.