Problem Statement: Merging Every Transport Mode Into One Journey
Frames the multi-modal journey planner as a heterogeneous-graph routing problem across fixed-schedule transit, on-demand ride-hail, and shared micro-mobility.
Problem statement
Design a multi-modal journey planner that combines subway, bus, commuter rail, ride-share, bikeshare, e-scooter, and walking into a single recommended journey with per-leg ETAs, cost breakdowns, transfer guidance, and real-time disruption handling. The planner must produce ranked itineraries in under 800 ms p95 for a metro area with 12+ transit agencies, 3 ride-hail providers, and 2 shared-mobility operators.
This is not a single-mode routing problem. A subway line has fixed headways and a published timetable. A ride-share vehicle is summoned on demand with stochastic pickup time. A bikeshare dock has a finite number of available bikes that change every minute. A journey that chains all three must respect transfer windows between these fundamentally different temporal models.
Why this problem is hard
The core difficulty is heterogeneous temporal semantics. Transit legs are schedule-bound: you must arrive at the platform before the departure time, and missing it by 10 seconds costs you the next headway. Ride-hail legs are request-bound: you summon a vehicle and wait for its ETA, which is a probability distribution. Shared-mobility legs are availability-bound: a dock might have zero bikes when you arrive despite showing five when you planned.
A naive approach treats all legs as point-to-point distance calculations. This fails catastrophically: it recommends a connection with a 2-minute transfer window at a station that requires 7 minutes to walk between platforms, or it chains a bikeshare leg to a dock that was empty 4 minutes ago.
The four architectural layers
- Graph layer: A time-dependent multi-modal graph encoding stops, stations, routes, transfer corridors, ride-hail pickup zones, and dock locations.
- Routing engine: Computes feasible itineraries using RAPTOR, Connection Scan, or time-expanded Dijkstra, layered with on-demand mode integration.
- Real-time layer: Ingests GTFS-RT vehicle positions, trip updates, service alerts, ride-hail surge and ETA feeds, and bikeshare availability streams.
- Presentation and booking layer: Renders itineraries, handles fare calculation, and optionally books multi-operator tickets.
Public operating baseline
Citymapper reports over 50 million downloads and operates in 40+ cities worldwide. Moovit claims coverage of 3,600+ cities with over 1.2 billion registered users. Transport for London's journey planner handles over 10 million journey plans per month. Google Maps provides transit directions in over 40,000 cities. MaaS Global's Whim platform in Helsinki pioneered the subscription model combining all transport modes into a single monthly fee.
For capacity planning, this answer assumes a mature platform with 8 million daily journey requests across 25 metropolitan regions, peaking at 4,200 requests per second during weekday morning commute. These are design assumptions unless otherwise cited.
Success criteria
- Latency: p95 itinerary computation under 800 ms for journeys up to 6 legs.
- Accuracy: Transfer feasibility validated against measured walk times; zero recommended connections below the station's minimum transfer time.
- Freshness: Real-time schedule data no more than 30 seconds stale for GTFS-RT feeds; ride-hail ETAs refreshed every 15 seconds.
- Availability: Journey planning API at 99.95% availability; graceful degradation when any single feed is unavailable.
- Coverage: At least 95% of origin-destination pairs within a metro area return at least one feasible itinerary.
Key Highlights
- •Heterogeneous temporal semantics—schedule-bound transit, request-bound ride-hail, availability-bound bikeshare—are the core modeling challenge.
- •A 2-minute transfer window is invalid if the station requires 7 minutes to walk between platforms.
- •Four layers: graph, routing engine, real-time, presentation/booking.
- •Citymapper 50M+ downloads, Moovit 3,600+ cities, TfL 10M+ monthly plans.
- •Design assumption: 8M daily requests, 4,200 req/s peak, 25 metro regions.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate the scheduling semantics of each mode before designing the routing engine."
- "The graph must encode time, not just distance, because a missed connection changes the entire journey."