3 ms·
I don't have real traffic signal timing for Seattle. I'm waiting on a reply from some folks at SDOT and King County GIS. In the meantime, I have heuristics lik
by dabreegster 7y ago
I don't have real traffic signal timing for Seattle. I'm waiting on a reply from some folks at SDOT and King County GIS.
In the meantime, I have heuristics like https://github.com/dabreegster/abstreet/blob/ed2f703e859d57d9333738d3fd97942fce725ae7/map_model/src/traffic_signals.rs#L200 https://github.com/dabreegster/abstreet/blob/ed2f703e859d57d.... They're not great at all. If you're interested in improving these, https://github.com/dabreegster/abstreet/issues/8 https://github.com/dabreegster/abstreet/issues/8 is a great bug. ;)
Some traffic signals are adaptive (they'll switch phases sooner/later based on real-time vehicle detection, bus priority, etc) or even centrally controllable. I'm not modeling that yet.