Probation Community Resources is an online interactive, searchable map that helps users:
Built in collaboration with the Cook County Adult Probation Department (CCAPD), the Cook County Juvenile Probation Department (CCJPD), the Sargent Shriver National Center on Poverty Law, the Chicago Appleseed Fund, and the Health & Medicine Policy Research Group, Probation Community Resources helps criminal justice personnel refer clients to culturally relevant and geographically specific community-based services.
$ git clone https://github.com/datamade/probation-resources-map.git $ cd site_template $ gem install jekyll $ jekyll serve -w navigate to http://localhost:5000/
The data for this site is housed a Google Spreadsheet and synced with CARTO. Initially, it was set up to automatically update every 30 minutes, but the automatic import for CARTO failed on parsing the spreadsheet properly. Now, to do updates, you must take the following steps:
Probation Resources Map
Google Sheet: https://docs.google.com/spreadsheets/d/1iShheCZRamOmuWo3SETgbWopHCCu1DRB_F5_FZMKp5A/edit#. This ensures only the sheet with the info we want is included (CARTO gets confused by Excel files with multiple sheets)https://datamade.carto.com/api/v2/viz/b9ab99de-e4e7-4625-9dc5-032097853133/viz.json
) and update layerUrl
in cartodb_lib.js
.tableName
in cartodb_lib.js
The data for this tool resides in a Google spreadsheet and its corresponding Carto table.
Most of the data has been (and continues to be) manually entered by people associated with CCAPD, CCJPD, the Shriver Center, the Appleseed Fund, and the HMPR Group. One data piece can be automated: the discovery of latitude and longitude for facility addresses. We use Google Sheets Geocoder - specifically, geocoder-census-google.gs - a library that converts addresses into lat-long coordinates.
This site includes a basic test suite built with Rspec and Capybara, which drive the browser to perform acceptance tests.
$ bundle install $ rspec spec/
Some tests include binding.pry. In such cases the test pauses, after which you may type "exit" in the terminal to continue.
If something is not behaving intuitively, it is a bug, and should be reported. Report it here: https://github.com/datamade/probation-resources-map/issues
Copyright (c) 2022 DataMade. Released under the MIT License.