TomTom Maps for JavaScript
    Preparing search index...

    Type Alias CombustionVehicleState

    State properties for combustion engine vehicles.

    Tracks fuel level for consumption calculations and range predictions.

    const state: CombustionVehicleState = {
    currentFuelInLiters: 45 // Half tank of a 90L tank
    };
    type CombustionVehicleState = {
        currentFuelInLiters: number;
    }
    Index

    Properties

    currentFuelInLiters: number

    Specifies the current supply of fuel in liters.

    Used to:

    • Calculate remaining range
    • Determine if refueling is needed
    • Optimize routes based on available fuel

    Typical Tank Sizes:

    • Small car: 40-50 liters
    • SUV: 60-80 liters
    • Truck: 200-500 liters

    Minimum value: 0

    currentFuelInLiters: 50   // 50 liters remaining
    currentFuelInLiters: 200 // Truck with 200 liters