Show HN: NYC Subway Simulator and Route Designer
201 points| HeavenFox | 7 months ago |buildmytransit.nyc
As a long term NYC resident, I have read countless articles on ideas tweaking subway services, but always found them hard to follow without visual aid. So over the long weekend I decided to build one. It has all the basic features: trains would spawn at their origin, stop at stations, and slow down if it gets too close to another. You can also design custom routes by piecing tracks together.
Have fun, and let me know what you think!
avianlyric|7 months ago
On high capacity systems, train dwell time becomes the limiting factor on passenger capacity. 30 seconds is generally the minimum possible dwell time a system can manage, 20 seconds might be possible during much lower demand periods. But you’re unlikely to ever achieve better than that.
The London Victoria Line, which runs with 90 second headways at peak, achieves at best 24 second dwell times in central section, but 30-40 seconds is more realistic for most stations.
Don’t forget, dwell time includes more than just passengers getting off and on. It has to include time to open the doors, close the doors (including a 2-3 second visual and audible warning!), perform needed safety checks, and eventually pull away. Those operational components the sandwich the core “people getting on and off” bit of station stops add up to a non-trivial number of seconds.
https://www.researchgate.net/figure/Dwell-Time-and-Passenger...
As a minor note, the NYC subway uses a system of fix automatic blocks, not a moving block system, which is what your simulation appears to use. Moving block systems are dramatically more efficient than fixed block systems. But I have no idea how you would get hold of accurate block locations for the NYC subway.
rafram|7 months ago
Lines with CBTC use moving blocks. That’s the L, 7, and parts of the E, F, M, and R.
hshdhdhj4444|7 months ago
You don’t need a warning for opening the doors. The warning for closing the doors will overlap with people boarding.
That being said 10s is too low as a default but it can easily be changed to a more reasonable 30s or more.
rhubarbtree|7 months ago
darthplagius|7 months ago
I'm 100% showing this to them today just for fun. They'll get a kick out of it.
ttamslam|7 months ago
Is any of your/their work published?
chrisxlucas|7 months ago
ars|7 months ago
Edit: Actually Clifton is in NY, and playing with Google maps there's ZERO public transport from Staten Island to NJ, except by going through Manhattan!
So my idea wouldn't help anyway, unless they extended that subway all the way over the Goethals Bridge.
HeavenFox|7 months ago
throwaway2037|7 months ago
blehn|7 months ago
For example: Selected: Black fill Normal operation: Color fill with 100% opacity Slowing down: 70% opacity Stopped: striped fill, 50% opacity At station: pulsing opacity
HeavenFox|7 months ago
xnx|7 months ago
Sometimes when I Edit Routes and click an "<- Add" button I get the console error "Uncaught Error: coordinates must be an array of two or more positions" and the page blanks out.
HeavenFox|7 months ago
-->-->-- --<--<--
I'll add some logic to prevent such options from showing up.
kiwibyproxy|7 months ago
HeavenFox|7 months ago
All input data and scripts are in src/data. Run the two Overpass queries, replacing New York with a city of your choice, and you will get JSON data on the infrastructure, as well as services. Replace the two existing JSON files, run the two transformation scripts, and you are done.
Aaronstotle|7 months ago
evanb|7 months ago
shiroiuma|7 months ago
HeavenFox|7 months ago
konsalexee|7 months ago
A slider to do a bit of time-travelling if possible would be also a nice to have
indoordin0saur|7 months ago
fsckboy|7 months ago
zerojames|7 months ago
pimlottc|7 months ago
unknown|7 months ago
[deleted]
unknown|7 months ago
[deleted]