Closed BodoMinea closed 4 years ago
This was a confusion on my side. Real time data pulling is done via MQTT directly on the UI client, by means of websockets. The configuration is to be done here: https://github.com/HSLdevcom/digitransit-ui/blob/master/app/configurations/realtimeUtils.js
Hello,
I have started working on my own Digitransit instance. As of now, I have working search routing in the UI based on OpenTripPlanner API with both static GTFS and protocol buffer GTFS-RT trip updates.
I however am unable to to find a suitable way to plug a GTFS-RT vehicle positions feed in. I have the feed already set up, working and tested with other tools. I see that on http://reittiopas.hsl.fi/ there are vehicle positions being used, but the updaters I can find do not support GPS data ingestion: real-time-alerts, bike-rental, bike-park, websocket-gtfs-rt-updater, stop-time-updater etc.
This issue is discussed in the original opentripplanner repo´s issues: https://github.com/opentripplanner/OpenTripPlanner/pull/2329 and a pull request with an updater for pbf gtfs-rt positions feed was submitted, but closed and not merged: https://github.com/opentripplanner/OpenTripPlanner/pull/2329/commits/cee935adfffc36f3157f193383b2e9660793a9ba
From what I can see, no suitable updater is present neither in the original OTP, and not in the HSLdevcom version: https://github.com/HSLdevcom/OpenTripPlanner/blob/master/src/main/java/org/opentripplanner/updater/GraphUpdaterConfigurator.java https://github.com/opentripplanner/OpenTripPlanner/blob/master/src/main/java/org/opentripplanner/updater/GraphUpdaterConfigurator.java
Could you please me point me in the right direction as to how to achieve the integration of vehicle positions that is present in Reittiopas (be it either GTFS-RT, MQTT or other)? Maybe this is done through another component and not OTP but from the few days of studying the code and attempted network requests, it seems that the GPS data displayed on the map upon selecting a route/trip is somehow coming from OTP.