System Design Atlas

Multimodal journey planning

02 / 10Worked example

Verifiable requirements

Equality is sufficient for a connection in this model. Which conditions ensure a valid result?

Footpath and buffer consume the entire time window.

Starting point Responses state the data version and freshness.

Assumptions for the example case

A fictional journey planner for buses, trains and walking routes in one region. Each response binds a timetable version and a real-time snapshot. The scope ends with journey information, without a booking commitment. All quantities, thresholds and operational objectives are illustrative assumptions.

Reachable connection

Reachable connection U-41

Arrival 10:00R-41
Walk ends 10:03+ 180 s
Limit 10:05+ 120 s
10:04:59Inadmissible
10:05:00Permitted
Ankunft 10:00 → Fußweg endet 10:03180 s
Fußweg endet 10:03 → Grenze 10:05120 s
Grenze 10:05 → 10:04:59−1 s → reject
Grenze 10:05 → 10:05:00Equality → allow

Arrival at 10:00 plus a 180-second walk and a 120-second buffer gives the inclusive boundary of 10:05.

Timeline: Arrival 10:00 → 180 s walk → 120 s buffer → departure 10:05. Equality at the boundary is allowed.

Business requirements (functional)

Further reading
Rule 1
Each response uses exactly one timetable version and a matching real-time snapshot.
Rule 2
A transfer is valid when departure minus arrival is at least the walking time plus the buffer.
Rule 3
Cancellations and missing associations are made visible; a calculated route is not a booking.

Quality goals (non-functional)

Further reading
Measurement window
95% of search responses within 800 ms at 100 requests/s over 15 minutes; responses mark real-time data older than 90 s as obsolete.
Open results
After 800 ms, the request ends with fully calculated alternatives marked as partial, or with a timeout. Background work must not silently change the returned result later.

Equality is sufficient for a connection in this model.

Equality is sufficient for a connection in this model.

At least 300 s of transfer time is required.

Footpath and buffer consume the entire time window.

299 s is below the required 300 s, so that route is excluded. 300 s satisfies the model rule; actual delays remain a separate risk.

Alternative considered
Checking only walking time omits the 120 s buffer.
Trade-off
A larger buffer excludes fast connections.
Reassess
Real transfer data justify other buffers.

Try it yourself

Evaluate departures at 10:04:59 and 10:05:00 for an arrival at 10:00.

A hint for your attempt

Footpath and buffer consume the entire time window.

Compare with a possible solution
Too little time
299 s is below the required 300 s, so that route is excluded.
Exactly enough time
300 s satisfies the model rule; actual delays remain a separate risk.

Apply to your project

How does this principle apply in your own project: Equality is sufficient for a connection in this model.

Step 3: Peak search load differs from the daily average. Which conditions ensure a valid result?