{"id":17933639,"url":"https://github.com/keyan/spd_force","last_synced_at":"2025-04-03T11:24:11.276Z","repository":{"id":87742764,"uuid":"214901844","full_name":"keyan/spd_force","owner":"keyan","description":"Seattle Police Department use of force data geographic visualization","archived":false,"fork":false,"pushed_at":"2019-10-14T07:16:34.000Z","size":1101,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T00:42:52.379Z","etag":null,"topics":["data-viz","open-data","seattle-police-department"],"latest_commit_sha":null,"homepage":"https://keyanp.com/spd-use-of-force.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keyan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-13T22:14:25.000Z","updated_at":"2020-03-23T18:47:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"beb53d7e-72dc-45d3-8dbf-38aed886ba44","html_url":"https://github.com/keyan/spd_force","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2Fspd_force","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2Fspd_force/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2Fspd_force/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2Fspd_force/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keyan","download_url":"https://codeload.github.com/keyan/spd_force/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246990556,"owners_count":20865494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-viz","open-data","seattle-police-department"],"created_at":"2024-10-28T21:41:01.692Z","updated_at":"2025-04-03T11:24:11.255Z","avatar_url":"https://github.com/keyan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Seattle Police Department use of force\n\nAnalysis 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).\n\nThese 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.\n\n## Demo\n\n[![](imgs/spd.png)](https://keyanp.com/spd_force/force.html)\n[![](imgs/histogram.png)](https://keyanp.com/spd_force/histogram.html)\n\n## Code layout\n\nI 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.\n\nThe layout and purpose of the main files are as follows:\n```\n.\n├── data                     # Static GeoJSON, JSON, and CSV data used for viz generation\n├── force.[html,js,css]      # Map visualization and styling\n├── histogram.[html,js,css]  # Incidents per officer visualization and styling\n└── parse.py                 # Script for fetching, processing, and writing data files\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyan%2Fspd_force","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeyan%2Fspd_force","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyan%2Fspd_force/lists"}