Route departure time
Plan one trip into Amsterdam for departures across the next weekday and pick the fastest.
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 parallelcalculateRoutecalls are the whole comparison.- Each route’s
summarycarries thetravelTimeInSecondsthe bars show and thedepartureTimeit was planned for. RoutingModule.showRoutesdraws a picked departure from the response already held, with no new request.
Related examples
Route with traffic monitoring
Dynamic route recalculation with live traffic updates
Getting Started
Routing
Traffic
Web
Add Stops to Route
Find stops along a route within a one-minute detour and insert them all at optimal positions in a single call.
Getting Started
Routing
Search and Geocoding
Electric Vehicles
Utilities
Web
Along route search
Find the beaches and viewpoints within a one-minute detour of a coastal drive
Getting Started
Routing
Search and Geocoding
Web
Display units
Switch a route's labels and your own text between metric, imperial UK and imperial US units.
Getting Started
Utilities
Routing
Web