This Rust crate is used to convert GTFS data to the GeoJSON format.
- Clone this repository
- Install Rust
- Run the tests with
cargo test --all-features
(see GitHub actions setup) - Build the optimized binary with
cargo build --release
- Run the standalone program with
cargo run --release -- --help
- To run the standalone program without cargo (e.g. when shipping the binary), run
target/release/gtfs-geojson --help
docker build -t gtfs-to-geojson .
Check the build with:
docker run gtfs-to-geojson --help
To run with data stored locally:
docker run -v /path/to/gtfs/datasets/:/data/ gtfs-to-geojson --input /data/gtfs.zip --output /data/output.geojson