Death Map NYC
This is the source code for deathmapnyc.com, a map of deaths that occurred in New York City in 2015 and 2016 based on available data. For some categories/data-sources there's data going as far back as 2006. Check the "Show All Years" button to see that.
- NYPD Complaint Data
- NYPD Motor Vehicle Collision Data
- The Guardian's "The Counted"
- OSHA Worker Fatalities
You can see how the data was combined and used in the jupyter notebook.
If you have suggestions of other data sources, please let me know by opening an issue.
Rather than use clustering to show where lots of death occurred at the same location, this map shows each record but adjusts the locations slightly so they're visible.
To get started:
# clone it git clone email@example.com:zischwartz/deathmapnyc.git && cd deathmapnyc # install deps npm install # start development webpack dev server npm start # # open http://localhost:3333/
npm run jupyter # follow instructions, copy and paste link into browser, and then click process.ipynb
Limitations & Caveats
- The data is incomplete, there are many ways people die that aren't captured by any of the four data sources that were available.
- Some records contain multiple deaths, especially the OSHA and motor vehicle records. These still appear as one icon on the map.
- The data is messy, some deaths aren't displayed because there isn't enough information.
- The location data is particularly messy, and is often the result of geocoding an address in the jupyter notebook using google maps, which may or may not be accurate.
- OSHA records may in some cases be the address of the employer rather than the location of the accident.