Design Popular Times Crowd Estimates for Places in Google Maps

Last updated: November 29, 2026

Quick Overview

Design the system that shows how busy a place usually is by hour of the week, plus a live busyness indicator, computed from aggregated and anonymized location signals of opted-in users.

Google
System Design
Data Engineer
Google
November 29, 2026
Data Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the system that shows how busy a place usually is by hour of the week, plus a live busyness indicator, computed from aggregated and anonymized location signals of opted-in users.

Popular Times is a distinctive Google Maps feature where data pipelines, geo attribution, and privacy thresholds meet. The interviewer checks how visits are attributed to places, how historical and live aggregates are built, and how small counts are protected.

What the Interviewer Expects
  • Attribute location signals to place visits with a confidence model
  • Build weekly-hour histograms with smoothing across weeks
  • Compute a live busyness signal with a streaming pipeline
  • Apply k-anonymity style thresholds and noise before publishing
  • Serve precomputed results with simple caching
Key Topics to Cover
visit attribution
stream processing
aggregation
differential privacy
batch pipelines
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 tell a visit to a coffee shop from walking past it?
  • How do you handle places with too few visits to show?
  • How would holidays or a new store opening be handled?
  • How do you validate accuracy?
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
  • For each place: 7 x 24 relative busyness histogram, normalized to the busiest hour (0 to 100).
  • Live indicator: "usually as busy" versus "busier than usual" now.
  • Inputs: location history from opt...
High-Level Design
  1. Visit detection: batch and streaming jobs cluster location fixes into stays (same area for more than a few minutes).
  2. Place attribution: match each stay to candidate places nearby, with a...

Submit Your Answer
Markdown supported