Giter Club home page Giter Club logo

fips-to-gnis's Introduction

FIPS to GNIS Conversion

A list of every FIPS code (Census Code) and its corresponding GNIS ID. This is nothing but a long CSV file, listing only the IDs. This includes every FIPS code—not every GNIS ID—and is derived from NationalFedCodes_20140601.zip at the U.S. Board of Geographic Names' website. It's simply that file, with all data stripped out other than our two fields.

Query the API

This data is available via an API, in the format https://fipsgnis.com/FIPSCODE.json, e.g. a query for for New York, New York, to https://fipsgnis.com/410494.json, returns the following:

{
  "fips": "410494",
  "gnis": "36061"
}

The API consists of static files hosted on S3, provided via CloudFront, so there's no need to be gentle—query all you need, at whatever rate you need. But if you prefer something local and faster, you can generate your own copy.

It's not yet possible to query by GNIS ID, only by FIPS code. But that's planned.

Generate Your Own CSV

You can generate your own, more up-to-date version of this.

  1. Clone or download this repository.
  2. Edit the included run.sh script to remove everything after csv.sh.
  3. Run run.sh (./run.sh).

Generate Your Own API

Make your own API.

  1. Clone or download this repository.
  2. Have awscli installed and configured on your system (to write files to S3). Alternately, edit run.sh to erase everything after api.sh and upload the resulting files wherever you care to host your API.
  3. Run run.sh (./run.sh).

fips-to-gnis's People

Contributors

waldoj avatar jungshadow avatar

Watchers

James Cloos avatar

fips-to-gnis's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.