Route Stop Wait Playground

Adjust how long a route waits at a stop, and see the wait on the stop's pin and in the journey time.

View on GitHub
SDK 1.0.0-rc.7

Moving the slider replans the three-stop route, and the panel splits what comes back into driving, waiting and an arrival time.

  • pauseDurationSeconds rides on the stop’s own properties beside what geocodeOne returned, so one array feeds both calculateRoute and showWaypoints.
  • Each leg’s stopTimeInSeconds and the route’s summary.travelTimeInSeconds separate the waiting from the driving, so the request never has to be remembered.
  • summary.arrivalTime comes back ready to format, with the wait already in it.

Related examples