This project creates a web app (current version here) that allows the user to visualize and interact with the large-scale data generated by NYC's 311 service request system.
The project has two parts:
- A set of R scripts gathers the service request data from NYC's open data portal, spatially matches requests with neighborhood boundaries, and outputs aggregated summary statistics (by neighborhood, request type, and/or a time dimension). Because NYC adds and updates the request data daily, the scripts make it possible to automatically query new data and add them to the existing (local) database of service requests.
- The web app uses the aggregated data to display summary statistics
and visualizations, given a selected neighborhood. Only the
appdirectory is needed to generate the app.
Two data sources are used:
- Service request data (2010-present and 2004-2009).
- Neighborhood boundaries from NYC's department of planning.
Copies of these data can also be downloaded here.
The R scripts produce smaller and up-to-date versions of these files
(saved in data/processed). The scripts also produce data for the
app (saved in app/data).
- R, including several packages. If you're on a mac, some of the GIS packages may require that unix frameworks (e.g., gdal and geos) be installed.
- topojson is used to display neighborhood boundaries.
- Several JavaScript libraries (please refer to
app/index.html).
Creative Commons Attribution-ShareAlike 4.0 International