Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement VVS GTFS-RT service alerts converter #64

Open
hbruch opened this issue Nov 16, 2024 · 6 comments
Open

Implement VVS GTFS-RT service alerts converter #64

hbruch opened this issue Nov 16, 2024 · 6 comments

Comments

@hbruch
Copy link
Contributor

hbruch commented Nov 16, 2024

VVS publishes a GTFS-RT feed. Sadly, it's route IDs don't match the ones used in VVS GTFS, and alerts for stops are referenced only by parent station ID, not stop ID. Further, options to categorize events are not used but only free text alerts are generated.

To use the service alerts feed, a transformer script should be implmented, that

  • regularly checks for new VVS gtfs-feeds and downloads them
  • rewrites route and stop IDs to match the ones in the GTFS (if possible)
  • report if rewritting is not possible (i.e. no matching entity is found in the GTFS feed)
  • fill additional information in the alerts extracted from the alert description
@stadtnavimanager
Copy link

The following alerts shold be displayed:

  1. all alerts for the following bus and train lines:
    (Main source: https://stadtwerke.herrenberg.de/gaumobil/oepnv/ -> ZOB-Herrenberg-Map)
  • S1 Vaihingen - Stuttgart Hbf - Kirchheim

  • S11 Stuttgart Hbg - Neckarpark (Sonderverkehr zu Großveranstaltungen)

  • Ammertalbahn (please also add the keyword "Ammertalbahn" for filtering the Alerts):

  • RB63 Tübingen - Bad Urach

  • Gäubahn (please also add the keyword "Gäubahn" for filtering the Alerts):

  • RE14 Ergenzingen - Freudenstadt/Rottweil und RE14 Ergenzingen - Freudenstadt/Rottweil

  • RE4 Konstanz

  • IC Bonndorf - Singen - Zürich

busses:

  • 751 Hildrizhausen – Altdorf – Holzgerlingen
  • 753 Nufringen – Gärtringen – Rohrau
  • 770 Deckenpfronn – Calw* (RegioBus)
  • 773 Deckenpfronn
  • 780 Nord – West – Kalkofenstraße
  • 782 Ziegelfeld – Ehbühl – ZOB
  • 783 Polizeihochschule – ZOB
  • 790 Nebringen – Öschelbronn – Mötzingen
  • 791 Ammerbuch – Entringen
  • 794 Vogelsang
  • 794 Tailfingen
  • Linie Ziel Bussteig
  • N70 ZOB Nagold
  • N77 Affstätt – Kupp. – Oberjes. – Deckenpf.– Gärtringen
  • N80 Tübingen
  • RT77 Öschelbronn – Mötzingen – Jettingen
  • RT773 Deckenpfronn
  • RT779 Vogelsang – ZOB
  • RT780 Nord – West – Kalkofenstraße
  • RT782 Ehbühl – Waldfriedhof
  • RT783 Polizeihochschule – ZOB
  • RT794 Gültstein – Tailfingen
  • X77 Nagold – Altensteig (Schnellbus)
  • 773 Herrenberg Hallenbad
  • 774 Haslach – Jettingen – Nagold
  • 775 Kuppingen – Wildberg
  • 780 West – Nord – ZOB
  • RT775 Kuppingen – Wildberg
  1. all alerts with "Herrenberg" in the description_text

  2. If possible, alerts that affect the entire public transport network. For example, in the event of labor strikes, storms, etc. If there is no corresponding marking by the VVS, please check whether this can also be implemented using keywords in the description_text.

@hbruch hbruch self-assigned this Nov 29, 2024
@stadtnavimanager
Copy link

stadtnavimanager commented Dec 1, 2024

Image

Feedback to the implementation:

  1. Right now there is an alert shown for September 2024 -> only currently relevant alerts should be shown (max. 1 week to the future, nothing from the past)
  2. There is a link set to vvs.de in the end to check for routes, which does not make that much sense. Should we remove links to vvs.de or is it not possible to filter that specifically?
  3. The screenshot shows the German alert while the language is set to English. Are there English alerts available from VVS?
  4. Is it possible, that the different messages change automatically after some seconds? right now the user has to click, to see the next one

(spelling mistakes are already in the original alert from VVS, nothing we can do about that)

@hbruch
Copy link
Contributor Author

hbruch commented Dec 1, 2024

Thanks for the feedback.

  1. this alert is a long lasting, still ongoing alert. Please contact VVS to update their alerts if parts of the description are outdated
  2. VVS does not provide more specific links. I agree we should better remove them from the alerts feed
  3. no English language texts are available. With some additional effort, we could try automated translation
  4. Let's discuss this

@stadtnavimanager
Copy link

in the discussion we decided (pls correct me if I remember wrongly):

  1. to remove the link to the vvs
  2. not to implement automatic changes of the alerts right now

additionally we decided:
5. to change the color scheme so it looks less like a warning of doomsday ;) pls change the triangle to the red color and backround to white (like in the other messages)

Image


  1. i do not remember that we talked about the english version but I suggest to only do this in the end if we still have time and capacity

@hbruch
Copy link
Contributor Author

hbruch commented Dec 15, 2024

2 has been implemented with mfdz/gtfs-realtime-translators@0e638f2

5 has been implemented with stadtnavi/digitransit-ui#854

@hbruch hbruch assigned stadtnavimanager and unassigned hbruch Dec 15, 2024
@stadtnavimanager stadtnavimanager removed their assignment Dec 17, 2024
@stadtnavimanager
Copy link

@hbruch looks good to me (however right now there is no alert so I cannot look at it in the dev-version)
i can still not close issues that I did not open. So feel free to close it if you think it is fine like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants