Design ETA Prediction for Driving Routes in Google Maps
Last updated: November 29, 2026
Quick Overview
Design an ML system that predicts arrival time for a driving route at request time and keeps updating during navigation.
0
0
0 solved
Design an ML system that predicts arrival time for a driving route at request time and keeps updating during navigation.
ETA accuracy is core to Google Maps routing and trust, and it combines real-time traffic, historical patterns, and road graph structure. Interviewers look for a segment-level formulation, careful features, a sound loss for skewed errors, and freshness.
What the Interviewer Expects
- Clarify metric: absolute or percentage error, and per-route vs per-segment
- Model at segment or supersegment level and aggregate
- Use real-time speed, historical profiles, and graph context
- Choose loss and handle long tails such as incidents
- Address update during navigation, latency, and sparse roads
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How would you handle a road with no recent probe data?
- How do you predict the effect of a crash that just happened?
- How would you evaluate ETA fairness across rural and urban areas?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Predict travel time for routes from minutes to hours. Target: low median absolute percentage error and few large misses, since being 20 minutes late hurts trust more than 2 minutes. Latency: tens of m...
High-Level Design
Probe data (anonymized speed from phones in navigation) streams into a real-time aggregator producing current speed per segment. Offline, historical speed profiles per segment by time of week. The roa...