Find Housing Area
find_housing_areaIdentify the correct Military Housing Area from a duty station or locality, returning example ZIP codes for BAH lookup. Resolve place names before checking rates to avoid wrong-area results.
Instructions
Find the Military Housing Area for a place, and ZIP codes to query it with.
Search for the duty station, not the member's home: BAH follows the permanent duty station, so a residence in a different housing area does not change the rate.
Use this before get_bah whenever you have a place name rather than a ZIP code, instead of supplying a ZIP from memory: a wrong ZIP resolves to some other real housing area and returns a confident rate for the wrong locality. Each result carries example ZIP codes to pass to get_bah.
Areas are named for localities, so a military installation matches only where the published name happens to include it - "Travis AFB" finds "VALLEJO/TRAVIS AFB, CA", but Redstone Arsenal is inside "HUNTSVILLE, AL". If a base name finds nothing, search the nearest city instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | BAH year. Defaults to the most recent loaded. | |
| limit | No | Maximum areas to return. | |
| query | Yes | A locality name ('San Diego'), an MHA code ('CA038'), or a ZIP code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||