No description
Find a file
2026-07-22 16:20:18 -04:00
example.env Add readme, docker compose, rename files 2026-07-22 16:15:14 -04:00
init.sh Add readme, docker compose, rename files 2026-07-22 16:15:14 -04:00
postgres-compose.yml Add readme, docker compose, rename files 2026-07-22 16:15:14 -04:00
README.md Add ref to original project in README.md 2026-07-22 16:20:18 -04:00
run-gtfs-importer.sh Add readme, docker compose, rename files 2026-07-22 16:15:14 -04:00

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:

  1. Copy example.env to .env on your system.
  2. Run ./init.sh to 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.