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 SummaryBubbleField

    SummaryBubbleField:
        | "duration"
        | "distance"
        | "durationDifference"
        | "trafficDelay"

    A piece of route information a summary bubble can show.

    • duration - The travel time, traffic included.
    • distance - The route's length, in the display units.
    • durationDifference - How much longer or shorter the route takes than the selected one, such as +6 min. Only the other routes show it, and only when the difference rounds to a minute.
    • trafficDelay - The time traffic adds, on a line of its own beside an icon coloured by the worst delay along the route. Only a route with a delay shows it.