Coder Social home page Coder Social logo

mkubenka / nycdaycare Goto Github PK

View Code? Open in Web Editor NEW

This project forked from childcaremap/nycdaycare

0.0 3.0 0.0 14.21 MB

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

Home Page: http://childcaremap.github.io/NYCdaycare/

License: Other

Ruby 1.90% MATLAB 4.00% CSS 65.96% Python 25.36% PHP 2.79%

nycdaycare's Introduction

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

Project to map licensed day care centers specifically 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/

Located home-based child care information for download (or API access) on NY State Open Data Portal: https://data.ny.gov/Human-Services/Child-Care-Regulated-Programs/cb42-qumz

Current status is that we map the daycare centers, provide basic information (phone number, capacity, age range, etc) and we provide filter options. Ranking based on summarization of health inspection results is work in progress.

Attempts to get data released though NYC Open Data Portal failed, therefore we are scraping the data where necessary (basic information for home-based day cares is available, see above).

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:

We use cartoDB for the mapping. We are using the CartoDB.js API for filtering. We are looking into their SQL API to update data automatically.

To view default map

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.

nycdaycare's People

Contributors

schmiani avatar mashcode avatar omnisite avatar hafrey avatar ameensol avatar jasondecastro avatar volkanunsal avatar

Watchers

James Cloos avatar Michal Kubenka avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.