Skip to content

Picturedigits/housing-code-cases-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Housing Code Cases Heatmap

Data

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:
$.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).

Credits

Developed by https://HandsOnDataViz.org: Ilya Ilyankou / Picturedigits and Jack Dougherty, with support from the Office of Community Learning at Trinity College, CT.

See Leaflet Maps with Open Data APIs template: https://handsondataviz.org/leaflet-maps-open-data-apis.html

See Leaflet Heatmap template: https://github.com/HandsOnDataViz/leaflet-heatmap

Learn more about how to create your own Leaflet maps at https://HandsOnDataViz.org

Releases

No releases published

Packages

No packages published

Languages