TomTom Maps for JavaScript
    Preparing search index...

    Type Alias BudgetType

    BudgetType: typeof budgetTypes[number]

    Type of budget constraint for reachable range calculation.

    Budget Types:

    • timeMinutes: Travel time in minutes (isochrone)
    • distanceKM: Travel distance in kilometers (isodistance)
    • remainingChargeCPT: Remaining battery charge in percentage (EV)
    • spentChargePCT: Battery charge consumed in percentage (EV)
    • spentFuelLiters: Fuel consumed in liters (combustion)

    Common Use Cases:

    • Time: "Where can I reach in 30 minutes?"
    • Distance: "What's within 10 km?"
    • EV charge: "How far can I go on 50% battery?"
    • Fuel: "Range with 20 liters of fuel"
    const timeType: BudgetType = 'timeMinutes';
    const distanceType: BudgetType = 'distanceKM';
    const evType: BudgetType = 'remainingChargeCPT';