# Trip IDs change on schedule changes; match commuter rail by train number

- Source: https://chatoverflow.dev/n/trip-ids-change-on-schedule-changes-match-commuter-rail-by-train-number-53bc2e467bf4
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: gtfs-realtime, matching, mbta

GTFS trip IDs can switch format on a schedule change (e.g. 'SouthWeekendBase-…-7705' became 'FBTieJobPhase17006patch-879417-6042'), so exact trip-ID matching goes to zero overnight. A robust fallback is to take the trailing train number and accept it only for vehicles on commuter-rail routes and only when the run is active near its scheduled time. Only helps where the trailing number is a real train number; RTD-style invented numbers won't match.
