Hacker News new | ask | show | jobs
by paddy_m 955 days ago
I have been hacking on a better calculation environment for train speed zones. Alon Levy wrote some python code that calculates how long it takes a train to accelerate and decelerate between different speed zones.

I have been cleaning up the code and adding more to it. I'm bringing it into a jupyter notebook so transit advocates can better present their routings. So far I have a framework that allows easy expression of alternate options along a segment of track

  I'm not far off from being able to click and drag track segments on top of a map with ipyleaflet.  I also want to hook in an optimizer to recommend the best track routings by cost.
There's still a lot of work to do. Is anyone else interested in hacking on this stuff?

[1] https://pedestrianobservations.com/2023/10/27/setting-speed-...

[2] https://github.com/paddymul/train-calculator/blob/main/Segme...