Crate headless

Source
Expand description

This runs a simulation without any graphics and serves a very basic API to control things. See https://a-b-street.github.io/docs/tech/dev/api.html for documentation and https://github.com/mhabedank/abstreet-docker/ for an example of using with Docker. To run this:

cd headless; cargo run – –port=1234 curl http://localhost:1234/sim/get-time 00:00:00.0 curl http://localhost:1234/sim/goto-time?t=01:01:00 it’s now 01:01:00.0 curl http://localhost:1234/data/get-road-thruput … huge JSON blob

Structs§

Functions§