Source code for https://jpwright.github.io/subway/.
Pre-requisites: node
npm install
To run: npx http-server
Hopefully these steps are only necessary to do once per decade:
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
.
Download the latest census results from nyc.gov
, e.g. for 2020. 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:
- Import
.xlsx
file into google sheets. - Delete all the tabs besides 2020 and redownload.
- Import the redownloaded file into
https://kinoar.github.io/xlsx-to-json/
and clickDownload Localization JSON
.
To re-generate demand.json
file: node tools/demanderator.js
Make sure to copy/paste into json/demand.json
.