An experiment using open Gtfs-Data of VBB to render a minimalistic simulation with WebGL.
This project uses Rust and the wasm-pack
utility.
For your convenience, the Gtfs data files are stored in the repo with Git Lfs.
git lfs install
curl https://sh.rustup.rs -sSf | sh
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
To run the simulation, you need to:
- Convert the Gtfs-dataset
- Compile the wasm module
- Start a server
- Open the page
cargo run --release import import/data/vbb.bzip -- store
wasm-pack build wasm --target web --out-dir www/wasm
python3 -m http.server 8917
xdg-open http://localhost:8917/wasm/www