Admin hierarchy lookup
admin_lookupFind the administrative divisions (neighborhood to country) that contain a given latitude and longitude, returning the chain from smallest to largest.
Instructions
Containing admin hierarchy for a point: neighborhood up to country.
Point-in-polygon against Overture's divisions theme. Returns {"chain":
[{"name": ..., "type": "locality", "id": ...}, ...]} smallest division
first (e.g. neighborhood, then locality, county, region, country) — an
empty chain means no division in the active dataset contains the
point, which is a valid answer for remote areas, not an error. Returns
a structured {"error": ...} if upstream is unavailable or the divisions
dataset is missing the geometry column this tool depends on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | ||
| lon | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||