Resolve a Spanish place
resolve_placeConvert Spanish place names into INE codes and geographic levels (region, province, municipality, district, tract), returning best matches and alternatives for accurate data lookup.
Instructions
Find the INE code and level (CCAA, province, municipality, district, tract) for a place in Spain.
Use this first when a question names a place. Returns the best match first, with
alternatives (e.g. 'Valencia' is both a city and a province). Handles accents, Basque,
Catalan and Galician names, and common English names (Seville, Catalonia).
Neighbourhood names are not supported; use districts or tracts from `demographics`
or `income` with `sub_areas`.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Place name or INE code, e.g. 'A Coruña', 'Mérida, Badajoz', '08'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| checks | No | ||
| sources | Yes | ||
| confidence | Yes | Lowest confidence across inputs: high, medium or low. Never state a conclusion more strongly than this. |