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

    Type Alias RouteProgress

    The cumulative distance and time at a position along the route.

    Both fields are optional because a progress entry may omit either value. Interpolation utilities return the resolved, always-present equivalent, RouteProgressAtPoint.

    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.