Skip to content

Downloads and converts US Census TIGER data representing all boundaries in the United States

License

Notifications You must be signed in to change notification settings

staeco/census-boundaries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

census-boundaries NPM version Downloads

Downloads and converts US Census TIGER data representing all boundaries in the United States.

You define the processing logic, so you can put it into any DB you like.

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.

Install

npm install census-boundaries

Example

import census from 'census-boundaries'

census({
  // this function is called every time a record is parsed
  onBoundary: (objectType, doc, cb) => {
    cb() // make sure to call the cb
  },

  // this function is called when all records are parsed and processed
  onFinish: (err) => {

  }
})

About

Downloads and converts US Census TIGER data representing all boundaries in the United States

Resources

License

Stars

Watchers

Forks

Packages

No packages published