Import script to put Wiener Linien GTFS data into a PostgreSQL database. Based on tyleragreen/gtfs-schema.
- Download the ZIP: https://go.gv.at/l9gtfs (~ 40 MB)
- Move all files of the GTFS-ZIP (~ 500 MB) in the
./gtfs
directory. - Run the validation script
validate-gtfs.js
to spot errors. - Import everything with
psql
and thewienerlinien.sql
script.
Be careful! The wienerlinien.sql
will drop existing tables. If you
need historical data points, backup the database first
or rename existing tables.
psql --host=localhost --port=5432 --username=USERNAME --password=SECRET --dbname=SOME_DATABASE --file=wienerlinien.sql
MIT – Philipp Naderer-Puiu