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

    Type Alias RoutesEntry

    A single entry in the route calculation history.

    type RoutesEntry = {
        _module?: RoutingModule;
        _monitor?: RouteMonitor;
        _shown?: boolean;
        _tick?: number;
        data: Routes;
        id: string;
        label: string;
        params: RouteParams;
        timestamp: number;
        waypoints: WaypointLike[];
    }
    Index

    Properties

    _module?: RoutingModule

    Per-entry RoutingModule. Each entry owns its own module so display state (which route variant is selected, which waypoints are shown, layer theme) lives on the entry instead of a shared slice-level module. Lazy-initialised via RoutingState helpers — undefined until first show.

    _monitor?: RouteMonitor

    Per-entry route monitor. Lazy-created on first RoutingState.startMonitoring; reused across stop/start cycles. Recalculates this route (same waypoints + params) on its interval so the entry stays fresh with live traffic.

    _shown?: boolean

    True while this entry's _module is rendering routes/waypoints on the map.

    _tick?: number

    Monotonic counter bumped on every RoutingState.replaceRouteData. Guards against an out-of-order render: a slow showRoutes from an earlier tick that resolves after a newer tick has already overwritten data bails before touching the map.

    data: Routes
    id: string
    label: string
    params: RouteParams
    timestamp: number
    waypoints: WaypointLike[]