Linking GTFS-R route_id to GTFS static routes.txt's route_id


#1

Take a random bus from the realtime data API and get it’s route ID, I got “2446_884”. Great.
Now try and find “2446_884” as a route ID in the GTFS static routes.txt under route_id.
You can’t, it’s under a different format e.g “28-244-sj2-1”

My question is, how do I find the relevant route in routes.txt from the realtime route_id?

Thanks.


#2

Make sure you’re using the correct GTFS timetable data.

GTFS for realtime - This is the GTFS timetable that matches the realtime timetable
https://opendata.transport.nsw.gov.au/dataset/public-transport-timetables-realtime

“Static timetables, stop locations, and route shape information in GTFS format for operators that support realtime”

GTFS Timetables complete - this is a ‘different’ version of the GTFS timetable that doesn’t match the realtime
https://opendata.transport.nsw.gov.au/dataset/timetables-complete-gtfs

“Static timetables, stop locations, and route shape information in General Transit Feed Specification (GTFS) format for all operators, including regional, trackwork and transport routes not available in realtime feeds.”