{"id":16649952,"url":"https://github.com/datamine/cbsa-ruca-lookup","last_synced_at":"2026-04-25T10:34:13.940Z","repository":{"id":86599542,"uuid":"65488048","full_name":"Datamine/CBSA-RUCA-Lookup","owner":"Datamine","description":"Browser application for looking up CBSA and RUCA codes","archived":false,"fork":false,"pushed_at":"2017-02-09T06:56:23.000Z","size":6720,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T21:54:17.168Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/Datamine.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}},"created_at":"2016-08-11T17:23:12.000Z","updated_at":"2016-08-14T01:16:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed0590d5-26f7-46e3-8b3c-b8b02c53ccab","html_url":"https://github.com/Datamine/CBSA-RUCA-Lookup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Datamine/CBSA-RUCA-Lookup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamine%2FCBSA-RUCA-Lookup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamine%2FCBSA-RUCA-Lookup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamine%2FCBSA-RUCA-Lookup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamine%2FCBSA-RUCA-Lookup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Datamine","download_url":"https://codeload.github.com/Datamine/CBSA-RUCA-Lookup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamine%2FCBSA-RUCA-Lookup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32259472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2024-10-12T09:14:24.139Z","updated_at":"2026-04-25T10:34:13.918Z","avatar_url":"https://github.com/Datamine.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CBSA-RUCA-Lookup\nBrowser application for looking up CBSA and RUCA codes\n\n## CBSA\n\nMaps ZIP-5 codes to CBSA codes. This mapping was obtained from the ``2007 ZIP code to 2006 CBSA`` mapping [published by the census](http://www.census.gov/population/metro/data/other.html).\nThere is good documentation available on that site. Note that we use a subset of the spreadsheet published there; the iPython Notebook `Make-CBSA-Spreadsheet.ipynb` was used for the conversion.\n\n## RUCA\n\nMaps FIPS 11-digit codes to RUCA secondary codes. The mapping was obtained from the ``2010 Rural Urban Commuter Area Codes`` \nmapping [published by the USDA](http://www.ers.usda.gov/data-products/rural-urban-commuting-area-codes.aspx).\nThe dataset downloadable there contains more helpful information. Again we use just a subset of that dataset; the iPython \nNotebook `Make-RUCA-Spreadsheet.ipynb` was used for the conversion. Note that it reads in a `.csv`, not a `.xlsx` as available \non the website. Parsing the Excel File with Pandas leads to problems, so I recommend saving a copy of the Excel File as a `.csv` and then working with that.\n\nNote that there are different types of FIPS-codes, e.g. 15-digit vs. 11-digit. The only difference is that the final four digits of \nthe 15-digit code are [block group and block numbers](http://www.geolytics.com/USCensus,Geocode,Data,Geography,Products.asp). So \nwe can query the [FCC's API](https://www.fcc.gov/general/census-block-conversions-api) for 15-digit FIPS codes and simply truncate \nthe final four. See [here](https://www.policymap.com/blog/2012/08/tips-on-fips-a-quick-guide-to-geographic-place-codes-part-iii/) for another short introduction to FIPS codes.\n\nThe FIPS -\u003e RUCA mappings are definitely correct. The Address -\u003e FIPS mappings are subject to greater error. If in doubt, use the \nmapping tool provided by the government [here](https://geomap.ffiec.gov/FFIECGeocMap/GeocodeMap1.aspx) to double-check your results.\n\n## Structure\n\nThe index.html and functions.js are deployed externally, not to Heroku. We query the Heroku server via AJAX in `getcbsa.js`. Note that this function has `url: localhost:5000`. \nThis is for testing purposes. If you deploy this, you'll want to swap the `url` parameter out for the url of your heroku instance. \n\n## Use\n\nYou can access the tool at johnloeber.com/geolookup.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatamine%2Fcbsa-ruca-lookup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatamine%2Fcbsa-ruca-lookup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatamine%2Fcbsa-ruca-lookup/lists"}