TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ChargingPreferencesPCT

    Charging preferences specified by battery percentage.

    Requires maxChargeKWH to be set in the vehicle model.

    const prefs: ChargingPreferencesPCT = {
    minChargeAtDestinationPCT: 20,
    minChargeAtChargingStopsPCT: 10
    };
    type ChargingPreferencesPCT = {
        minChargeAtChargingStopsPCT: number;
        minChargeAtDestinationPCT: number;
    }
    Index

    Properties

    minChargeAtChargingStopsPCT: number

    The minimum battery percentage you wish to arrive at each charging station with.

    However, the remaining charge at the first charging stop may be lower. Requires maxChargeKWH to be set in the vehicle model.

    Prevents deep discharge by ensuring you don't arrive at chargers with critically low battery. This accounts for unexpected detours or charger unavailability.

    Typical Values:

    • Conservative: 15-20%
    • Moderate: 10-15%
    • Minimal: 5-10%

    Minimum: 0, Maximum: 50

    minChargeAtChargingStopsPCT: 10  // 10% buffer at each stop
    minChargeAtChargingStopsPCT: 15 // Conservative buffer
    minChargeAtDestinationPCT: number

    The minimum battery percentage you wish to arrive at your destination with.

    Requires maxChargeKWH to be set in the vehicle model.

    Ensures you don't arrive with critically low battery, providing a safety buffer.

    Typical Values:

    • Conservative: 20-30% (safe buffer)
    • Moderate: 10-20% (some buffer)
    • Minimal: 5-10% (tight planning)

    Minimum: 0, Maximum: 100

    minChargeAtDestinationPCT: 20  // Arrive with 20% battery
    minChargeAtDestinationPCT: 15 // Moderate buffer