Resolve place
resolve_placeTurn a place name into the normalized entity Invokely uses, with its official codes (INE, Idescat, NUTS, ISO, US FIPS) and parent. Use it when a name is ambiguous or you want to confirm which entity a number refers to. The other tools accept names directly, so this call is optional. Ambiguous names prefer the municipality ("Barcelona" is the city); the province and region come back in alternatives. Ask for "provincia de Barcelona" to get the province. US states are regions, US counties are provinces and US cities (incorporated places of 10,000 or more residents, coded by 7-digit Census GEOID) are municipalities under their state. Names shared by several places of the same level, such as "Washington County" or "Springfield", return an AMBIGUOUS_PLACE error with suggestions; add the state ("Washington County, Oregon", "Springfield, IL") or pass a suggested id. A bare city name that is also a state or another place ("New York", "Washington") keeps meaning that place: ask for "New York City" or "Washington, UT". Example: {"name": "Mataró"}. Returns {match: {id, name, level, country, population, parent, codes}, alternatives: [{id, name, level}]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Place name or id. Examples: "Mataró", "Barcelona", "provincia de Barcelona", "Cataluña", "España", "Germany", "EU", "es-mun-08121", "08121" (INE code), "ES51" (NUTS), "Texas", "Travis County, Texas", "us-county-48453", "fips:48453" (US county FIPS), "Austin, TX", "us-place-4805000", "fips:4805000" (US city GEOID). | |
| level | No | Optional preferred level. | |
| country | No | Optional ISO 3166-1 alpha-2 code to disambiguate the place, for example "ES" or "US". |