Skip to content

A subway planning game where everything's made up and the points don't matter!

Notifications You must be signed in to change notification settings

jpwright/subway

Repository files navigation

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. 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.

About

A subway planning game where everything's made up and the points don't matter!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published