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

check for GTFS update automatically #3

Open
osm-ToniE opened this issue Aug 24, 2020 · 1 comment
Open

check for GTFS update automatically #3

osm-ToniE opened this issue Aug 24, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@osm-ToniE
Copy link
Owner

check periodically all GTFS-feeds for updates.
Do this in dedicated shell-scripts which may also do the download on demand (manually)

Example:

curl -sI https://www.vag-freiburg.de/fileadmin/gtfs/VAGFR.zip | grep "last-modified" | sed -e s/last-modified:\ // | date +"%Y-%m-%d" -f -

Of course, this is an easy example, the link to the source is always the same.

maybe create an empty DB (if DB does not exist already) indicating that updates are available at the owner

@osm-ToniE osm-ToniE self-assigned this Aug 24, 2020
@osm-ToniE osm-ToniE transferred this issue from osm-ToniE/ptna-www Sep 1, 2020
@osm-ToniE osm-ToniE added the enhancement New feature or request label Sep 1, 2020
@osm-ToniE
Copy link
Owner Author

osm-ToniE commented Sep 19, 2020

Done via three scripts

  • get_release_date.sh which prints out the date of the latest GTFS feed

  • get_release_url which prints out the URL to retrieve the latest GTFS feed

  • cleanup.sh which deletes temporary files

These shell scripts will be used bei 'gtfs-feed.sh' in the 'gtfs' repository

osm-ToniE added a commit that referenced this issue Sep 19, 2020
osm-ToniE added a commit that referenced this issue Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant