Skip to content

feat: add "year built" to vehicle labels#279

Merged
nathan-weinberg merged 2 commits intotransitmatters:mainfrom
nathan-weinberg:car-age
Feb 12, 2026
Merged

feat: add "year built" to vehicle labels#279
nathan-weinberg merged 2 commits intotransitmatters:mainfrom
nathan-weinberg:car-age

Conversation

@nathan-weinberg
Copy link
Copy Markdown
Member

Motivation

Closes #276

Changes

Adds new "Oldest car built in " to vehicle labels, based on

Works for Red, Orange, Green, Blue, and Mattapan

Testing Instructions

Run locally, unfortunately I can't get a screenshot

"year built" is determined by fetching the lowest-numbered
carriage in a set and finding what year it was built

Signed-off-by: Nathan Weinberg <nathansweinberg@gmail.com>
@nathan-weinberg nathan-weinberg requested review from a team, idreyn and mathcolo as code owners February 8, 2026 18:46
@github-actions github-actions Bot added frontend Change to frontend code backend Change to backend code labels Feb 8, 2026
Comment thread server/chalicelib/mbta_api.py
Comment thread server/chalicelib/mbta_api.py Outdated
avoids case where multiple lines have vehicles with the
same id

Signed-off-by: Nathan Weinberg <nathansweinberg@gmail.com>
"Orange": {"1400-1551": "2018-25"},
"Red": {"1500-1651": "1969-70", "1700-1757": "1987-89", "1800-1885": "1993-94", "1900-2151": "2019-27"},
"Green": {
"3600-3649": "1986-87",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nitpick that I'd prefer "1986-1987" full year, but non blocking

@nathan-weinberg nathan-weinberg merged commit e5ae02e into transitmatters:main Feb 12, 2026
4 checks passed
@nathan-weinberg nathan-weinberg deleted the car-age branch February 12, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Change to backend code frontend Change to frontend code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show year that train car was built

4 participants