Skip to content

Commit

Permalink
document source of truth for hiding subway times
Browse files Browse the repository at this point in the history
  • Loading branch information
boringcactus committed Mar 26, 2024
1 parent e053a35 commit 5b68c59
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ data class PatternsByHeadsign(
.map { Format.Some.FormatWithId(it, now) }
.filterNot {
it.format is UpcomingTrip.Format.Hidden ||
// API best practices call for hiding scheduled times on subway
(this.route.type.isSubway() && it.format is UpcomingTrip.Format.Schedule)
}
.take(2)
Expand Down

0 comments on commit 5b68c59

Please sign in to comment.