Note: How delay-prediction-service
works is a detailed step-by-step walkthrough on how this service works.
This service needs access to the following infrastructure
- a PostgreSQL database, contains
- the schedules data, generated from GTFS-Static data by
scripts/build.sh
- the schedules data, generated from GTFS-Static data by
- a data directory, contains
- trajectories, generated from GTFS-Static data by
scripts/build.sh
- information about the GTFS feed being used
- trajectories, generated from GTFS-Static data by
- City of Herrenberg's Thingsboard instance
- provides the realtime vehicle positions
- Stadnavi's MQTT broker
- receives predicted GTFS-Realtime
VehiclePosition
s &TripUpdate
s
- receives predicted GTFS-Realtime
delay-prediction-service
processes input data (vehicle positions) as follows:
- upon receiving vehicle positions from Thingsboard,
- it will find current runs using the data in the PostgreSQL database,
- match them with the trajectories stored in the data directory,
- and send predictions to the MQTT broker.