https://github.com/jpwright/subway
A subway planning game where everything's made up and the points don't matter!
https://github.com/jpwright/subway
Last synced: 5 months ago
JSON representation
A subway planning game where everything's made up and the points don't matter!
- Host: GitHub
- URL: https://github.com/jpwright/subway
- Owner: jpwright
- Created: 2016-04-22T18:21:19.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2025-08-11T03:22:30.000Z (11 months ago)
- Last Synced: 2025-08-11T05:26:24.285Z (11 months ago)
- Language: JavaScript
- Homepage: https://jpwright.github.io/subway/
- Size: 73.6 MB
- Stars: 53
- Watchers: 3
- Forks: 24
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# subway
Source code for https://jpwright.github.io/subway/.
## Development
Pre-requisites: `node`
`npm install`
To run: `npx http-server`
### File Generations
Hopefully these steps are only necessary to do once per decade:
#### everything.geojson
You can download the latest `.geojson` for NYC from https://www.nyc.gov/site/planning/data-maps/open-data/census-download-metadata.page.
Choose `2020 Census Tracts (Water Areas Included)`.
Copy/paste the results into `json/everything.geojson`.
#### population.json
Download the latest census results from `nyc.gov`, e.g. for [2020](https://www.nyc.gov/site/planning/planning-level/nyc-population/). This gets downloaded as a `.xlsx` file. Using an online tool of your choice, convert the `2020` data into a `.json` file file and save them into every file in this repo called `population.json`.
One possible conversion:
1. Import `.xlsx` file into google sheets.
2. Delete all the tabs besides 2020 and redownload.
3. Import the redownloaded file into `https://kinoar.github.io/xlsx-to-json/` and click `Download Localization JSON`.
#### demand.json
To re-generate `demand.json` file: `node tools/demanderator.js`
Make sure to copy/paste into `json/demand.json`.