Learn
Free-flow vs traffic-aware routing
Free-flow routing times a journey as if the roads were empty: every road at its posted limit or a typical speed for its class, with nothing added for congestion. Traffic-aware routing adjusts those speeds with historical patterns, current measurements or both. Free-flow is good enough for ranking options, comparing catchments and planning off-peak trips; it is not good enough for promising a rush-hour arrival time. oslew routes at free-flow speeds unless an operator applies a traffic feed, which is an Enterprise capability.
Last reviewed
Every travel time a routing engine returns rests on an assumption about how fast traffic moves on each road. The simplest assumption — that nothing slows it down — is called free-flow, and it needs nothing but the road map. Whether that is good enough depends less on the engine than on the question you are asking of it.
What free-flow timing is
A route is a chain of road segments, and its duration is the sum of each segment’s length divided by a speed. In free-flow routing that speed is fixed per road: the posted limit where the map data records one, and otherwise a default for the road’s class — a residential street slower than a primary road, a primary road slower than a motorway. Pedestrians and cyclists get a walking or riding pace. Nothing is added for waiting at signals, giving way at junctions, turning across traffic or queuing.
The result is the time the trip would take on an empty network, obeying the limits: a free-flow time. It is deterministic, it needs no data beyond the road map, and it is the same at three in the morning as at half past eight.
Why it is a lower bound
Real journeys meet several delays that free-flow ignores:
- Control delay. Traffic signals and stop lines cost time at nearly every urban junction, even with no other traffic.
- Congestion. Near capacity, speeds fall well below the limit, most sharply on the busiest roads at the busiest hours.
- Incidents and works. A lane closure or a collision can turn a fast corridor into the slowest route in the area.
- The last metres. Finding a place to stop and walking to the door are outside any routing engine’s time.
So a free-flow time is optimistic, and the error is not uniform. It is small on rural roads and at night, and largest in dense city centres at peak hours — exactly where people most want a reliable arrival time.
When free-flow is good enough
The useful test is whether you are comparing options or promising a time.
- Ranking. Which of these stores is nearest by car, which technician is closest to a job. Every candidate is measured the same way, so the ranking often survives even when the absolute times are short. A distance matrix of free-flow times is a sound basis for it.
- Catchment comparisons. Drawn at the same budget, the isochrones of two candidate sites are optimistic in the same way, so the comparison between them is fair.
- Off-peak and night work. Early deliveries, overnight logistics and weekend planning run close to free-flow conditions.
- Walking and cycling. Congestion barely affects a pedestrian’s pace, and affects a cyclist far less than a driver.
- Ordering stops. A visit order depends on relative times between stops; a uniform slowdown leaves the best order unchanged, and uneven slowdowns change it less than they change the total.
- Planning and design. Territories, service areas and network studies care about structure more than about today’s traffic.
When it is not
- Arrival times given to customers for trips in cities at busy hours.
- Tight time windows, where a plan built on optimistic legs will run late by the afternoon.
- Time-critical dispatch, where the difference between two responders is minutes and one of them faces a jam.
- Peak-hour commute maps, where a driving band drawn free-flow covers more ground than anyone reaches; the commute-time maps workflow covers how to caption them.
- Days with known disruption: events, closures, severe weather.
How traffic-aware routing works
Traffic-aware routing keeps the same search and changes the speeds it searches on. The speeds come from three kinds of data:
- Historical profiles: for each road, a typical speed for each period of the week, built from months of observations. They capture recurring congestion — the Monday morning queue — but not today’s accident.
- Current flow: speeds measured now, usually from GPS probes in vehicles and phones, sometimes from road sensors, published as speeds per road stretch and refreshed every few minutes.
- Incidents: closures and slowdowns reported by authorities or detected in the flow.
A router uses them in one of two ways. The simpler replaces each road’s weight with its current speed and routes as before, which answers “how long if I left now”. The fuller approach is time-dependent routing, where each road’s speed depends on when the vehicle reaches it, so a long trip is timed against conditions that change along the way; that is what a departure time in the future requires. Either way, fast routing engines precompute structures over the road weights, and changing the weights means recomputing them — a trade between freshness and speed that every traffic-aware engine has to make.
Compensating without traffic data
A team without traffic data can still avoid the worst errors of free-flow times:
- Compare a sample of free-flow durations with how long your own drivers actually took, by area and hour, and derive your own peak factors.
- Quote windows, not minutes, and widen them in city centres at busy times.
- For peak-hour catchments, shrink the time budget rather than pretending the band is accurate.
- Add a fixed allowance per stop for parking and access, which no router includes.
Where oslew stands
oslew routes at free-flow speeds by default: each road at its posted limit where the data has one, else a speed for its class, and nothing for junctions, signals or congestion. The routing API, the matrix, isochrones and route optimisation all work this way, and there is no time-of-day model and no historical profile.
Traffic-aware timing is available only where an operator applies a feed, which is the Enterprise operator product described under operator feeds. An operator posts a list of road stretches with a current speed or a slowdown factor; only the roads named change, and each feed replaces the last. Live traffic and GTFS-Realtime feeds are pushed to a pod over HTTP by an operator and held only in that pod’s memory; the server does not fetch them. Routing requests then ask for profile=live or traffic=live on the driving network. Every answer names the engine that produced it, and a request for current speeds where no feed is applied quietly falls back to free-flow — so a product that labels anything “with traffic” should check that field on every answer.
Bottom line
Free-flow times are the right tool for comparing, ranking and planning, and a lower bound for anything you promise. Traffic-aware routing narrows the gap by changing the speeds, not the search, at the cost of data feeds and more work to keep them fresh. oslew is free-flow unless an Enterprise operator applies a feed, and says which on every answer; decide which your question needs before you trust the minutes.
Questions
Is a free-flow travel time the same as a typical travel time?
No. Free-flow is the best case: the time on an empty road at the posted or assumed speed, with nothing for signals, junctions or queues. A typical time averages real conditions and is longer, most of all in cities at peak hours. Treat a free-flow time as a lower bound on what a driver will see.
When is free-flow routing good enough?
When you are comparing rather than promising: ranking stores by drive time, comparing the catchments of candidate sites, ordering a van’s stops, planning trips at night, and anything on foot or by bicycle. Every option is measured the same way, so the comparison usually holds even when the absolute times are too short.
How does traffic-aware routing work?
It replaces each road’s fixed speed with a measured or predicted one. Historical profiles give a typical speed for each road at each hour of the week; current data from vehicles and phones reports speeds now; predictive models blend the two for a future departure. The router then searches on those speeds instead of the free-flow ones.
Does oslew offer traffic-aware routing?
Not by default. Every route, matrix and isochrone is free-flow unless an operator has applied a traffic feed, which is part of the Enterprise operator product. The engine field on each answer says which speeds answered, and a request for current speeds where no feed is applied falls back to free-flow without an error.
Can traffic change which route is fastest, not just how long it takes?
Yes. Congestion is not spread evenly: a ring road that is quickest at night can be the slowest option at peak hours, so traffic can reorder routes as well as lengthen them. Between nearby options on similar roads the order changes less often than the times do, which is why free-flow rankings are more reliable than free-flow durations.