Design Live Traffic Ingestion and ETA Prediction for Google Maps

Last updated: November 29, 2026

Quick Overview

Design the backend that ingests location pings from millions of phones, turns them into live road speeds, and returns ETAs for routes in Google Maps.

Google
System Design
Software Engineer
Google
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the backend that ingests location pings from millions of phones, turns them into live road speeds, and returns ETAs for routes in Google Maps.

Maps is one of Google's highest-traffic products, and this question tests geospatial stream processing plus a latency-sensitive read path. Interviewers check map matching, aggregation per road segment, privacy handling, and how fresh speeds feed routing.

What the Interviewer Expects
  • Map-matches noisy GPS to road segments
  • Aggregates speeds per segment over sliding windows
  • Blends live speeds with historical profiles
  • Explains how routing consumes speeds quickly
  • Addresses privacy and anonymization
Key Topics to Cover
map matching
stream aggregation
graph routing
geospatial partitioning
privacy
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you handle a road with very few probes at night?
  • How do you detect a sudden closure faster than averages show?
  • How would you predict ETA for a trip starting in an hour?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: ingest anonymized location pings (lat, lng, speed, heading, timestamp) from opted-in devices; compute current speed per road segment; answer route ETA queries for current and near-futu...

High-Level Design
  1. Ingest gateway strips identity, assigns rotating trip tokens, and publishes pings to a log partitioned by geographic cell (S2 cell at a level covering a few km).
  2. Map-matching workers...

Submit Your Answer
Markdown supported