Skip to content

Conversation

@thecristen
Copy link
Collaborator

Scope

Asana Ticket: [SF/UD] All Modes: "No predictions" message (plus next N scheduled trips for non-subway)

Implementation

Adds even more logic to upcoming_departures/1, now outputting two new states:

  • {:no_realtime, upcoming_departures} which will let us show schedule-only output
  • :no_realtime with no other accompanying output

Screenshots

image image

How to test

Find a route and stop that are in service but are without predictions. This can be tricky. Commuter rail stops are a good bet, since predictions are not usually available far in advance of the trip, and trips are spaced apart. Sometimes light rail termini will show this too.
Running the code locally you can set all_predictions = [], though it's not a 100% faithful representation since vehicle data will still be around to populate bus crowding.

@thecristen thecristen requested a review from a team as a code owner January 20, 2026 20:53
@thecristen thecristen requested review from joshlarson and removed request for a team January 20, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants