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 WaypointProps

    Properties specific to route waypoints.

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

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

    If you set it, 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.
    • The destination doesn't support it. The routing service requires the last leg's wait to be 0, and calculateRoute rejects it at validation.
    • On the origin, the routing service never gets it, since no leg arrives there, though the map still shows it on the origin's pin.
    // Wait 30 minutes at this stop
    { pauseDurationSeconds: 30 * 60 }