I'm trying to build a flutter app that is consuming transit data. Some of this data is coming in as GTFS data and I'm having a really hard time finding information as to how to work with it in dart/flutter. I know about the dart bindings for protobufs, but I don't see how that can help me with parsing gtfs data in flutter. I have three questions:
The static gtfs data is coming in as txt/csv files and contains various information about the transit system. I can manually parse this with python, and export to json and import it as an asset to the flutter project. I don't particularly like this because anytime the data changes, I would have to download the zip, unzip, parse, export to json, import to flutter. Clunky. How can I do this primarily in dart? (related, there is a protobuf package for dart, but I don't get what I'm getting with the package).
Does realtime gtfs data typically come in the txt/csv format, or is it xml/json? I'm wondering because the company I'm contracting with will have a gtfs feed in the future, but my contact at the company doesn't know in what format the api will pass on the data.
If it is txt/csv format, am I able to parse it realtime with dart and the packages/tools I've linked to above? If it's json/xml data, I don't have a problem.