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

    Type Alias RouteProgress

    Cumulative distance and time measurements at a position along the route.

    Both fields are optional because a progress entry may omit either value. Use RouteProgressAtPoint for the resolved (always-present) equivalent returned by interpolation utilities.

    type RouteProgress = {
        distanceInMeters?: number;
        travelTimeInSeconds?: number;
    }
    Index
    distanceInMeters?: number

    Cumulative distance in meters from the route start.

    travelTimeInSeconds?: number

    Cumulative travel time in seconds from the route start.