This project was built around a dataset that excludes OMNY taps. It is now outdated, and has outlived its usefulness. There are no plans to rebuild it with the new dataset, and this project is no longer maintained.
A frontend-only React app, providing visualization of daily NYC Subway ridership and trends using turnstiles data, inspired by wanting to see the impact of COVID-19 on transit usage. Heavily relies on aggregated daily turnstiles data by qri. Some front-end elements sampled from The Weekendest and goodservice.io.
Project was started with using Create React App. Uses Mapbox for maps, Semantic UI React for UI elements, Nivo for graphs.
See it live at https://www.subwayridership.nyc.
brew install yarn
yarn install
-
Sign up for an account with Mapbox, get a token and add it to an
.env
file asREACT_APP_MAPBOX_TOKEN
. -
Download datasets from qri:
- NYC Subway Turnstiles Counts - 2020, copy
csv
file over todata/turnstile_counts_2020.csv
- Optional: NYC Subway Turnstiles Counts - 2019, copy
csv
file over todata/turnstile_counts_2019.csv
- NYC Turnstiles Station List, copy
csv
file over todata/turnstile_station_list.csv
- NYC Subway Turnstiles Counts - 2020, copy
node scripts/generateStationJson.js
node scripts/generateDataJson.js
yarn start
Inspirations: