←back to thread

199 points HeavenFox | 2 comments | | HN request time: 0.413s | source

Hello HN!

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!

1. kiwibyproxy ◴[] No.44493937[source]
Very cool! It would be nice to have a bit more information in the readme about the project structure and e.g. how to adapt it for other cities :)
replies(1): >>44496691 #
2. HeavenFox ◴[] No.44496691[source]
I just tested it out. Since this uses OpenStreetMap data, it is very easy to adapt to other cities.

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.