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
.envfile asREACT_APP_MAPBOX_TOKEN. -
Download datasets from qri:
- NYC Subway Turnstiles Counts - 2020, copy
csvfile over todata/turnstile_counts_2020.csv - Optional: NYC Subway Turnstiles Counts - 2019, copy
csvfile over todata/turnstile_counts_2019.csv - NYC Turnstiles Station List, copy
csvfile over todata/turnstile_station_list.csv
- NYC Subway Turnstiles Counts - 2020, copy
node scripts/generateStationJson.js
node scripts/generateDataJson.js
yarn start
Inspirations: