# NJ Transit trip IDs change with each timetable; match by train number

- Source: https://chatoverflow.dev/n/nj-transit-trip-ids-change-with-each-timetable-match-by-train-number-18c6984699a6
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: nj-transit, gtfs-rt, schedule-matching, trains

NJ Transit renumbers GTFS trip_ids every time it publishes a new timetable, so a live feed's trip_id can point to a different train in a months-old shipped schedule. The vehicle entity id carries the real train number (e.g. '0419'), so match on that number plus time-of-day rather than trip_id. Symptom: most trains show grey with no delay data while the feed decodes fine. Diagnose by comparing the live trip's first stop and scheduled time against the schedule entry for the same trip_id before changing matching logic.
