Design a mapping and navigation platform like Google Maps with live traffic and ETAs

Quick Overview

Design a global mapping and navigation service that renders an interactive map, returns the fastest route between two points, and updates ETAs from crowdsourced GPS traffic data. It tests map tiling and spatial indexing, fast shortest-path routing on a continental road graph with live edge weights, and a high-throughput telemetry pipeline.

Design a mapping and navigation platform like Google Maps with live traffic and ETAs

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Other

Design a mapping platform like Google Maps. Users explore an interactive map, get the fastest route between two points, and follow turn-by-turn navigation with an ETA that updates from live traffic. The functional requirements are: 1. Map rendering: users can view a global map and pan and zoom across it smoothly. 2. Route calculation: users can request the fastest route from point A to point B. 3. Live navigation and ETA: the system gives turn-by-turn directions and keeps updating the ETA from live traffic. 4. Location telemetry: the client app sends anonymous GPS pings in the background so the system can crowdsource traffic data. Start from the non-functional requirements, using the scale and targets below, then cover the data model, the API and the high-level design. Be ready to go further on three areas: how map data is partitioned, stored and delivered to clients; how a route across a continent comes back in milliseconds; and how the system ingests GPS telemetry at high volume. ```hint Separate the workloads Map tiles, route queries and GPS pings have very different read/write ratios and latency needs. Work out what storage and caching each one wants before reaching for one shared database. ``` ```hint Routing budget Estimate how many intersections a plain shortest-path search settles on a cross-country trip. Then ask which part of that work could be computed ahead of time while traffic still keeps changing the edge weights. ``` ```hint Phones on cellular networks Battery life, radio wake-ups and dropped connections should shape how often the client sends GPS data and over what kind of connection. ``` ### Constraints & Assumptions - Global coverage, with 1 billion+ monthly active users and tens of millions of people navigating at the same time. - Route calculation returns in under 200 ms, and map tiles appear without visible delay while panning and zooming. - Routing and navigation target 99.99% uptime. Availability is preferred over consistency, so slightly stale traffic data is acceptable. - Clients are mostly phones on cellular networks, sometimes with poor coverage, so data use and battery drain should stay low. ### Clarifying Questions to Ask - Which travel modes are in scope: driving only, or also walking, cycling and transit? - Is the base map data (road network, places) given to us, or does the design include building it from raw sources? - Does navigation need to keep working offline or when coverage drops mid-route? - How fresh must live traffic be in the ETA: seconds, or within a minute or two? - Is place search part of the design, or only enough lookup to pick a destination? ### What a Strong Answer Covers - Requirements and rough estimates that turn the stated scale into numbers, which are then used to justify design choices. - A data model that matches each kind of data (tiles, road graph, live speeds, traffic history, places) to a store suited to how it is read and written. - How map data is partitioned, stored and delivered to clients within the bandwidth budget, including the choice of tile format. - A routing approach that answers continental queries within the latency target while live traffic keeps changing edge weights, and what it costs to apply those changes. - A telemetry path from the phone to updated road speeds that survives the peak write rate, including how raw GPS points become per-road speeds and how user privacy is protected. ### Follow-up Questions - How would you predict the ETA for a trip that starts in two hours, and how would you measure ETA accuracy? - How does navigation keep working when the phone loses connectivity in the middle of a route? - A road closes suddenly. How long until new routes avoid it, and which components sit on that path? - How do you keep a user's trips from being reconstructed out of the anonymous telemetry?

Overview: Design a global mapping and navigation service that renders an interactive map, returns the fastest route between two points, and updates ETAs from crowdsourced GPS traffic data. It tests map tiling and spatial indexing, fast shortest-path routing on a continental road graph with live edge weights, and a high-throughput telemetry pipeline.

Nov 25, 2026
hardSoftware EngineerOtherSystem Design
0
0

Design a mapping platform like Google Maps. Users explore an interactive map, get the fastest route between two points, and follow turn-by-turn navigation with an ETA that updates from live traffic.

The functional requirements are:

  1. Map rendering: users can view a global map and pan and zoom across it smoothly.
  2. Route calculation: users can request the fastest route from point A to point B.
  3. Live navigation and ETA: the system gives turn-by-turn directions and keeps updating the ETA from live traffic.
  4. Location telemetry: the client app sends anonymous GPS pings in the background so the system can crowdsource traffic data.

Start from the non-functional requirements, using the scale and targets below, then cover the data model, the API and the high-level design. Be ready to go further on three areas: how map data is partitioned, stored and delivered to clients; how a route across a continent comes back in milliseconds; and how the system ingests GPS telemetry at high volume.

Constraints & Assumptions

  • Global coverage, with 1 billion+ monthly active users and tens of millions of people navigating at the same time.
  • Route calculation returns in under 200 ms, and map tiles appear without visible delay while panning and zooming.
  • Routing and navigation target 99.99% uptime. Availability is preferred over consistency, so slightly stale traffic data is acceptable.
  • Clients are mostly phones on cellular networks, sometimes with poor coverage, so data use and battery drain should stay low.

Clarifying Questions to Ask Guidance

  • Which travel modes are in scope: driving only, or also walking, cycling and transit?
  • Is the base map data (road network, places) given to us, or does the design include building it from raw sources?
  • Does navigation need to keep working offline or when coverage drops mid-route?
  • How fresh must live traffic be in the ETA: seconds, or within a minute or two?
  • Is place search part of the design, or only enough lookup to pick a destination?

What a Strong Answer Covers Guidance

  • Requirements and rough estimates that turn the stated scale into numbers, which are then used to justify design choices.
  • A data model that matches each kind of data (tiles, road graph, live speeds, traffic history, places) to a store suited to how it is read and written.
  • How map data is partitioned, stored and delivered to clients within the bandwidth budget, including the choice of tile format.
  • A routing approach that answers continental queries within the latency target while live traffic keeps changing edge weights, and what it costs to apply those changes.
  • A telemetry path from the phone to updated road speeds that survives the peak write rate, including how raw GPS points become per-road speeds and how user privacy is protected.

Follow-up Questions Guidance

  • How would you predict the ETA for a trip that starts in two hours, and how would you measure ETA accuracy?
  • How does navigation keep working when the phone loses connectivity in the middle of a route?
  • A road closes suddenly. How long until new routes avoid it, and which components sit on that path?
  • How do you keep a user's trips from being reconstructed out of the anonymous telemetry?