zip_crosswalk
Map a 5-digit ZIP code to its county, tract, CBSA, or congressional district using HUD-USPS crosswalk data. Returns the residential address share for each matching geography.
Instructions
Map a 5-digit ZIP to the county, tract, CBSA (metro), or congressional district it falls in, using the HUD-USPS crosswalk. Returns each matching geography with its residential-address share (res_ratio); the highest-share county is the one to resolve into an entityid via list_counties.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target geography: county | tract | cbsa | cd (default county) | |
| zip | Yes | 5-digit ZIP code | |
| year | No | Crosswalk year; default is the latest |