Skip to content

A simple library and standalone program in Rust to convert GTFS data to GeoJson format.

License

Notifications You must be signed in to change notification settings

KasiaKoz/gtfs-to-geojson

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GTFS to GeoJson

This Rust crate is used to convert GTFS data to the GeoJSON format.

How to compile and run the standalone program

  • 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

Using Docker

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

About

A simple library and standalone program in Rust to convert GTFS data to GeoJson format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.1%
  • Dockerfile 1.9%