{"id":28201137,"url":"https://github.com/superstrong/us-rural-urban-codes","last_synced_at":"2025-06-28T17:37:32.881Z","repository":{"id":146868029,"uuid":"366054644","full_name":"superstrong/us-rural-urban-codes","owner":"superstrong","description":"US Zip Codes with Rural-Urban Continuum Codes","archived":false,"fork":false,"pushed_at":"2021-05-11T02:26:31.000Z","size":5402,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-12T18:31:52.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superstrong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-05-10T13:36:11.000Z","updated_at":"2021-05-11T02:26:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"72587361-4123-49a6-b33a-b72e4a79dda8","html_url":"https://github.com/superstrong/us-rural-urban-codes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/superstrong/us-rural-urban-codes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superstrong%2Fus-rural-urban-codes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superstrong%2Fus-rural-urban-codes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superstrong%2Fus-rural-urban-codes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superstrong%2Fus-rural-urban-codes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superstrong","download_url":"https://codeload.github.com/superstrong/us-rural-urban-codes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superstrong%2Fus-rural-urban-codes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262470903,"owners_count":23316578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-16T22:16:05.112Z","updated_at":"2025-06-28T17:37:32.876Z","avatar_url":"https://github.com/superstrong.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# US Zip Codes with Rural-Urban Continuum Codes\n\n`zips_with_codes.py` produces two files:\n- `zip_codes_with_details.json` consisting of zip codes with their associated details (city, state, county, Rural-Urban code)\n- `cities_to_zip_codes.json` consisting of every known city in the format (\"st-city\") and a list of known zip codes.\n\nMany zip codes have multiple entries for city, st, and/or county. As a result, the entries are lists of values.\n\nFor each zip code:\n* [city]\n* [state]\n* [st (abbreviation)]\n* [st-city]\n* [county]\n* rural-urban (\"RuUr\") continuum code -- the lowest known value for this zip code (i.e., when there is conflict, the larger metro area designation is used)\n\nWhere a RuUr code is not available for a given zip code from a source file, the following fallback method is used:\n- Find its county and find known RuUr code(s), the select the min (i.e., the largest area)\n- TOD: Find city names associated with the zip code, find county/counties associated, and take the min of RuUr code.\n\n## Rural-Urban Continuum Code Definitions for 2003 and 2013\n\nMetro counties:\n\n* 1 (Counties in metro areas of 1 million population or more)\n* 2 (Counties in metro areas of 250,000 to 1 million population)\n* 3 (Counties in metro areas of fewer than 250,000 population)\n\nNonmetro counties:\n\n* 4 (Urban population of 20,000 or more, adjacent to a metro area)\n* 5 (Urban population of 20,000 or more, not adjacent to a metro area)\n* 6 (Urban population of 2,500 to 19,999, adjacent to a metro area)\n* 7 (Urban population of 2,500 to 19,999, not adjacent to a metro area)\n* 8 (Completely rural or less than 2,500 urban population, adjacent to a metro area)\n* 9 (Completely rural or less than 2,500 urban population, not adjacent to a metro area)\n* 88 (Unknown-Alaska/Hawaii State/not official USDA Rural-Urban Continuum code)\n* 99 (Unknown/not official USDA Rural-Urban Continuum code)\n\nsources:\n* https://www.quine.org/zip-all-01000.html\n* https://www.psc.isr.umich.edu/dis/data/kb/answer/1102\n* https://seer.cancer.gov/seerstat/variables/countyattribs/ruralurban.html\n* https://www.ers.usda.gov/data-products/rural-urban-continuum-codes.aspx","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperstrong%2Fus-rural-urban-codes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperstrong%2Fus-rural-urban-codes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperstrong%2Fus-rural-urban-codes/lists"}