TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ChargingPreferences

    Charging preferences for Long Distance EV Routing.

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

    When to Use:

    • Long-distance EV trips beyond single-charge range
    • Planning trips with charging station stops
    • Ensuring adequate battery buffers
    • Optimizing charging stop locations

    Choose Format:

    • Use percentage when thinking in terms of battery %
    • Use kWh when you prefer absolute energy values
    // Percentage-based preferences
    const pctPrefs: ChargingPreferences = {
    minChargeAtDestinationPCT: 20,
    minChargeAtChargingStopsPCT: 10
    };

    // Energy-based preferences
    const kwhPrefs: ChargingPreferences = {
    minChargeAtDestinationInkWh: 15,
    minChargeAtChargingStopsInkWh: 10
    };