TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ElectricVehiclePreferences

    Preferences specific to electric vehicles.

    Contains EV-specific routing preferences, primarily for long-distance trips with charging stops.

    const evPrefs: ElectricVehiclePreferences = {
    chargingPreferences: {
    minChargeAtDestinationPCT: 20,
    minChargeAtChargingStopsPCT: 10
    }
    };
    type ElectricVehiclePreferences = {
        chargingPreferences?: ChargingPreferences;
    }
    Index

    Properties

    chargingPreferences?: ChargingPreferences

    Charging preferences for Long Distance EV Routing.

    Specifying these preferences will trigger the calculation of charging stops along your route. Requires the ElectricConsumptionModel to be set.

    When Charging Stops Are Added:

    • Route exceeds single-charge range
    • Preferences ensure safe battery levels
    • Optimal charger locations are found
    • Charging time is minimized
    chargingPreferences: {
    minChargeAtDestinationPCT: 20,
    minChargeAtChargingStopsPCT: 10
    }