Compare local government data with US Census ACS indicators.
var sdk = new CitySDK(); var arcgis = sdk.modules.arcgis; var census = sdk.modules.census; service = { "url": "http://maps2.dcgis.dc.gov/dcgis/rest/services/FEEDS/CDW_Feeds/MapServer/0", "where": [ "LICENSESTATUS='ACTIVE'", "ANC='6A'" ] }; arcgis.APIRequest(service, function(response) { $.map(response.features, function(feature,i) { var request = { "lat": feature.geometry.y, "lng": feature.geometry.x, "level": "tract", "container": "place", "variables": [ "income" ] }; var callback = function(response) { $('#output-table tr:last').after( '' ); }; census.APIRequest(request, callback); }); }); ' + feature.attributes[response.displayFieldName] + ' ' + '' + response.data[0].income +'