You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need some help/guidance regarding how this project would prefer to handle GTFS data when the URL for the static GTFS file dynamically changes.
Context:
ZTM TransportGZM is a public transportation organization based in the Silesian Voivodeship, Poland. They manage buses, trams, and trolleybuses. The organization provides both GTFS-RT and GTFS datasets:
The GTFS-RT has a static URL, so setting it in dmfr.json file is straightforward. Licensed under CC-BY-4.0
However, the GTFS data does not have a static URL. Instead, a new GTFS zip file is uploaded every few hours to their CKAN instance (dataset management software). Licensed under CC-BY-4.0.
Alternatively, there’s an API endpoint: https://otwartedane.metropoliagzm.pl/api/3/action/package_show?id=317435cc-0075-4d10-b8ef-6e9b0010e90a
Using the API, the newest GTFS file URL can be fetched dynamically with:
jq -r '.result.resources | sort_by(.created) | last | .url'
My Question:
What approach would best align with this repository and its downstream dependencies (such as transitous)?
Should I implement a GitHub Action in this repository to update the GTFS URL dynamically, similar to other projects? (GBFS, GBFS-jp)
Alternatively, should I create a separate repository with a GitHub Action that releases the GTFS under a static URL? (Although this would essentially make my repository act as middleware for the data.)
I would appreciate any advice or suggestions on how to proceed. Thanks in advance! 🙏
The text was updated successfully, but these errors were encountered:
Hello! 👋
I need some help/guidance regarding how this project would prefer to handle GTFS data when the URL for the static GTFS file dynamically changes.
Context:
ZTM TransportGZM is a public transportation organization based in the Silesian Voivodeship, Poland. They manage buses, trams, and trolleybuses. The organization provides both GTFS-RT and GTFS datasets:
dmfr.json
file is straightforward. Licensed under CC-BY-4.0The dataset can be accessed at:
https://otwartedane.metropoliagzm.pl/dataset/rozklady-jazdy-i-lokalizacja-przystankow-gtfs-wersja-rozszerzona
Alternatively, there’s an API endpoint:
https://otwartedane.metropoliagzm.pl/api/3/action/package_show?id=317435cc-0075-4d10-b8ef-6e9b0010e90a
Using the API, the newest GTFS file URL can be fetched dynamically with:
jq -r '.result.resources | sort_by(.created) | last | .url'
My Question:
What approach would best align with this repository and its downstream dependencies (such as transitous)?
I would appreciate any advice or suggestions on how to proceed. Thanks in advance! 🙏
The text was updated successfully, but these errors were encountered: