CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
🌙☀️
Log inStart free
Home/Templates/Railways & Public Transport

🚆 Railways & Public Transport · C4 Architecture · Pro

Multimodal Journey Planner

A journey planner that combines metro, bus, suburban train and last-mile options into one trip plan with a single ticket.

More Railways & Public Transport templates

C4 Architecture diagrams are part of Pro. Anyone can view this one; generating and editing it needs Pro.

Drawing diagram…

What this diagram shows

  • Timetables from all operators are combined in one format
  • Live delays change the suggested route
  • One QR ticket works across operators

Prompt used

Journey planner platform: riders use an app that calls a trip planner service. The planner uses a routing engine (OpenTripPlanner) with GTFS timetables from metro, bus and suburban rail operators and live GTFS-realtime delay feeds. A ticketing service sells one QR ticket covering all legs and splits revenue among operators. Last-mile options (bike, auto) come from partner APIs.

Mermaid code
C4Container
title Multimodal Journey Planner
Person(rider, "Rider", "Plans and pays for trips")
System_Boundary(jp, "Journey Planner") {
  Container(app, "Rider App", "Flutter", "Plan, pay, show QR")
  Container(plan, "Trip Planner API", "Java", "Trip options")
  Container(route, "Routing Engine", "OpenTripPlanner", "Graph of all networks")
  Container(ingest, "Timetable Ingest", "Python", "GTFS and realtime feeds")
  Container(tix, "Ticketing Service", "Node.js", "One QR for all legs")
  ContainerDb(db, "Tickets DB", "PostgreSQL", "Tickets and revenue split")
}
System_Ext(ops, "Transit Operators", "Metro, bus, suburban rail")
System_Ext(lm, "Last-mile Partners", "Bikes, autos")
Rel(rider, app, "Uses")
Rel(app, plan, "Plan trip")
Rel(plan, route, "Routes")
Rel(ingest, ops, "Reads GTFS feeds")
Rel(ingest, route, "Updates graph")
Rel(plan, lm, "Last-mile options")
Rel(app, tix, "Buys ticket")
Rel(tix, db, "Reads/writes")
Rel(tix, ops, "Validates and settles")

Related templates

C4 ArchitectureProRailways & Public Transport

Train Ticket Reservation System

A railway reservation system in the style of IRCTC: seat inventory per train and class, waitlists, Tatkal quota, payments and e-tickets.

State MachineRailways & Public Transport

Train Ticket (PNR) Status

The states of a train ticket from booking to journey, including RAC and waitlist confirmation and cancellation.

SequenceRailways & Public Transport

Metro Smart Card Fare Collection

How a metro fare is charged with a smart card or bank card: tap in at the entry gate, tap out at the exit, fare by distance and balance update.

Data FlowRailways & Public Transport

Live Bus Tracking and Arrival Times

How a city bus app shows live bus positions and arrival times: GPS devices on buses, a prediction model and updates to apps and stop displays.

NetworkRailways & Public Transport

Railway Signalling and Train Control Network

How a modern railway signalling network is connected: interlocking at stations, track circuits, train control radio and the central traffic control centre.

Database ERDRailways & Public Transport

Train Operations Database Schema

Tables for train operations: trains, routes, stations, scheduled stops, coaches and daily running with actual times.