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

    Variable budgetUnitsConst

    budgetUnits: {
        distanceKM: "km";
        remainingChargePCT: "% remaining";
        spentChargePCT: "% spent";
        spentFuelLiters: "L";
        timeMinutes: "min";
    } = ...

    The unit each BudgetType counts in, to print next to a budget value: 30 min, 20 % remaining.

    Type Declaration

    • ReadonlydistanceKM: "km"
    • ReadonlyremainingChargePCT: "% remaining"
    • ReadonlyspentChargePCT: "% spent"
    • ReadonlyspentFuelLiters: "L"
    • ReadonlytimeMinutes: "min"
    const label = `${budget.value} ${budgetUnits[budget.type]}`;