TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ExtendedRouteRepresentation

    ExtendedRouteRepresentation: "distance" | "travelTime"

    Extended route representation options.

    Controls which additional progress information is included at route polyline points.

    • distance: Cumulative distance from start to each point
    • travelTime: Cumulative travel time from start to each point
    // Include both distance and time progress
    const extended: ExtendedRouteRepresentation[] = ['distance', 'travelTime'];
    ['distance', 'travelTime']