Why some trip ids are missing from anytrip

I am trying to pull timetable data from
https://api.transport.nsw.gov.au/v1/gtfs/schedule/sydneytrains for Parramatta Station Platform 3.
I found the data I pulled is quite diff from anytrip.com.au

My result

Upcoming trains at Parramatta:
- Train T1 Emu Plains to Berowra via City  arriving at Parramatta Station Platform 3 at 05:20:00 trip_id: 143C.1961.100.128.A.8.85117629
- Train T2 Parramatta to City Circle  arriving at Parramatta Station Platform 3 at 05:21:31 trip_id: 80-B.1293.147.4-20250717.A.8.86252308
- Train T5 Richmond to Leppington arriving at Parramatta Station Platform 3 at 05:28:00 trip_id: 527A.1387.150.128.A.8.85858290
- Train T5 Richmond to Leppington arriving at Parramatta Station Platform 3 at 05:28:30 trip_id: 551A.1390.138.128.A.8.86519824
- Train T1 Emu Plains to Berowra via City  arriving at Parramatta Station Platform 3 at 05:37:00 trip_id: 145B.1961.100.128.A.8.85117705
- Train T1 Emu Plains to Berowra via City  arriving at Parramatta Station Platform 3 at 05:50:00 trip_id: 146B.1961.100.128.A.8.85117757
- Train T5 Emu Plains to Leppington arriving at Parramatta Station Platform 3 at 05:50:00 trip_id: 55AC.1293.147.4-20250717.M.4.86251365
- Train T5 Richmond to Leppington arriving at Parramatta Station Platform 3 at 05:58:00 trip_id: 534B.1961.100.128.A.8.85117201
- Train T1 Emu Plains to Berowra via City  arriving at Parramatta Station Platform 3 at 06:07:00 trip_id: 147A.1961.100.128.A.8.85117809
- Train BMT Bathurst and Lithgow to Central arriving at Parramatta Station Platform 3 at 06:14:48 trip_id: W510.1390.138.128.V.8.85953206
- Train T1 Emu Plains to Berowra via City  arriving at Parramatta Station Platform 3 at 06:20:00 trip_id: 103C.1961.100.128.T.8.85116310
- Train T5 Emu Plains to Leppington arriving at Parramatta Station Platform 3 at 06:20:00 trip_id: 51AA.1293.147.4-20250717.M.4.86253996

However, below is snapshot from anytrip

You can see there are almost only T5 in anytrip but I can see T1 in timetable
the related record in stop_times.txt
"145B.1961.100.128.A.8.85117705","05:37:00","05:38:00","2150413","53","Lindfield via Central","0","0",""
in trips.txt, "WST_2c","1961.100.128","145B.1961.100.128.A.8.85117705","Lindfield","","1","766936","WST_2c","0","A8",
in routes.txt, "WST_2c","SydneyTrains","T1","Emu Plains to Berowra via City ","T1 Western Line","2","","F99D1C","FFFFFF"
May I ask what’s wrong with this T1, why it is missing in anytrip?
Thanks for your advice.

Hi @gamesover,

Are you using the calendar and calendar_dates files to filter out trips that are applicable on a given day?

1 Like

Ah, it may be the reason. Thanks for your reminder.

  • calendar.txt - dates for service IDs used by each trip
  • calendar_dates.txt - exceptions for the service IDs defined in the calendar.txt file
    just one thing, after unzip the downloaded zip file, I can only see calendar.txt, but no calendar_dates.txt. Chatgpt told me it is normal, only one file is needed, either is okay.
    I assume it is normal.
now my result matches anytrip data
Thank you so much
1 Like

Hi,

You’re right. Each realtime timetable bundle except for sydneytrains will include a calendar.txt file and a calendar_dates.txt file. The sydneytrains realtime timetable only includes a calendar file, so you won’t need to deal with any exceptions for that.

2 Likes