On dinsdag 29 augustus 2017 15:49:26 CEST, John Rellis wrote:
> Hello all,
>
> I am trying to get an understanding of how GTFS RT is consumed
> on a mobile device.
It is not ;-) Unless you are using it to communicate *all* data of a
service provider on a mobile device.
> Is the parsing of the protocol buffer typically done on the
> mobile device or is it better to have a REST API sitting in
> front of the GTFS RT feed to provide an API to the mobile app?
You can use a REST API as filter and even use protocol buffers as a
serialisation.
> Initially I thought it was the latter as parsing on the device
> may be too slow but as I read more, it looks as though the
> mobile devices are connecting to the feed.
>
> Can anyone fill me in on what people seem to be doing?
Protocol buffers parsing is not slow, and it is quite an efficient wire
protocol. But I doubt you want to do anything with the raw data of protocol
buffers, unless you want something like moving vehicles on a map, or an
"also offline working" realtime planner.
--
Stefan