How routing APIs estimate drive time (and when you need traffic)
Where drive-time estimates come from, free-flow vs historical vs live-traffic ETAs, and a simple test for which one your product needs.
By Wayline Engineering · · Updated · 2 min read
Every routing API returns a duration. Behind that single number is a model of how fast vehicles move on each road. Knowing which model you're getting is the difference between an ETA customers trust and one they learn to ignore.
Three kinds of drive-time estimates
| Type | How it's computed | Strengths | Weaknesses |
|---|---|---|---|
| Free-flow | Speed per road from its type, speed limit and rules in a routing profile | Stable, reproducible, cheap | Optimistic in rush hour |
| Historical (typical) | Average observed speeds by road, day of week and time of day | Good for planning a day ahead | Needs large probe datasets |
| Live traffic | Current observed speeds from phones and vehicles | Best for "leave now" ETAs | Most expensive; changes minute to minute |
Wayline returns free-flow durations computed on OpenStreetMap roads with tuned vehicle profiles. That's a deliberate choice: it keeps results reproducible (every response carries a map_version) and prices low.
Which one does your product need?
Ask one question: would a 20% rush-hour delay change the decision you make with this number?
Free-flow is usually enough for:
- Delivery and shipping fees
- Mileage reimbursement and expense audits
- Service-area and delivery-radius checks
- Next-day route planning and territory design
- Sorting "nearest store" or "nearest technician" candidates
Consider traffic for:
- Customer-facing "arriving in 12 minutes" ETAs in dense cities
- Same-hour dispatch where minutes matter
- SLA penalties tied to exact arrival times
Many teams combine both: use free-flow durations to price and plan (most of the volume), and a traffic-aware call only for the final ETA shown to a waiting customer (a small fraction).
Making free-flow ETAs more realistic
- Add a time-of-day buffer. A simple multiplier for peak hours (for example 1.2–1.4×, calibrated on your own trips) closes most of the gap.
- Add stop time. Parking, loading and walking to the door often exceed driving time on short urban trips.
- Calibrate on your data. Compare predicted durations with actual GPS trip times for a few hundred trips and fit your own buffer per city and hour.
- Choose the right profile. Motorcycles and cars move differently in dense traffic; use a profile that matches your fleet where available.
Distance is more robust than duration
Road distance depends only on the road network and route choice, so it varies far less between providers than duration does. If your business logic can be expressed in distance (fees, reimbursement, radius), it will be more stable and easier to audit.
How to evaluate a provider's durations
Don't compare two APIs against each other — that only tells you how much they disagree. Compare each against ground truth: recorded GPS traces of real drives. Our benchmark methodology explains how to set that up fairly.
FAQ
Why do different routing APIs give different drive times? They use different speed models, map data and route choices. Traffic-aware APIs also change answers by time of day.
Is Google's ETA more accurate? For live, rush-hour ETAs, traffic data usually helps. For off-peak trips, distances and free-flow durations from well-mapped OpenStreetMap areas are typically close.
Does Wayline support departure times? Not yet. Durations are free-flow estimates. Check the changelog for new routing features.