Skip to content

Commit

Permalink
added screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDougherty committed Mar 23, 2022
1 parent bdcead3 commit c4fa493
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Housing Code Cases Heatmap
- Live view https://handsondataviz.github.io/housing-code-cases-map
- Default view is a heat map, which changes to a point map at zoom level 17.
- Default view is a heat map, which changes to a point map with info windows at zoom level 17.

![screenshot-composite](screenshot-composite.png)

## Data
- City of Hartford, Socrata open data, Housing Code Cases: https://data.hartford.gov/Housing-Development/HousingCodeCases_01012011_Current/86ax-cfey
Expand All @@ -9,15 +11,21 @@

## Methods
- IMPORTANT: The status and quality of data in this continuously-updated map depends entirely on the City of Hartford Socrata open data platform for Housing Code Cases.
- The code uses the Socrata API to query all Housing Code Cases reported from Jan 2020 to present:
- View the raw data feed for Hartford Housing Code Cases via its Socrata API (Application Programming Interface) at <https://data.hartford.gov/resource/86ax-cfey.json>
- The code uses this Socrata API to query all Housing Code Cases reported from Jan 2020 to present and to pull selected variables: case_number, parcel_id, location, complaintviolation (type of complaint), and (date) reported.
```
$.getJSON(
'https://data.hartford.gov/resource/86ax-cfey.json?'
+ '$select=case_number,parcel_id,location,complaintviolation,reported'
+ '&$limit=99999999&$where=reported>="2020-01-01"',
```
- Hartford parcel boundary centroids were pre-calculated in `hartford-parcels`, and the code draws on these to add lat/lng to cases where possible. Only cases that can be associated with an existing Hartford parcel are displayed.
- To avoid stacking multiple cases from the same address on top of each other, the code injects a small amount of "noise" into the coordinates on the fly. The maximum value for noise is 0.0001, which is roughly 10 meters (30 ft).
- Hartford parcel boundary centroids were pre-calculated in `hartford-parcels`, and the code draws on these to add lat/lng to cases where possible. Only cases that can be associated with an existing Hartford parcel are displayed in the map.
- To avoid stacking multiple cases from the same address on top of each other (such as numerous complaints at a large apartment building), the code injects a small amount of "noise" into the coordinates on the fly. The maximum value for noise is 0.0001, which is roughly 10 meters (30 ft).
- When users zoom in to level 17 or higher, selected details appear in the info window for each case. See the Socrata open data repo for additional details about parcel number, property ownership, and date closed.





## Credits
Developed by <https://HandsOnDataViz.org>: Ilya Ilyankou / Picturedigits and Jack Dougherty, with support from the Office of Community Learning at Trinity College, CT.
Expand Down
Binary file added screenshot-composite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot-composite.psd
Binary file not shown.
Binary file added screenshot-zoom-in.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot-zoom-out.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c4fa493

Please sign in to comment.