No description
- Shell 100%
| example.env | ||
| init.sh | ||
| postgres-compose.yml | ||
| README.md | ||
| run-gtfs-importer.sh | ||
PostGIS GTFS Importer Runner
Runs postgis-gtfs-importer via Docker in a manageable environment
This is a set of bash scripts to get postgis-gtfs-importer up and running quickly. This includes a paired PostGIS (GIS-compatible Postgres) database container.
Setup:
- Copy
example.envto.envon your system. - Run
./init.shto create the necessary docker network shared between the GTFS importer and Postgres and also create the Postgres container.
Adminer is also started, running at http://localhost:8080. It provides a web interface to interact with the Postgres database. Simply use 'pg-gtfs' as the hostname and the username/password in the .env file to login.
Run:
./run-gtfs-importer.sh <database name> <feed url>
For example: ./run-gtfs-importer.sh mbta https://cdn.mbta.com/MBTA_GTFS.zip
The database is automatically created if it doesn't already exist. I typically use the agency name, e.g. mbta as the database name for simplicity.