anyone know of where I might get information that's in the public domain related to major cities/states in the U.S.? facts, statistics or other.

Something I could place on my site, for all the states in the US.

Preferable in a database format, if this isn't asking too much it would be great.

    If you're looking for just city names and zip codes for every state in the US, the postal service has some of this data available and so does the census burea. I know I found a list of all cities in all states, but it had funky zip codes because the zip codes the census burea uses do not correspond to the regular USPS zip codes.

    Search Google, IM me on AIM if you can't find those, I must have them somewhere still: superwormy

      • Thanks Superwormy -

      Looking for content as well.

        Quick CLI hack, could be modded for Apache/web:

        <?php
        
        $zip=$argv[1];
        
        $data=explode("\n",file_get_contents("http://www.city-data.com/zips/$zip.html"));
        
        foreach ($data as $d) {
           if (strstr($d,"City:")) {
              echo strip_tags($d);
           }
        }
        
        ?>
          BEFOR wrote:

          - Thanks Superwormy -

          Looking for content as well.

          Erm, just thought about what you meant there. I guess you could extract some other data as well from the site I mentioned, but that's really not what you're looking for, I suppose.....

            I would be very surprised if there aren't such resources provided by the U.S. Government somewhere. Let's have a look.... First hiccup here is that I'm not a U.S. citizen, so I'm not that familiar with the machinery of the thing. Is there a Department of Commerce? Check Google - yup, and it even has a sensible URL that I should have been able to guess myself.
            Huh, it's running a bit slow; tell you what, the Census Bureau's listed here, let's have a look at that.

            Hmmm.... there's a link on the front page of that to quickfacts.census.gov. Pick a state and it comes back with a bit of guff about it - oo, and it offers to drill down by city. Obviously, stuff gathered from census results. Is that the sort of "content" you're after? Hm. One of the links on the dataset collection is to something called "fedstats.gov". More stuff there, I guess. Meanwhile, back at census.gov, there's a link to "data tools" including mapping and direct file listings.

            Ain't the Net a wonderful resource?

              Ain't the Net a wonderful resource?

              I'll second that. A lot of this is the type of stuff I'm after.

              Notice a lot of this is from the 90's though.

              I'm wondering about whether the table downloads at quickfacts.census.gov

              are in the public domain. Use'm freely?

                Write a Reply...