Hi @dhamu143, I’m Alex the new Community Manager. Please find the answers to your queries below:
1) Service alerts are available for Sydney Trains only. All other service alerts can be found via a third party feed which is generated from the Transportnsw.info site. Please refer to the “Service Alerts” section on our troubleshooting page https://opendata.transport.nsw.gov.au/site/en_us/gs-troubleshooting.html
I believe those two end points return ZIP files containing files in the corresponding formats (GTFS and TransXchange). You shouldn’t need to do any GTFS-R decoding with protoc. Only the gtfs/vehiclepos and gtfs/realtime endpoints are encoded in GTFS-R protocol buffers.
If you’re trying to match the data you get from the vehiclepos and realtime endpoints, you’ll need to use the GTFS-R specific GTFS static schedule at https://api.transport.nsw.gov.au/v1/gtfs/schedule/%mode in order to correctly match things like trip_id. Note this is a ZIP format since the files are in GTFS static format.
@dhamu143 What language are you using? Typically speaking, Buffers (or an Array Buffer) is simply a way to express generic binary data.
If you’re able to – write this buffer array directly into a file, say transxchange.zip. You should then be able to decompress the file using a simple unzip transxchange.zip command (assuming you’re using a Unix-based system).