Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keyan/spd_force
Seattle Police Department use of force data geographic visualization
https://github.com/keyan/spd_force
data-viz open-data seattle-police-department
Last synced: 20 days ago
JSON representation
Seattle Police Department use of force data geographic visualization
- Host: GitHub
- URL: https://github.com/keyan/spd_force
- Owner: keyan
- Created: 2019-10-13T22:14:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-14T07:16:34.000Z (about 5 years ago)
- Last Synced: 2024-10-28T21:50:23.577Z (2 months ago)
- Topics: data-viz, open-data, seattle-police-department
- Language: JavaScript
- Homepage: https://keyanp.com/spd-use-of-force.html
- Size: 1.05 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Seattle Police Department use of force
Analysis of SPD use of force data provided through the Seattle Open Data Portal: [link](https://data.seattle.gov/Public-Safety/Use-Of-Force/ppi5-g2bj). The geospatial visualization includes all the data, which spans from January 2014 until now (October 2019). For the curious, all use of force incidents are graded according to these [SPD defintions](http://www.seattle.gov/police-manual/title-8---use-of-force/8050---use-of-force-definitions).
These data were merged with SPD [beat](https://en.wikipedia.org/wiki/Beat_(police)) geometries, converted to GeoJSON from the available KMZ geometries in the [open data portal](https://data.seattle.gov/Public-Safety/Seattle-Police-Department-Beats/nnxn-434b). For simplicity only 2018 beat geometries were used, this means some of the pre-2018 data lying on the beat boundaries may be misrepresented.
## Demo
[![](imgs/spd.png)](https://keyanp.com/spd_force/force.html)
[![](imgs/histogram.png)](https://keyanp.com/spd_force/histogram.html)## Code layout
I am more comfortable in Python so all the data processing and file output code is handled in `parse.py`, otherwise there are two visualization in seperate html files.
The layout and purpose of the main files are as follows:
```
.
├── data # Static GeoJSON, JSON, and CSV data used for viz generation
├── force.[html,js,css] # Map visualization and styling
├── histogram.[html,js,css] # Incidents per officer visualization and styling
└── parse.py # Script for fetching, processing, and writing data files
```