This module takes a base URL (optionally configured for each of the three GTFS-RT APIs) and a refresh interval (defaults to 60 seconds).
At each refresh interval, the module asynchronously fetches data from each of the three GTFS-RT APIs and stores it in the database.
It also writes out a JSON file containing the same data which is available at a stable URL.
This static file is useful for platforms that charge per PHP request (Pantheon).
It also provides JavaScript libraries for retrieving and parsing the data. Most parsing (all?) is done in the browser, which allows remote GTFS-RT feeds to be used. But, we use 511 which is rate-limited
It also provides utilities for parsing Protobuf data (note: requires the Protobuf PHP library in composer.json).
It provides a minimal implementation of a front-end in the form of a Javascript-hydrated field field_predictions on the \Drupal\gtfs\Entity\Stop entity
- This field fetches predictions in realtime and uses the provided library to render them reactively (Vue, perhaps)

Limitations: This is PHP-based so it's going to be poll-based, not server-sent, like WebSockets.


Extensions:
the gtfs_display_map module should be able to display the field_predictions field inside its popups and have it work automatically to display predictions for a given stop.
Bonus goal: it should also be able to plot vehicle locations on the map in realtime (without a "bridge" module?)
