Downloads, converts, and indexes US Census TIGER data representing all boundaries in the United States to RethinkDB.
By default, this imports the boundaries of every state and incorporated place (~30K boundaries). Takes quite a bit of time depending on your internet speed.
Basically makes it easy to apply a city/state/whatever geo-lens on top of arbitrary data, making queries like these simple:
- What state and city is this location in?
- What states and cities does this line pass through?
- Get all documents that have a line passing through New York, Boston, and Providence
- Subscribe to all new documents created in Boston, MA
- Get all documents created within New York City
- Get all documents created outside of a city
Still a work in progress, more functionality and power being added soon!
Install
npm install rethinkdb-boundaries -g
CLI
$ rethinkdb-boundaries --helpUsage $ rethinkdb-boundaries Options --host Set the RethinkDB host name --port Set the RethinkDB port --db Set the database name --table Set the table name Examples $ rethinkdb-boundaries --db my_app $ rethinkdb-boundaries --db my_appEstablishing connections: -- US Census Bureau @ ftp2.census.gov -- RethinkDB @ my_appProcessing 1 boundary file
TODO:
Want to help out? Here's what I'm thinking about adding:
- Query sugar
- Example: Replace
r.table('geo').filter({type: 'place', name: 'New York City'})
withgeo.place('New York City')
in queries
- Example: Replace
- Options to import zip codes and more data
- Store more city meta-information from census data
- Sample queries for docs!