On Monday, March 20, 2023 8:00:34 AM CET, David Song wrote:
> Oh to add on, I only worked with HTML, JS for web development so I only
> looked at the JavaScript documents of the protbuf. Can I use other
> languages(ex. Java, Python) to create the website? Also, is there any
> possible way for me to not use the proto?? Thank you!
Practically you take a backend process (Java, Python, NodeJs, etc.) to
download the .proto file and transform it in the backend into a message
which you can display on the client. This message could be a HTML page, a
JSON message, etc. you could obviously show the protofile as whole to the
client but you must understand that mean you will transfer an entire
database to a single user, which may only be interested in a single bus
stop.
So in terms of design:
backend
0. process the 'base' GTFS file
1. download .proto fol GTFS-RT
2. transform .proto into a database or separate files, a language binding
will help you <
https://github.com/MobilityData/gtfs-realtime-bindings>
frontend
1. interact with the backend to filter for a specific selection
--
Stefan