TomTom Maps for JavaScript
    Preparing search index...

    Type Alias WaypointProps

    Properties specific to route waypoints.

    type WaypointProps = {
        pauseDurationSeconds?: number;
    }
    Index
    pauseDurationSeconds?: number

    How long the vehicle waits at this stop, in seconds.

    When specified, the routing service adds the wait to the leg arriving at this waypoint, and the map shows it on the stop's pin.

    • The wait counts towards the route's travelTimeInSeconds, not only its arrival time
    • Not supported on the destination: the routing service requires the last leg's wait to be 0
    // Wait 30 minutes at this stop
    { pauseDurationSeconds: 30 * 60 }