Last active
February 20, 2018 01:41
-
-
Save sethvincent/47a6b04de0758ed953389f869fd5c383 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ { type: 'Feature', | |
properties: | |
{ geoid: '14000US53033004600', | |
name: 'Census Tract 46, King, WA', | |
dataset: 'census-tracts' }, | |
geometry: { type: 'MultiPolygon', coordinates: [Array] } }, | |
{ type: 'Feature', | |
properties: { district: 6, dataset: 'city-council-districts' }, | |
geometry: { type: 'Polygon', coordinates: [Array] } }, | |
{ type: 'Feature', | |
geometry: { type: 'Polygon', coordinates: [Array] }, | |
properties: { dataset: 'city-limits' } }, | |
{ type: 'Feature', | |
id: 167, | |
properties: | |
{ STATEFP: '53', | |
CD114FP: '07', | |
AFFGEOID: '5001400US5307', | |
GEOID: '5307', | |
LSAD: 'C2', | |
CDSESSN: '114', | |
ALAND: 373031843, | |
AWATER: 340666726, | |
dataset: 'congress' }, | |
geometry: { type: 'Polygon', coordinates: [Array] } }, | |
{ type: 'Feature', | |
id: 'Seattle:Phinney Ridge:', | |
properties: | |
{ city: 'Seattle', | |
county: 'King', | |
nhood: 'Phinney Ridge', | |
nested: null, | |
area: 32123117.8789, | |
name: 'Phinney Ridge', | |
dataset: 'neighborhoods' }, | |
geometry: { type: 'Polygon', coordinates: [Array] } }, | |
{ type: 'Feature', | |
id: 1329, | |
properties: | |
{ osm_id: 8097142, | |
name: 'Woodland Park', | |
tags: '"ele"=>"85", "website"=>"http://www.seattle.gov/parks/park_detail.asp?ID=292", "gnis:created"=>"09/10/1979", "gnis:state_id"=>"53", "gnis:county_id"=>"033", "gnis:feature_id"=>"1531918"', | |
dataset: 'parks' }, | |
geometry: { type: 'MultiPolygon', coordinates: [Array] } }, | |
{ type: 'Feature', | |
id: 52, | |
properties: { ES_ZONE: 'West Woodland', dataset: 'sps-es' }, | |
geometry: { type: 'Polygon', coordinates: [Array] } }, | |
{ type: 'Feature', | |
id: 3, | |
properties: { HS_ZONE: 'Roosevelt', dataset: 'sps-hs' }, | |
geometry: { type: 'Polygon', coordinates: [Array] } }, | |
{ type: 'Feature', | |
id: 2, | |
properties: { MS_ZONE: 'Hamilton Int\'l', dataset: 'sps-ms' }, | |
geometry: { type: 'Polygon', coordinates: [Array] } }, | |
{ type: 'Feature', | |
id: 86, | |
properties: | |
{ STATEFP10: '53', | |
SLDUST12: '043', | |
GEOID10: '53043', | |
NAMELSAD10: 'State Legislative District 43', | |
LSAD10: 'LU', | |
LSY10: '2010', | |
MTFCC10: 'G5210', | |
FUNCSTAT10: 'N', | |
COUNTYNAME: 'King', | |
COUNTYFP: '033', | |
INTPTLON10: -122.3180329, | |
INTPTLAT10: 47.6459422, | |
GEOID102: '53043033', | |
ALANDM: 30183464, | |
AWATERM: 7830238, | |
ALANDMI: 11.654, | |
AWATERMI: 3.023, | |
POP10: 137252, | |
HHP10: 125554, | |
GQ10: 11698, | |
HU10: 78178, | |
OHU10: 70897, | |
POPWHITE: 107212, | |
POPBLACK: 4961, | |
POPAIAN: 860, | |
POPASIAN: 15187, | |
POPNHOPI: 290, | |
POPOTH: 2058, | |
POPTWO: 6684, | |
POPHISP: 7141, | |
POPWHITE2: 103055, | |
POPBLACK2: 4808, | |
POPAIAN2: 720, | |
POPASIAN2: 15057, | |
POPNHOPI2: 281, | |
POPOTH2: 361, | |
POPTWO2: 5829, | |
dataset: 'wa-legislature' }, | |
geometry: { type: 'Polygon', coordinates: [Array] } }, | |
{ type: 'Feature', | |
properties: | |
{ ZCTA5CE10: '98103', | |
AFFGEOID10: '8600000US98103', | |
GEOID10: '98103', | |
ALAND10: 12005478, | |
AWATER10: 1705646, | |
dataset: 'zip-codes' }, | |
geometry: { type: 'Polygon', coordinates: [Array] } }, | |
{ type: 'Feature', | |
geometry: { type: 'MultiPolygon', coordinates: [Array] }, | |
properties: { name: 'B3', dataset: 'spd-beats' } }, | |
{ type: 'Feature', | |
geometry: { type: 'MultiPolygon', coordinates: [Array] }, | |
properties: { name: 'N', dataset: 'spd-precincts' } }, | |
{ type: 'Feature', | |
properties: | |
{ NAME: 'PHINNEY RIDGE', | |
PRECINCT: 'N', | |
dataset: 'spd-mcpp-areas' }, | |
geometry: { type: 'Polygon', coordinates: [Array] } }, | |
{ type: 'Feature', | |
properties: | |
{ ZONEID: 0, | |
ZONING: 'SF 5000', | |
ZONELUT: 'SF 5000', | |
CONTRACT: null, | |
ORDINANCE: null, | |
EFFECTIVE: null, | |
HISTORIC: null, | |
PEDESTRIAN: null, | |
SHORELINE: null, | |
OVERLAY: null, | |
VILLAGE: null, | |
SPLIT1: 0, | |
LIGHTRAIL: null, | |
OLDZONEID: 0, | |
GEO: null, | |
SYMBOL: 82, | |
ZONELUT_DE: 'Residential Single Family 5000', | |
CLASS_DESC: 'Single Family', | |
MIO: null, | |
POLYAREA: 0, | |
POLYLEN: 0, | |
SHAPE_Leng: 0.19362087111, | |
SHAPE_Area: 0.000540913387187, | |
dataset: 'zoning' }, | |
geometry: { type: 'Polygon', coordinates: [Array] } } ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request') | |
request('https://boundaries-api.seattle.io/boundaries?long=-122.345002&lat=47.667044', function (err, res, body) { | |
if (err) return console.log(err) | |
console.log(res.statusCode) | |
console.log(JSON.parse(body).features) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment