A General Transit Feed Specification (GTFS) server to expose some REST APIs.
- Rust (Nightly, preferably)
- PostgreSQL with GIS (PostGIS)
- (Docker)
- QGIS
mkdir resources/gtfs/sbb/
wget https://opentransportdata.swiss/en/dataset/timetable-2018-gtfs/permalink -O resources/gtfs/sbb/gtfs.zip
cd resources/gtfs/sbb/
unzip gtfs.zip
docker network create --subnet=172.18.0.0/16 gtfs-server-net
docker run --name gtfs-server-db --net gtfs-server-net --ip 172.18.0.2 -e POSTGRES_PASSWORD=mysecretpassword -d mdillon/postgis
cargo run
http://127.0.0.1:8080/api/stops
feed-id
is your feed unique identifier. It will be used across the DB to generate the stop IDs.
This will allow us to filter out the feeds that are no longer actives once the DB is populated.
http://127.0.0.1:8080/api/import/stops/feed-id
http://127.0.0.1:8080/api/import/stops/feed-id
Check the Documentation for more info about the endpoints and the objects.