Find the original dataset here: http://data.cambridgema.gov/d/gtif-nz2s
Raw Data from the 2010 Census SF1 (no percentages values have been calculated for variables) . Block level data from the 2010 U. S. Census Summary File 1 recompiled by the Cambridge Community Development Department to align with neighborhood boundaries. Categories include: Population, Housing Tenure, Race, Hispanic Origin, Age and Sex, Household Type, and Family Type. All members of the population completed the 2010 Census; these figures are not based on sample data
Finish the setup steps to use 2010 Census Data by Neighborhood - Raw Data in Slack.
Run this function with a POST request to Blockspring.
Visit the node.js quickstart to get started fast.
Visit the php quickstart to get started fast.
Visit the python quickstart to get started fast.
Visit the ruby quickstart to get started fast.
Visit the r quickstart to get started fast.
Visit the javascript quickstart to get started fast.
Use this URL for webhooks. You'll want to make a POST request.
curl -H "Content-Type: application/json" -d "{ \"_18_24_min\": 0, \"_18_24_max\": 0, \"_25_34_min\": 0, \"_25_34_max\": 0, \"_35_44_min\": 0, \"_35_44_max\": 0, \"_45_54_min\": 0, \"_45_54_max\": 0, \"_55_64_min\": 0, \"_55_64_max\": 0, \"_5_to_17_min\": 0, \"_5_to_17_max\": 0, \"_65_min\": 0, \"_65_max\": 0, \"asian_population_min\": 0, \"asian_population_max\": 0, \"black_population_min\": 0, \"black_population_max\": 0, \"centerpoint_x_min\": 0, \"centerpoint_x_max\": 0, \"centerpoint_y_min\": 0, \"centerpoint_y_max\": 0, \"families_w_o_kids_min\": 0, \"families_w_o_kids_max\": 0, \"families_w_related_kids_min\": 0, \"families_w_related_kids_max\": 0, \"gq_pop_min\": 0, \"gq_pop_max\": 0, \"hispanic_population_min\": 0, \"hispanic_population_max\": 0, \"households_min\": 0, \"households_max\": 0, \"land_area_in_acres_min\": 0, \"land_area_in_acres_max\": 0, \"land_area_in_square_miles_min\": 0, \"land_area_in_square_miles_max\": 0, \"married_w_o_kids_min\": 0, \"married_w_o_kids_max\": 0, \"married_w_related_kids_min\": 0, \"married_w_related_kids_max\": 0, \"neighborhood_1\": , \"neighborhood_2_min\": 0, \"neighborhood_2_max\": 0, \"nonfamily_hhs_min\": 0, \"nonfamily_hhs_max\": 0, \"other_population_min\": 0, \"other_population_max\": 0, \"owner_occupied_units_min\": 0, \"owner_occupied_units_max\": 0, \"persons_in_dorms_min\": 0, \"persons_in_dorms_max\": 0, \"persons_per_acre_min\": 0, \"persons_per_acre_max\": 0, \"persons_per_hh_min\": 0, \"persons_per_hh_max\": 0, \"renter_occupied_units_min\": 0, \"renter_occupied_units_max\": 0, \"roommates_min\": 0, \"roommates_max\": 0, \"s_women_w_related_kids_min\": 0, \"s_women_w_related_kids_max\": 0, \"single_person_hh_min\": 0, \"single_person_hh_max\": 0, \"total_population_min\": 0, \"total_population_max\": 0, \"total_units_min\": 0, \"total_units_max\": 0, \"under_5_min\": 0, \"under_5_max\": 0, \"unit_density_min\": 0, \"unit_density_max\": 0, \"unmarried_men_w_o_kids_min\": 0, \"unmarried_men_w_o_kids_max\": 0, \"unmarried_women_w_o_kids_min\": 0, \"unmarried_women_w_o_kids_max\": 0, \"vacant_units_min\": 0, \"vacant_units_max\": 0, \"white_population_min\": 0, \"white_population_max\": 0 }" "https://run.blockspring.com/api_v2/blocks/09e7f5ce706527b78572ac77203a3010?"
var blockspring = require("blockspring");
blockspring.runParsed("09e7f5ce706527b78572ac77203a3010", { "_18_24_min": 0, "_18_24_max": 0, "_25_34_min": 0, "_25_34_max": 0, "_35_44_min": 0, "_35_44_max": 0, "_45_54_min": 0, "_45_54_max": 0, "_55_64_min": 0, "_55_64_max": 0, "_5_to_17_min": 0, "_5_to_17_max": 0, "_65_min": 0, "_65_max": 0, "asian_population_min": 0, "asian_population_max": 0, "black_population_min": 0, "black_population_max": 0, "centerpoint_x_min": 0, "centerpoint_x_max": 0, "centerpoint_y_min": 0, "centerpoint_y_max": 0, "families_w_o_kids_min": 0, "families_w_o_kids_max": 0, "families_w_related_kids_min": 0, "families_w_related_kids_max": 0, "gq_pop_min": 0, "gq_pop_max": 0, "hispanic_population_min": 0, "hispanic_population_max": 0, "households_min": 0, "households_max": 0, "land_area_in_acres_min": 0, "land_area_in_acres_max": 0, "land_area_in_square_miles_min": 0, "land_area_in_square_miles_max": 0, "married_w_o_kids_min": 0, "married_w_o_kids_max": 0, "married_w_related_kids_min": 0, "married_w_related_kids_max": 0, "neighborhood_1": , "neighborhood_2_min": 0, "neighborhood_2_max": 0, "nonfamily_hhs_min": 0, "nonfamily_hhs_max": 0, "other_population_min": 0, "other_population_max": 0, "owner_occupied_units_min": 0, "owner_occupied_units_max": 0, "persons_in_dorms_min": 0, "persons_in_dorms_max": 0, "persons_per_acre_min": 0, "persons_per_acre_max": 0, "persons_per_hh_min": 0, "persons_per_hh_max": 0, "renter_occupied_units_min": 0, "renter_occupied_units_max": 0, "roommates_min": 0, "roommates_max": 0, "s_women_w_related_kids_min": 0, "s_women_w_related_kids_max": 0, "single_person_hh_min": 0, "single_person_hh_max": 0, "total_population_min": 0, "total_population_max": 0, "total_units_min": 0, "total_units_max": 0, "under_5_min": 0, "under_5_max": 0, "unit_density_min": 0, "unit_density_max": 0, "unmarried_men_w_o_kids_min": 0, "unmarried_men_w_o_kids_max": 0, "unmarried_women_w_o_kids_min": 0, "unmarried_women_w_o_kids_max": 0, "vacant_units_min": 0, "vacant_units_max": 0, "white_population_min": 0, "white_population_max": 0 }, function(res) {
console.log(res.params);
});
var request = require("request");
request.post({
url: "https://run.blockspring.com/api_v2/blocks/09e7f5ce706527b78572ac77203a3010?",
form: { "_18_24_min": 0, "_18_24_max": 0, "_25_34_min": 0, "_25_34_max": 0, "_35_44_min": 0, "_35_44_max": 0, "_45_54_min": 0, "_45_54_max": 0, "_55_64_min": 0, "_55_64_max": 0, "_5_to_17_min": 0, "_5_to_17_max": 0, "_65_min": 0, "_65_max": 0, "asian_population_min": 0, "asian_population_max": 0, "black_population_min": 0, "black_population_max": 0, "centerpoint_x_min": 0, "centerpoint_x_max": 0, "centerpoint_y_min": 0, "centerpoint_y_max": 0, "families_w_o_kids_min": 0, "families_w_o_kids_max": 0, "families_w_related_kids_min": 0, "families_w_related_kids_max": 0, "gq_pop_min": 0, "gq_pop_max": 0, "hispanic_population_min": 0, "hispanic_population_max": 0, "households_min": 0, "households_max": 0, "land_area_in_acres_min": 0, "land_area_in_acres_max": 0, "land_area_in_square_miles_min": 0, "land_area_in_square_miles_max": 0, "married_w_o_kids_min": 0, "married_w_o_kids_max": 0, "married_w_related_kids_min": 0, "married_w_related_kids_max": 0, "neighborhood_1": , "neighborhood_2_min": 0, "neighborhood_2_max": 0, "nonfamily_hhs_min": 0, "nonfamily_hhs_max": 0, "other_population_min": 0, "other_population_max": 0, "owner_occupied_units_min": 0, "owner_occupied_units_max": 0, "persons_in_dorms_min": 0, "persons_in_dorms_max": 0, "persons_per_acre_min": 0, "persons_per_acre_max": 0, "persons_per_hh_min": 0, "persons_per_hh_max": 0, "renter_occupied_units_min": 0, "renter_occupied_units_max": 0, "roommates_min": 0, "roommates_max": 0, "s_women_w_related_kids_min": 0, "s_women_w_related_kids_max": 0, "single_person_hh_min": 0, "single_person_hh_max": 0, "total_population_min": 0, "total_population_max": 0, "total_units_min": 0, "total_units_max": 0, "under_5_min": 0, "under_5_max": 0, "unit_density_min": 0, "unit_density_max": 0, "unmarried_men_w_o_kids_min": 0, "unmarried_men_w_o_kids_max": 0, "unmarried_women_w_o_kids_min": 0, "unmarried_women_w_o_kids_max": 0, "vacant_units_min": 0, "vacant_units_max": 0, "white_population_min": 0, "white_population_max": 0}
},
function(err, response, body) {
console.log(JSON.parse(body));
});
<?php
$url = 'https://run.blockspring.com/api_v2/blocks/09e7f5ce706527b78572ac77203a3010?';
$data = json_encode(array('_18_24_min' => 0, '_18_24_max' => 0, '_25_34_min' => 0, '_25_34_max' => 0, '_35_44_min' => 0, '_35_44_max' => 0, '_45_54_min' => 0, '_45_54_max' => 0, '_55_64_min' => 0, '_55_64_max' => 0, '_5_to_17_min' => 0, '_5_to_17_max' => 0, '_65_min' => 0, '_65_max' => 0, 'asian_population_min' => 0, 'asian_population_max' => 0, 'black_population_min' => 0, 'black_population_max' => 0, 'centerpoint_x_min' => 0, 'centerpoint_x_max' => 0, 'centerpoint_y_min' => 0, 'centerpoint_y_max' => 0, 'families_w_o_kids_min' => 0, 'families_w_o_kids_max' => 0, 'families_w_related_kids_min' => 0, 'families_w_related_kids_max' => 0, 'gq_pop_min' => 0, 'gq_pop_max' => 0, 'hispanic_population_min' => 0, 'hispanic_population_max' => 0, 'households_min' => 0, 'households_max' => 0, 'land_area_in_acres_min' => 0, 'land_area_in_acres_max' => 0, 'land_area_in_square_miles_min' => 0, 'land_area_in_square_miles_max' => 0, 'married_w_o_kids_min' => 0, 'married_w_o_kids_max' => 0, 'married_w_related_kids_min' => 0, 'married_w_related_kids_max' => 0, "neighborhood_1" => , 'neighborhood_2_min' => 0, 'neighborhood_2_max' => 0, 'nonfamily_hhs_min' => 0, 'nonfamily_hhs_max' => 0, 'other_population_min' => 0, 'other_population_max' => 0, 'owner_occupied_units_min' => 0, 'owner_occupied_units_max' => 0, 'persons_in_dorms_min' => 0, 'persons_in_dorms_max' => 0, 'persons_per_acre_min' => 0, 'persons_per_acre_max' => 0, 'persons_per_hh_min' => 0, 'persons_per_hh_max' => 0, 'renter_occupied_units_min' => 0, 'renter_occupied_units_max' => 0, 'roommates_min' => 0, 'roommates_max' => 0, 's_women_w_related_kids_min' => 0, 's_women_w_related_kids_max' => 0, 'single_person_hh_min' => 0, 'single_person_hh_max' => 0, 'total_population_min' => 0, 'total_population_max' => 0, 'total_units_min' => 0, 'total_units_max' => 0, 'under_5_min' => 0, 'under_5_max' => 0, 'unit_density_min' => 0, 'unit_density_max' => 0, 'unmarried_men_w_o_kids_min' => 0, 'unmarried_men_w_o_kids_max' => 0, 'unmarried_women_w_o_kids_min' => 0, 'unmarried_women_w_o_kids_max' => 0, 'vacant_units_min' => 0, 'vacant_units_max' => 0, 'white_population_min' => 0, 'white_population_max' => 0));
// use key 'http' even if you send the request to https://...
$options = array(
'http' => array(
'header' => array("Accept: application/json", "Content-Type: application/json"),
'method' => 'POST',
'content' => $data,
),
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
var_dump(json_decode($result));
?>
<?php
require('blockspring.php');
var_dump(Blockspring::runParsed("09e7f5ce706527b78572ac77203a3010", array('_18_24_min' => 0, '_18_24_max' => 0, '_25_34_min' => 0, '_25_34_max' => 0, '_35_44_min' => 0, '_35_44_max' => 0, '_45_54_min' => 0, '_45_54_max' => 0, '_55_64_min' => 0, '_55_64_max' => 0, '_5_to_17_min' => 0, '_5_to_17_max' => 0, '_65_min' => 0, '_65_max' => 0, 'asian_population_min' => 0, 'asian_population_max' => 0, 'black_population_min' => 0, 'black_population_max' => 0, 'centerpoint_x_min' => 0, 'centerpoint_x_max' => 0, 'centerpoint_y_min' => 0, 'centerpoint_y_max' => 0, 'families_w_o_kids_min' => 0, 'families_w_o_kids_max' => 0, 'families_w_related_kids_min' => 0, 'families_w_related_kids_max' => 0, 'gq_pop_min' => 0, 'gq_pop_max' => 0, 'hispanic_population_min' => 0, 'hispanic_population_max' => 0, 'households_min' => 0, 'households_max' => 0, 'land_area_in_acres_min' => 0, 'land_area_in_acres_max' => 0, 'land_area_in_square_miles_min' => 0, 'land_area_in_square_miles_max' => 0, 'married_w_o_kids_min' => 0, 'married_w_o_kids_max' => 0, 'married_w_related_kids_min' => 0, 'married_w_related_kids_max' => 0, "neighborhood_1" => , 'neighborhood_2_min' => 0, 'neighborhood_2_max' => 0, 'nonfamily_hhs_min' => 0, 'nonfamily_hhs_max' => 0, 'other_population_min' => 0, 'other_population_max' => 0, 'owner_occupied_units_min' => 0, 'owner_occupied_units_max' => 0, 'persons_in_dorms_min' => 0, 'persons_in_dorms_max' => 0, 'persons_per_acre_min' => 0, 'persons_per_acre_max' => 0, 'persons_per_hh_min' => 0, 'persons_per_hh_max' => 0, 'renter_occupied_units_min' => 0, 'renter_occupied_units_max' => 0, 'roommates_min' => 0, 'roommates_max' => 0, 's_women_w_related_kids_min' => 0, 's_women_w_related_kids_max' => 0, 'single_person_hh_min' => 0, 'single_person_hh_max' => 0, 'total_population_min' => 0, 'total_population_max' => 0, 'total_units_min' => 0, 'total_units_max' => 0, 'under_5_min' => 0, 'under_5_max' => 0, 'unit_density_min' => 0, 'unit_density_max' => 0, 'unmarried_men_w_o_kids_min' => 0, 'unmarried_men_w_o_kids_max' => 0, 'unmarried_women_w_o_kids_min' => 0, 'unmarried_women_w_o_kids_max' => 0, 'vacant_units_min' => 0, 'vacant_units_max' => 0, 'white_population_min' => 0, 'white_population_max' => 0))->params);
import json
import urllib2
req = urllib2.Request("https://run.blockspring.com/api_v2/blocks/09e7f5ce706527b78572ac77203a3010?")
req.add_header('Content-Type', 'application/json')
data = { "_18_24_min": 0, "_18_24_max": 0, "_25_34_min": 0, "_25_34_max": 0, "_35_44_min": 0, "_35_44_max": 0, "_45_54_min": 0, "_45_54_max": 0, "_55_64_min": 0, "_55_64_max": 0, "_5_to_17_min": 0, "_5_to_17_max": 0, "_65_min": 0, "_65_max": 0, "asian_population_min": 0, "asian_population_max": 0, "black_population_min": 0, "black_population_max": 0, "centerpoint_x_min": 0, "centerpoint_x_max": 0, "centerpoint_y_min": 0, "centerpoint_y_max": 0, "families_w_o_kids_min": 0, "families_w_o_kids_max": 0, "families_w_related_kids_min": 0, "families_w_related_kids_max": 0, "gq_pop_min": 0, "gq_pop_max": 0, "hispanic_population_min": 0, "hispanic_population_max": 0, "households_min": 0, "households_max": 0, "land_area_in_acres_min": 0, "land_area_in_acres_max": 0, "land_area_in_square_miles_min": 0, "land_area_in_square_miles_max": 0, "married_w_o_kids_min": 0, "married_w_o_kids_max": 0, "married_w_related_kids_min": 0, "married_w_related_kids_max": 0, "neighborhood_1": , "neighborhood_2_min": 0, "neighborhood_2_max": 0, "nonfamily_hhs_min": 0, "nonfamily_hhs_max": 0, "other_population_min": 0, "other_population_max": 0, "owner_occupied_units_min": 0, "owner_occupied_units_max": 0, "persons_in_dorms_min": 0, "persons_in_dorms_max": 0, "persons_per_acre_min": 0, "persons_per_acre_max": 0, "persons_per_hh_min": 0, "persons_per_hh_max": 0, "renter_occupied_units_min": 0, "renter_occupied_units_max": 0, "roommates_min": 0, "roommates_max": 0, "s_women_w_related_kids_min": 0, "s_women_w_related_kids_max": 0, "single_person_hh_min": 0, "single_person_hh_max": 0, "total_population_min": 0, "total_population_max": 0, "total_units_min": 0, "total_units_max": 0, "under_5_min": 0, "under_5_max": 0, "unit_density_min": 0, "unit_density_max": 0, "unmarried_men_w_o_kids_min": 0, "unmarried_men_w_o_kids_max": 0, "unmarried_women_w_o_kids_min": 0, "unmarried_women_w_o_kids_max": 0, "vacant_units_min": 0, "vacant_units_max": 0, "white_population_min": 0, "white_population_max": 0}
results = urllib2.urlopen(req, json.dumps(data)).read()
print json.loads(results)
import blockspring
import json
print blockspring.runParsed("09e7f5ce706527b78572ac77203a3010", { "_18_24_min": 0, "_18_24_max": 0, "_25_34_min": 0, "_25_34_max": 0, "_35_44_min": 0, "_35_44_max": 0, "_45_54_min": 0, "_45_54_max": 0, "_55_64_min": 0, "_55_64_max": 0, "_5_to_17_min": 0, "_5_to_17_max": 0, "_65_min": 0, "_65_max": 0, "asian_population_min": 0, "asian_population_max": 0, "black_population_min": 0, "black_population_max": 0, "centerpoint_x_min": 0, "centerpoint_x_max": 0, "centerpoint_y_min": 0, "centerpoint_y_max": 0, "families_w_o_kids_min": 0, "families_w_o_kids_max": 0, "families_w_related_kids_min": 0, "families_w_related_kids_max": 0, "gq_pop_min": 0, "gq_pop_max": 0, "hispanic_population_min": 0, "hispanic_population_max": 0, "households_min": 0, "households_max": 0, "land_area_in_acres_min": 0, "land_area_in_acres_max": 0, "land_area_in_square_miles_min": 0, "land_area_in_square_miles_max": 0, "married_w_o_kids_min": 0, "married_w_o_kids_max": 0, "married_w_related_kids_min": 0, "married_w_related_kids_max": 0, "neighborhood_1": , "neighborhood_2_min": 0, "neighborhood_2_max": 0, "nonfamily_hhs_min": 0, "nonfamily_hhs_max": 0, "other_population_min": 0, "other_population_max": 0, "owner_occupied_units_min": 0, "owner_occupied_units_max": 0, "persons_in_dorms_min": 0, "persons_in_dorms_max": 0, "persons_per_acre_min": 0, "persons_per_acre_max": 0, "persons_per_hh_min": 0, "persons_per_hh_max": 0, "renter_occupied_units_min": 0, "renter_occupied_units_max": 0, "roommates_min": 0, "roommates_max": 0, "s_women_w_related_kids_min": 0, "s_women_w_related_kids_max": 0, "single_person_hh_min": 0, "single_person_hh_max": 0, "total_population_min": 0, "total_population_max": 0, "total_units_min": 0, "total_units_max": 0, "under_5_min": 0, "under_5_max": 0, "unit_density_min": 0, "unit_density_max": 0, "unmarried_men_w_o_kids_min": 0, "unmarried_men_w_o_kids_max": 0, "unmarried_women_w_o_kids_min": 0, "unmarried_women_w_o_kids_max": 0, "vacant_units_min": 0, "vacant_units_max": 0, "white_population_min": 0, "white_population_max": 0 }).params
require 'rest_client'
response = RestClient.post 'https://run.blockspring.com/api_v2/blocks/09e7f5ce706527b78572ac77203a3010?', JSON.dump({ "_18_24_min" => 0, "_18_24_max" => 0, "_25_34_min" => 0, "_25_34_max" => 0, "_35_44_min" => 0, "_35_44_max" => 0, "_45_54_min" => 0, "_45_54_max" => 0, "_55_64_min" => 0, "_55_64_max" => 0, "_5_to_17_min" => 0, "_5_to_17_max" => 0, "_65_min" => 0, "_65_max" => 0, "asian_population_min" => 0, "asian_population_max" => 0, "black_population_min" => 0, "black_population_max" => 0, "centerpoint_x_min" => 0, "centerpoint_x_max" => 0, "centerpoint_y_min" => 0, "centerpoint_y_max" => 0, "families_w_o_kids_min" => 0, "families_w_o_kids_max" => 0, "families_w_related_kids_min" => 0, "families_w_related_kids_max" => 0, "gq_pop_min" => 0, "gq_pop_max" => 0, "hispanic_population_min" => 0, "hispanic_population_max" => 0, "households_min" => 0, "households_max" => 0, "land_area_in_acres_min" => 0, "land_area_in_acres_max" => 0, "land_area_in_square_miles_min" => 0, "land_area_in_square_miles_max" => 0, "married_w_o_kids_min" => 0, "married_w_o_kids_max" => 0, "married_w_related_kids_min" => 0, "married_w_related_kids_max" => 0, "neighborhood_1" => , "neighborhood_2_min" => 0, "neighborhood_2_max" => 0, "nonfamily_hhs_min" => 0, "nonfamily_hhs_max" => 0, "other_population_min" => 0, "other_population_max" => 0, "owner_occupied_units_min" => 0, "owner_occupied_units_max" => 0, "persons_in_dorms_min" => 0, "persons_in_dorms_max" => 0, "persons_per_acre_min" => 0, "persons_per_acre_max" => 0, "persons_per_hh_min" => 0, "persons_per_hh_max" => 0, "renter_occupied_units_min" => 0, "renter_occupied_units_max" => 0, "roommates_min" => 0, "roommates_max" => 0, "s_women_w_related_kids_min" => 0, "s_women_w_related_kids_max" => 0, "single_person_hh_min" => 0, "single_person_hh_max" => 0, "total_population_min" => 0, "total_population_max" => 0, "total_units_min" => 0, "total_units_max" => 0, "under_5_min" => 0, "under_5_max" => 0, "unit_density_min" => 0, "unit_density_max" => 0, "unmarried_men_w_o_kids_min" => 0, "unmarried_men_w_o_kids_max" => 0, "unmarried_women_w_o_kids_min" => 0, "unmarried_women_w_o_kids_max" => 0, "vacant_units_min" => 0, "vacant_units_max" => 0, "white_population_min" => 0, "white_population_max" => 0 }), :content_type => :json
puts JSON.load(response)
require 'blockspring'
puts Blockspring.runParsed("09e7f5ce706527b78572ac77203a3010", { "_18_24_min" => 0, "_18_24_max" => 0, "_25_34_min" => 0, "_25_34_max" => 0, "_35_44_min" => 0, "_35_44_max" => 0, "_45_54_min" => 0, "_45_54_max" => 0, "_55_64_min" => 0, "_55_64_max" => 0, "_5_to_17_min" => 0, "_5_to_17_max" => 0, "_65_min" => 0, "_65_max" => 0, "asian_population_min" => 0, "asian_population_max" => 0, "black_population_min" => 0, "black_population_max" => 0, "centerpoint_x_min" => 0, "centerpoint_x_max" => 0, "centerpoint_y_min" => 0, "centerpoint_y_max" => 0, "families_w_o_kids_min" => 0, "families_w_o_kids_max" => 0, "families_w_related_kids_min" => 0, "families_w_related_kids_max" => 0, "gq_pop_min" => 0, "gq_pop_max" => 0, "hispanic_population_min" => 0, "hispanic_population_max" => 0, "households_min" => 0, "households_max" => 0, "land_area_in_acres_min" => 0, "land_area_in_acres_max" => 0, "land_area_in_square_miles_min" => 0, "land_area_in_square_miles_max" => 0, "married_w_o_kids_min" => 0, "married_w_o_kids_max" => 0, "married_w_related_kids_min" => 0, "married_w_related_kids_max" => 0, "neighborhood_1" => , "neighborhood_2_min" => 0, "neighborhood_2_max" => 0, "nonfamily_hhs_min" => 0, "nonfamily_hhs_max" => 0, "other_population_min" => 0, "other_population_max" => 0, "owner_occupied_units_min" => 0, "owner_occupied_units_max" => 0, "persons_in_dorms_min" => 0, "persons_in_dorms_max" => 0, "persons_per_acre_min" => 0, "persons_per_acre_max" => 0, "persons_per_hh_min" => 0, "persons_per_hh_max" => 0, "renter_occupied_units_min" => 0, "renter_occupied_units_max" => 0, "roommates_min" => 0, "roommates_max" => 0, "s_women_w_related_kids_min" => 0, "s_women_w_related_kids_max" => 0, "single_person_hh_min" => 0, "single_person_hh_max" => 0, "total_population_min" => 0, "total_population_max" => 0, "total_units_min" => 0, "total_units_max" => 0, "under_5_min" => 0, "under_5_max" => 0, "unit_density_min" => 0, "unit_density_max" => 0, "unmarried_men_w_o_kids_min" => 0, "unmarried_men_w_o_kids_max" => 0, "unmarried_women_w_o_kids_min" => 0, "unmarried_women_w_o_kids_max" => 0, "vacant_units_min" => 0, "vacant_units_max" => 0, "white_population_min" => 0, "white_population_max" => 0 } ).params
require 'rest_client'
response = RestClient.post 'https://run.blockspring.com/api_v2/blocks/09e7f5ce706527b78572ac77203a3010?', JSON.dump({ "_18_24_min" = 0, "_18_24_max" = 0, "_25_34_min" = 0, "_25_34_max" = 0, "_35_44_min" = 0, "_35_44_max" = 0, "_45_54_min" = 0, "_45_54_max" = 0, "_55_64_min" = 0, "_55_64_max" = 0, "_5_to_17_min" = 0, "_5_to_17_max" = 0, "_65_min" = 0, "_65_max" = 0, "asian_population_min" = 0, "asian_population_max" = 0, "black_population_min" = 0, "black_population_max" = 0, "centerpoint_x_min" = 0, "centerpoint_x_max" = 0, "centerpoint_y_min" = 0, "centerpoint_y_max" = 0, "families_w_o_kids_min" = 0, "families_w_o_kids_max" = 0, "families_w_related_kids_min" = 0, "families_w_related_kids_max" = 0, "gq_pop_min" = 0, "gq_pop_max" = 0, "hispanic_population_min" = 0, "hispanic_population_max" = 0, "households_min" = 0, "households_max" = 0, "land_area_in_acres_min" = 0, "land_area_in_acres_max" = 0, "land_area_in_square_miles_min" = 0, "land_area_in_square_miles_max" = 0, "married_w_o_kids_min" = 0, "married_w_o_kids_max" = 0, "married_w_related_kids_min" = 0, "married_w_related_kids_max" = 0, "neighborhood_1" = , "neighborhood_2_min" = 0, "neighborhood_2_max" = 0, "nonfamily_hhs_min" = 0, "nonfamily_hhs_max" = 0, "other_population_min" = 0, "other_population_max" = 0, "owner_occupied_units_min" = 0, "owner_occupied_units_max" = 0, "persons_in_dorms_min" = 0, "persons_in_dorms_max" = 0, "persons_per_acre_min" = 0, "persons_per_acre_max" = 0, "persons_per_hh_min" = 0, "persons_per_hh_max" = 0, "renter_occupied_units_min" = 0, "renter_occupied_units_max" = 0, "roommates_min" = 0, "roommates_max" = 0, "s_women_w_related_kids_min" = 0, "s_women_w_related_kids_max" = 0, "single_person_hh_min" = 0, "single_person_hh_max" = 0, "total_population_min" = 0, "total_population_max" = 0, "total_units_min" = 0, "total_units_max" = 0, "under_5_min" = 0, "under_5_max" = 0, "unit_density_min" = 0, "unit_density_max" = 0, "unmarried_men_w_o_kids_min" = 0, "unmarried_men_w_o_kids_max" = 0, "unmarried_women_w_o_kids_min" = 0, "unmarried_women_w_o_kids_max" = 0, "vacant_units_min" = 0, "vacant_units_max" = 0, "white_population_min" = 0, "white_population_max" = 0 }), :content_type => :json
puts JSON.load(response)
library('blockspring')
library('rjson')
print(blockspringRunParsed("09e7f5ce706527b78572ac77203a3010", list( "_18_24_min" = 0, "_18_24_max" = 0, "_25_34_min" = 0, "_25_34_max" = 0, "_35_44_min" = 0, "_35_44_max" = 0, "_45_54_min" = 0, "_45_54_max" = 0, "_55_64_min" = 0, "_55_64_max" = 0, "_5_to_17_min" = 0, "_5_to_17_max" = 0, "_65_min" = 0, "_65_max" = 0, "asian_population_min" = 0, "asian_population_max" = 0, "black_population_min" = 0, "black_population_max" = 0, "centerpoint_x_min" = 0, "centerpoint_x_max" = 0, "centerpoint_y_min" = 0, "centerpoint_y_max" = 0, "families_w_o_kids_min" = 0, "families_w_o_kids_max" = 0, "families_w_related_kids_min" = 0, "families_w_related_kids_max" = 0, "gq_pop_min" = 0, "gq_pop_max" = 0, "hispanic_population_min" = 0, "hispanic_population_max" = 0, "households_min" = 0, "households_max" = 0, "land_area_in_acres_min" = 0, "land_area_in_acres_max" = 0, "land_area_in_square_miles_min" = 0, "land_area_in_square_miles_max" = 0, "married_w_o_kids_min" = 0, "married_w_o_kids_max" = 0, "married_w_related_kids_min" = 0, "married_w_related_kids_max" = 0, "neighborhood_1" = , "neighborhood_2_min" = 0, "neighborhood_2_max" = 0, "nonfamily_hhs_min" = 0, "nonfamily_hhs_max" = 0, "other_population_min" = 0, "other_population_max" = 0, "owner_occupied_units_min" = 0, "owner_occupied_units_max" = 0, "persons_in_dorms_min" = 0, "persons_in_dorms_max" = 0, "persons_per_acre_min" = 0, "persons_per_acre_max" = 0, "persons_per_hh_min" = 0, "persons_per_hh_max" = 0, "renter_occupied_units_min" = 0, "renter_occupied_units_max" = 0, "roommates_min" = 0, "roommates_max" = 0, "s_women_w_related_kids_min" = 0, "s_women_w_related_kids_max" = 0, "single_person_hh_min" = 0, "single_person_hh_max" = 0, "total_population_min" = 0, "total_population_max" = 0, "total_units_min" = 0, "total_units_max" = 0, "under_5_min" = 0, "under_5_max" = 0, "unit_density_min" = 0, "unit_density_max" = 0, "unmarried_men_w_o_kids_min" = 0, "unmarried_men_w_o_kids_max" = 0, "unmarried_women_w_o_kids_min" = 0, "unmarried_women_w_o_kids_max" = 0, "vacant_units_min" = 0, "vacant_units_max" = 0, "white_population_min" = 0, "white_population_max" = 0 ))$params)
<script src="https://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="https://cdn.blockspring.com/blockspring.js"></script>
<script>
blockspring.runParsed("09e7f5ce706527b78572ac77203a3010", { "_18_24_min": 0, "_18_24_max": 0, "_25_34_min": 0, "_25_34_max": 0, "_35_44_min": 0, "_35_44_max": 0, "_45_54_min": 0, "_45_54_max": 0, "_55_64_min": 0, "_55_64_max": 0, "_5_to_17_min": 0, "_5_to_17_max": 0, "_65_min": 0, "_65_max": 0, "asian_population_min": 0, "asian_population_max": 0, "black_population_min": 0, "black_population_max": 0, "centerpoint_x_min": 0, "centerpoint_x_max": 0, "centerpoint_y_min": 0, "centerpoint_y_max": 0, "families_w_o_kids_min": 0, "families_w_o_kids_max": 0, "families_w_related_kids_min": 0, "families_w_related_kids_max": 0, "gq_pop_min": 0, "gq_pop_max": 0, "hispanic_population_min": 0, "hispanic_population_max": 0, "households_min": 0, "households_max": 0, "land_area_in_acres_min": 0, "land_area_in_acres_max": 0, "land_area_in_square_miles_min": 0, "land_area_in_square_miles_max": 0, "married_w_o_kids_min": 0, "married_w_o_kids_max": 0, "married_w_related_kids_min": 0, "married_w_related_kids_max": 0, "neighborhood_1": , "neighborhood_2_min": 0, "neighborhood_2_max": 0, "nonfamily_hhs_min": 0, "nonfamily_hhs_max": 0, "other_population_min": 0, "other_population_max": 0, "owner_occupied_units_min": 0, "owner_occupied_units_max": 0, "persons_in_dorms_min": 0, "persons_in_dorms_max": 0, "persons_per_acre_min": 0, "persons_per_acre_max": 0, "persons_per_hh_min": 0, "persons_per_hh_max": 0, "renter_occupied_units_min": 0, "renter_occupied_units_max": 0, "roommates_min": 0, "roommates_max": 0, "s_women_w_related_kids_min": 0, "s_women_w_related_kids_max": 0, "single_person_hh_min": 0, "single_person_hh_max": 0, "total_population_min": 0, "total_population_max": 0, "total_units_min": 0, "total_units_max": 0, "under_5_min": 0, "under_5_max": 0, "unit_density_min": 0, "unit_density_max": 0, "unmarried_men_w_o_kids_min": 0, "unmarried_men_w_o_kids_max": 0, "unmarried_women_w_o_kids_min": 0, "unmarried_women_w_o_kids_max": 0, "vacant_units_min": 0, "vacant_units_max": 0, "white_population_min": 0, "white_population_max": 0}, { "api_key": "" }, function(res){
console.log(res.params);
})
</script>
https://run.blockspring.com/api_v2/blocks/09e7f5ce706527b78572ac77203a3010?
Finish the setup steps to use 2010 Census Data by Neighborhood - Raw Data in Code.