Vote up to Idea How to use GNIS codes Vote down to Idea How to use GNIS codes

Rank140

Idea#165

This idea is active.
Census Geography »

How to use GNIS codes

Hi everyone,

Since some fips code change between to census campaign due to renaming or stuff like that, I was thinking of trying to use GNIS codes (hoping they don't change as much). It says here http://www.census.gov/developers/geo/ : 'Every query must include a geography, and this API supports both FIPS and GNIS geography codes.'. However I was not able to find an example of url that use it so I don't know what the 'for' argument should be. Could somebody give me an idea of what it looks like ?

Thanks in advance

Comment

Submitted by ablaise 7 months ago

Events

  1. The idea was posted
    7 months ago

Comments (2)

  1. Ablaise,

    Unfortunately, not all datasets have GNIS geography IDs. You can find documentation for those that do at www.census.gov/developers/ under the "Examples and Supported Geography" for the particular dataset.

    For example, the geography documentation for 2010 SF1 at

    http://api.census.gov/data/2010/sf1/geo.html

    has the following example:

    http://api.census.gov/data/2010/sf1?get=P0010001&gnis=state:01779775

    Dave

    7 months ago
  2. Hi All,

    BTW, the GNIS codes can be found here:http://geonames.usgs.gov/domestic/index.html

    1 month ago