Design a City Bike Lane Management App

Hard45 min
1 / 30
System design answer

Design a City Bike Lane Management App

Hard45 min30 sections
understanding•10 min read

Problem Statement: A Geospatial Trust Platform, Not Just a Map

Frames the bike-lane app as three coupled planes — a versioned map, a live hazard stream, and a crowdsourced reputation layer — rather than a static map viewer.

Problem statement

Design a city bike lane management app that lets cyclists see recommended safe lanes, plan routes along the safest paths, and report hazards such as potholes, debris, broken glass, flooding, missing lane dividers, and closed lanes. It also ingests authoritative city updates — closures, construction, protected-lane expansions, new wayfinding signage — and blends them with crowdsourced observations in the style of Waze for cyclists. The product encourages riding by surfacing the best routes, real-time closures, and the city's expanding infrastructure.

The four explicit functional requirements from the brief are: (FR1) a map of dedicated lanes or recommended routes, (FR2) crowdsourced hazard reporting, (FR3) city or authority updates on closures and expansions, and (FR4) navigation or route planning biased toward safer paths. The non-functional requirements are scalability across one or many cities, reliability under partial offline usage, low-latency hazard propagation, and privacy because user location is sensitive.

Why this is not just 'a map app'

A naive answer draws a map, a database, and a REST API. That misses what makes this problem hard. There are three distinct workloads with three different access patterns, consistency needs, and failure behaviors, and the architecture must keep them cleanly separated:

  1. The lane network is a read-mostly, versioned, immutable dataset. A city's protected-lane graph changes rarely, is curated, and must be reviewable. It behaves like a code artifact: signed, versioned, and pinned per client.
  2. Hazards are a write-heavy, bursty, time-decaying event stream. A pothole report matters now and is stale in weeks. It behaves like a feed: high write throughput, per-cell ordering, TTL, and eventual-consistency projections.
  3. User traces and reports are a privacy-sensitive, high-volume ingestion problem. Raw GPS pings and ride traces must be minimized, aggregated, and protected. They behave like a telemetry pipeline with strict retention and governance.

The four architectural planes

  • Map plane: lane network graph, recommended routes, points of interest, map tiles and vector bundles, immutable versions.
  • Hazard plane: report ingestion, validation, clustering, severity scoring, TTL, real-time fan-out to active riders.
  • Crowd plane: reporter reputation, trust scores, consensus, moderation, and enforcement.
  • City plane: authoritative data feeds (open-data portals, Open311 work orders, DOT feeds), permit and closure records, expansion announcements, and analytics exports back to the municipality.

A strong interview answer states up front that the routing engine must prefer protected infrastructure and down-weight reported hazards, that hazard reports need anti-abuse trust machinery, and that location data demands privacy-by-design. Those three statements immediately separate a serious candidate from someone who sketches a CRUD map.

Public context versus design assumptions

The category is operationally real. Waze reported roughly 150 million monthly active users and runs a Waze for Cities program that shares real-time incident data with more than a thousand municipal partners. Strava reported over 135 million registered athletes and operates Strava Metro, which sells aggregated cycling counts to city planners; its Global Heatmap aggregates billions of public activities. SeeClickFix and the Open311 standard power non-emergency civic issue reporting in hundreds of cities. These are cited company figures used as context.

Every scale, SLO, or latency number in this answer that is not tied to one of those public sources is an explicit design assumption for a mature multi-city deployment: 60 launched cities, 2 million registered cyclists, 400,000 daily active users, 1.2 million route requests per day, and 45,000 hazard reports per day. I will label every such number as an assumption when I use it for capacity math.

Key Highlights

  • •Three planes with three different consistency models: versioned map, live hazard stream, privacy-governed telemetry.
  • •Routing must be safety-weighted: prefer protected lanes, down-weight live hazards, respect authoritative closures.
  • •Crowdsourced reports require a trust/reputation and moderation layer, not raw writes to the map.
  • •City updates arrive via open-data portals and Open311, not manual app edits.
  • •Public Waze/Strava/Open311 figures are context; all uncited scale numbers are stated assumptions.
Lead With the Three Workloads
Say in the first two minutes that the map, hazards, and user traces are three different workloads with three consistency models. That instantly reframes the problem from 'a map app' into a real distributed-systems design.
Do Not Draw a CRUD Map
A single database that stores lanes, hazards, users, and routes and is read synchronously by the app will fail on hazard latency, offline use, and privacy. Separate the planes first.

Section Rescue Kit

Buzzwords to use:

Immutable Map ArtifactSafety-Weighted Routing

Safe statements:

  • "I will separate the versioned map from the live hazard stream before choosing any database."
  • "The map is a reviewable artifact, hazards are a decaying feed, and traces are governed telemetry."
Design a City Bike Lane Management App - System Design | WinJob | WinJob