Real-time bus data for 3 regions of NSW are now available via the API gateway.
These new regions are centered around Bega (/southeasttablelands), Dubbo (/centralwestandorana), and Coffs Harbour (/northcoast). All new endpoints are listed below.
The following regional operators have been superseded by the new GTFS feeds and agency_IDs will change in the complete GTFS bundle. New IDs are listed in the reference table of GTFS agencies here.
B032 Bega Valley Coaches
B014 Dubbo Buslines
B057 Ryans Bus Service
B033 Sapphire Coast Buslines
B034 Sapphire Coast Buslines
B052 Sawtell Coaches
Hi - there are now 12 regionbus sub-URIs, each managing their own group of buses. Based on the realtimetripid format, or the operator, is there an API call or similar that I can call in real time to find the appropriate URI?
Iāve found this table of 736 specific āagency_id to URIā mappings which I can hard-code into my app but thatās not overly elegant and itās likely to change Iām sure.
Actually, thinking about it I could just download the entire CSV when needed - as a data set it isnāt particularly large but fingers crossed that the GUIDs in the path donāt change!
My concern/query was that if the file path is going to change the next time that table is updated or, probably more likely, now that the file has a unique path assigned to it, it will retain that path forever, even when updated.
It really depends on TransportNSWās processes - is the updated file a ānewā file (probably with a new unique path) or just an amended version of the āsameā file (retaining the currently assigned path).
Hi - calling the resource_show endpoint defined by CKANās API shows that the resource ID (the latter GUID) has been kept the same since 2017, so we should be able to just call that and then get the latest URL from the url property within result.