This Rust crate is used to convert GTFS data to the GeoJSON format.
While the repo is named gtfs-to-geojson the crate is called gtfs_geojson and can me installed using
cargo add gtfs_geojsonThe gtfs_geojson library use the gtfs_structures library and its types to convert gtfs files over to geojson.
extract_stops will export all of the stops and their properties from the gtfs.
extract_trips_shapes will export all of the shapes as line features from the shapes.txt file and add in trip information for each feature in the geojson properties from trips.txt.
- 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