Skip to content

Instantly share code, notes, and snippets.

@derhuerst
Last active July 1, 2024 12:53
Show Gist options
  • Save derhuerst/fe600eaec7d2b613042e81fa1a4f5987 to your computer and use it in GitHub Desktop.
Save derhuerst/fe600eaec7d2b613042e81fa1a4f5987 to your computer and use it in GitHub Desktop.
additional material for a talk on GTFS Pathways & GTFS-RT PathwayUpdates

GTFS Pathways

  • als pathways.txt Teil der GTFS-Schedule/Static-Spezifikation -> statische Daten
  • bildet alle Umsteigebeziehungen in einer Station (Hub) als Graph ab
    • Knoten sind Eingänge/Bahnsteige/etc.
    • Kanten sind Wege/Fahrtreppen/Aufzüge/etc.
    • Achtung: der Graph muss vollständig sein –> wenn Wege fehlen, werden diese von konsumierender Software als nicht existierend angenommen
  • existierende Feeds
    • curl 'https://storage.googleapis.com/storage/v1/b/mdb-csv/o/sources.csv?alt=media' -fsSL | qsv search -s features '\bpathways\b' | qsv select location.country_code,location.subdivision_name,provider,name
    • DE (im DELFI-GTFS): VBB (~500), MVV (~200), SSB/NVBW (~200), HVV (~130), ansonsten vereinzelt
    • EU: Paris, Budapest, Prag (nicht überprüft)
    • USA: San Diego (MTS), San Francisco (WETA), Boston (MBTA), Maryland
    • CA: Alberta
  • Werkzeuge
    • Routing: OpenTripPlanner – MOTIS noch nicht
    • Visualisierung/Umwandlung: bisher nur sehr rudimentäre Werkzeuge, z.b. extract-gtfs-pathways
    • generisch: Graph-Tools & -Datenbanken –> Query "alle Eingänge, die über Aufzüge von X aus erreichbar sind"

Praxis

  • erster Anhaltspunkt: wc -l {stops,pathways}.txt
    • Boston: 9987 stops.txt, 8070 pathways.txt
    • VBB: 527027 stops.txt, 294105 pathways.txt
    • Paris: 53357 stops.txt, 4992 pathways.txt
  • danach manuelle Analyse im Detail
  • praktisch wäre ein Tool, das die Verknüpfung mit dem OSM-Graphen überprüft -> OTP nutzen?

Beispiel: DELFI/VBB Berlin Pankow-Heinersdorf (de:11000:900130001)

[screenshots 1-5]

ground truth: https://commons.wikimedia.org/wiki/Category:Bahnhof_Berlin-Pankow-Heinersdorf

Beispiel: Boston Green Street (place-grnst)

[screenshots 1]

Beispiel: Paris Sèvres-Babylone (IDFM:71203)

[screenshots 1-4]

Beispiel: Budapest Népliget (CSF01282)

[screenshots 1-5]

GTFS-PathwayUpdates

GTFS Pathways:

While the core specification of GTFS-Pathways has been completely integrated into GTFS, additional information such as text-to-speech instructions, wheelchair assistance information, equipment-failure reporting, planned or scheduled entrance or exit closures, and elevator and escalator outages need to be added.

  • deswegen GTFS-PathwayUpdates
  • Erweiterungsvorschlag für GTFS-Realtime (GTFS-RT)
  • Idee: statisch spezifizierte Pathways dynamisch ändern/"löschen"/ergänzen -> überlagert die statischen Pathways-Daten
  • fügt dem FeedEntity-Element neue (optionale) Kindelemente StationUpdates hinzu
  • Achtung: "If there is no StationUpdate for a pathway listed in pathways.txt, it means there is no real-time status available. It does not mean that the pathway can be used."
  • PathwayStatus: UNKNOWN/OPERATIONAL/OPERATIONAL_WITH_LIMITATIONS/NOT_RUNNING
  • PathwayDirection: UNCHANGED/FORWARD/BIDIRECTIONAL/BACKWARD
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment