geojson for various boundaries in Seattle
JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin add spd-mcpp-areas.geojson Feb 17, 2016
data Adding Urban Villages for HALA groups Apr 13, 2016
source
.gitignore ignore .dat folder Feb 28, 2017
README.md formatting readme Feb 28, 2017
datapackage.json
example.js refactor module to check if point is inside boundaries, clean neighbo… Oct 17, 2015
index.js v5.0.0 – allow filtering by dataset name Apr 20, 2016
package.json 5.0.3 Feb 28, 2017
test.js v5.0.0 – allow filtering by dataset name Apr 20, 2016

README.md

seattle-boundaries-data

GeoJSON for various boundaries related to Seattle.

Boundaries

How to access the data

Web map

At boundaries.seattle.io you can view each boundary on a map by entering a location.

JSON API

Request the data via a JSON API by using boundaries-api.seattle.io.

Example request:

GET https://boundaries-api.seattle.io/boundaries?long=-122.345002&lat=47.667044

npm

This data is available via npm to use as a JavaScript/Node.js module.

Install:

npm install --save seattle-boundaries-data

Usage:

var boundaries = require('seattle-boundaries-data')

var matches = boundaries({
  long: -122.345002,
  lat: 47.667044,
  dataset: dataset
})

Returns a FeatureCollection where all the features are a match for the point. The slug of the dataset that the feature is from is stored in the properties of the feature with the key dataset.

Dat

Dat is a decentralized data-sharing tool. There are a few ways you might get this data using Dat.

Dat command-line tool

npm i -g dat
dat clone dat://a20663417ea679e7b9230ffba08f1da65072d5790112e20c3bb8bb24df46e25a seattle-boundaries-data

Dat Desktop

The desktop app lets you download and share files via Dat.

  • Install the Dat Desktop app
  • Import this dat: dat://a20663417ea679e7b9230ffba08f1da65072d5790112e20c3bb8bb24df46e25a
  • View the downloaded files

Beaker Browser

Beaker is a new browser with support for p2p file sharing.

  • Install Beaker
  • visit dat://a20663417ea679e7b9230ffba08f1da65072d5790112e20c3bb8bb24df46e25a as a url in the Beaker

Contributing

  • Fork the repo
  • Create a branch for your changes
  • Submit pull request
  • When possible, we attempt to pull data from City of Seattle using Node.js but we are open to other solutions as well.

TODO

See the issues queue for todos.

License

CC0 1.0 Universal (CC0 1.0)