osm-ToniE / gtfs-feeds

Collection of definition files (sqlite tables) for the GTFS analysis of the PTNA tool
GNU General Public License v3.0
3 stars 5 forks source link

check for GTFS update automatically #3

Open osm-ToniE opened 3 years ago

osm-ToniE commented 3 years ago

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 commented 3 years ago

Done via three scripts

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