Route with traffic monitoring
Dynamic route recalculation with live traffic updates
A Paris route stays on screen and replans itself once a minute, its live traffic delays redrawn from each fresh response.
calculateRouteaccepts the route it already returned as itslocations, so a replan follows the same path without restating the waypoints.- A
CostModeloftraffic: 'historical'holds that path steady while live delays keep drawing on it. createLatestRequestretires a superseded tick, so the slower response cannot paint last.
Related examples
Route departure time
Plan one trip into Amsterdam for departures across the next weekday and pick the fastest.
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