Vehicle preferences - optional routing preferences based on engine type.
The engine type (combustion, electric, or undefined for generic)
Currently only electric vehicles have specific preferences (charging stops). Future versions may add preferences for combustion vehicles.
// Electric vehicle with charging preferencesconst evPrefs: VehiclePreferences<'electric'> = { chargingPreferences: { minChargeAtDestinationPCT: 20, minChargeAtChargingStopsPCT: 10 }};// Combustion or generic vehicle (no preferences)const genericPrefs: VehiclePreferences = {}; Copy
// Electric vehicle with charging preferencesconst evPrefs: VehiclePreferences<'electric'> = { chargingPreferences: { minChargeAtDestinationPCT: 20, minChargeAtChargingStopsPCT: 10 }};// Combustion or generic vehicle (no preferences)const genericPrefs: VehiclePreferences = {};
Vehicle preferences - optional routing preferences based on engine type.