This is the documentation of version 0.62.1. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ElectricVehicleParamsWithChargingStops

    ElectricVehicleParamsWithChargingStops: ElectricVehicleParams & {
        preferences: Required<ElectricVehiclePreferences>;
    } & VehicleRestrictions

    An electric vehicle that has asked for charging stops.

    Charging preferences are what select the charging-stops endpoint, so chargingStopsStrategy — which no other endpoint accepts — requires this shape rather than plain ElectricVehicleParams.

    A predefined model.variantId is bound to the same endpoint, but the rule cannot ride on the vehicle type: calculateReachableRange takes the same vehicle and accepts a variant on its own. calculateRoute validates that pairing instead.