Resolve a Spanish place
resolve_placeFind 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). Districts and tracts are shown with the OpenStreetMap neighbourhood names inside them ('Valladolid distrito 10 (Parquesol, Girón, La Victoria)'), and a neighbourhood name ('Parquesol, Valladolid', 'Gràcia, Barcelona') returns the INE district that contains it.
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. |