/NYCdaycare

Map of group child care centers with permits from the NYC DoHMH

Primary LanguageCSSOtherNOASSERTION

===================== childcaremap/NYCdaycare

Project to map licensed day care centers for children 0-5 years in New York City.

Data from NYC Department of Health and Mental Hygiene:

  1. Center-based child care at https://a816-healthpsi.nyc.gov/ChildCare/ChildCareList.do
  2. Home-based child care at http://it.ocfs.ny.gov/ccfs_facilitysearch/

The plan is to map the daycare centers, provide basic information (phone number, capacity, age range, etc) and summarize health inspection results.

Attempts to get data released though NYC Open Data Portal failed, therefore we are scraping the data.

We are using python package mechanize, the code is in folder "python_scraper"

Older versions of scrapers, not used anymore:

  1. ruby based script with mechanize in folder "ruby_scraper"
  2. php based script in folder "php_scraper"

Combining permits:

Group-based child care permits are issued for 0-2 years or 2-5 years, therefore many child care centers are listed twice (or more times, if they have different types of premits, such as private and corporate etc.). Also, sometimes more than one daycare center are located at the same address. Because they have the same geolocation, only one of the entries will be visible in a map (unless artificial jitter is introduced, an approach not taken here). Python scripts in folder "python_combine_and_geocode" combines any permit at the same location into one entry, but preserves the different entries with slashes. This is done just for mapping, the original file is kept separately. Workflow is to combine permits for the exact same address, then geocode using pygeocoder (Google Geocoding API V3 without key, if several locations are returned, script chooses the first one in the list), then combine permits for the exact same geolocation (sometimes addresse is written differently for different permits, but the geolocation returned by Google is the same).

Mapping:

Right now, cartoDB is used for the mapping. We are looking into their SQL API to update data autonatically. Also looking into their CartoDB.js API for filtering.

To view default map

To view map with filters (in development)

GitHub page is maintained in seperate gh-pages branch (now the default) which gets updated with master but not vice-versa.

Jekyll with a modified single page responsive theme Solo. Docs are here https://github.com/chibicode/solo. Thanks to Shu Uesugi (Twitter/GitHub/G+).

===================== License:

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.