List or find wards
List wards, or find the ward for a location. With lat and lon, returns the one ward containing that point (or none).
GET https://www.chicagopolitics.org/api/v1/wards
Authorizations
| Header | Value |
|---|---|
Authorization | Bearer <key>. Get a key; see authentication. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
lat | number | Latitude (WGS84) | |
lon | number | Longitude (WGS84) |
Response
200 Wards: a list in data, with meta and links (see pagination).
| Field | Type | Description |
|---|---|---|
ward | integer | |
member | object | |
boundary | object | GeoJSON geometry (only with include=boundary) |
links | object |
Example request
curl "https://www.chicagopolitics.org/api/v1/wards" \
-H "Authorization: Bearer $CHICAGO_POLITICS_KEY"
Errors: 400, 401, 429 (see errors).