Cannot exploit output from Real-time position for ferry

Basic question and it begins right from the beginning. I execute following request

curl -X GET --header ‘Accept: application/x-google-protobuf’ --header ‘Authorization: apikey mykey’ ‘https://api.transport.nsw.gov.au/v1/gtfs/realtime/ferries

and I got results like this

DH420-2814 *DHl"a2000180(���������5"200910(���������"20414("20601("20611("20006(
1005 Alexander ꚡ��
$4eb36566-daaf-4cd0-98f7-c493bdf41227�

What is that format and how to have it in clear text? Thank you very much

You’re receiving the realtime information as a Protocol Buffer. More info over at Protocol Buffers  |  Google Developers and I think if you search the forum you’ll find a few tutorials/example code.

3 Likes