Boundaries at a point
reverse_boundariesEvery administrative boundary containing a point, country first down to the smallest district. Use it to tag an address, a store or a delivery with its country, state, county and city in one call. Costs 1 unit. Returns ids you can pass to get_boundary. Answered from our own polygons in well under a second for any point on land or in territorial waters; postcode areas are not included in such an answer. Choose levels by kind: admin_level is OpenStreetMap's number and is null where we do not hold it. Only a point no division contains (open sea, Antarctica) is looked up in OpenStreetMap; when that is slow or down, the call answers the boundaries already cached with polygons, marked partial: true with retry_after and a hint (city, district or postcode may be missing), or 503 upstream_unavailable with retry_after when none is cached. A slow lookup keeps running, so the same call after retry_after is served complete from the cache. Needs an API key or a connected account.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lat": "<lat>",
"lon": "<lon>"
},
"name": "reverse_boundaries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Latitude, -90 to 90. | |
| lon | Yes | Longitude, -180 to 180. |