Route departure time

Plan one trip into Amsterdam for departures across the next weekday and pick the fastest.

View on GitHub
SDK 1.0.0

Eight departures of the same Haarlem to Amsterdam Zuid trip, two hours apart, line up by travel time, and the fastest one is on the map.

  • when: { option: 'departAt', localDateTime } plans each route around the traffic expected at that hour in Haarlem, wherever you open the page, so eight parallel calculateRoute calls are the whole comparison.
  • Each route’s summary carries the travelTimeInSeconds the bars show and the departureTime it was planned for.
  • RoutingModule.showRoutes draws a picked departure from the response already held, with no new request.

Related examples