Electoral districts (and boundaries)
list_districtsDistrict metadata by state and type (GET /v1/districts): congressional, state senate, state house. Pass district_id with boundary:true to get the polygon as GeoJSON (GET /v1/districts/{id}/boundary) — it is large, so set simplify (degrees, e.g. 0.01) to shrink it. Match districts NUMERICALLY (district_number), never by label text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | congressional | sldu (state senate/upper) | sldl (state house/lower) | |
| limit | No | ||
| state | No | Postal code. | |
| offset | No | ||
| boundary | No | true = return the GeoJSON polygon for district_id. | |
| simplify | No | Simplification tolerance in degrees. | |
| district_id | No | A district id from a previous list call (for boundary:true). |