Public Transport API - not GTFS-realtime format


#1

Hi,

The documentation states public transport alerts are in GTFS format. However, looking at the format of the ferries body response, it does not appear so. For example this is the following response body to a call I just made:

1.0����h
$64575fd6-09aa-4764-8e24-90bc3c46ed5c*@*
SFCIB

R

Wharf ClosedZ

Birchgrove Wharf Closed

Is there infact an API that returns this data in the GFTS realtime format (https://developers.google.com/transit/gtfs-realtime/reference/)?


#2

Hi Gmulliga,
The return message is in protobuf format. You just need to unpack that and you’ll have the correct structure.

Some info here:

Also search this forum, this has been discussed before and you might get some good tips.