Skip to content

Latest commit

 

History

History
56 lines (33 loc) · 1.27 KB

README.md

File metadata and controls

56 lines (33 loc) · 1.27 KB

Transport For London GTFS Exporter

This simple Rust CLI allows you to fetch data from the Tfl Unified API and transform it to GTFS.

Install

Clone the repository and compile:

cargo build --release

WARNING: If you compile under OSX 10.11 you might need to specify the OpenSSL include path. For example, having OpenSSL installed via Homebrew, the command is:

OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include cargo build --release

You will find the binary in ./target/release/.

Usage

Check the help ./target/release/tflgtfs help for details.

In short, you can fetch Tfl lines with the fetch-lines command and transform the cached values with the transform gtfs command.

You can do it in one shot via:

./target/release/tflgtfs fetch-lines --format gtfs

You will find the resulting GTFS files inside ./gtfs.

Development

If you intend to improve this tool please install Cargo Clippy to make sure your changes are aligned with our code conventions.

License

See License.