Encoding of realtime data


#1

Hi.

I’m relatively new to APIs, and the like. I’m just wondering how the GTFS realtime data is encoded, because I’m getting a lot of “��ָ�” type characters when I pull it as UTF-8.


#2

Take a look @ https://developers.google.com/transit/gtfs-realtime/#data-format
Or use any of the GTFS Realtime libraries @ https://developers.google.com/transit/gtfs-realtime/code-samples


#3

I did - I was expecting a JSON feed to come straight from the server. Oops :L


#4

BINARY data is returned. the PHP libraries work easily and process very quickly too. Have not tried the others. You can get a JSON like result if you set debug=true, but you will not get the whole dataset doing that (only for debug purposes of course).