Search boundaries
search_boundariesFinds administrative boundaries (countries, states, counties, cities, districts) and postcode areas by name, in any language. Filter by country, kind or admin_level; bias toward a point with near. Free and public. Returns candidates with id, kind, admin_level, country, parents, bbox, centroid and population, but no polygon: pass the id to get_boundary for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | A place name, e.g. "Berlin", "Alameda County", "75011". | |
| kind | No | Only this kind (normalized across countries): country, state, region, province, county, district, municipality, city, borough, ward, neighbourhood, postal_code. | |
| near | No | lat,lon to prefer results near, e.g. 37.77,-122.42. | |
| limit | No | At most this many results (1–40, default 10). | |
| country | No | Limit to countries: ISO 3166-1 alpha-2, comma-separated (e.g. US or de,at,ch). | |
| admin_level | No | Only this OSM admin_level (2 = country; meaning varies by country below that). |