Geography tool

PublicView as Markdown

geo_resolve

Resolve a place or code to stable canonical geography IDs.

Description

Resolve a place or code to stable canonical geography IDs.

The shared envelope echoes the query and optional filters in data. Each bounded relevance match carries geography_id, level, official code/name, country/state, match score/reason, bottom-up containment parents, official outgoing crosswalks, row as_of, source, and any required attribution. AU entities carry ABS ASGS CC BY 4.0 attribution; US entities identify Census/OMB provenance. pagination is null because this is a nearest-N relevance result; the limit is 1–50.

Use this first when you have a place rather than an ID, then call geo_get, geo_contains, or geo_crosswalk. A conflicting level and country returns bad_parameter. Example: geo_resolve(query="Sydney", country="AU", limit=10).

Parameters

Input schema advertised to MCP clients and mirrored by the REST query string.

NameTypeRequiredDefaultConstraintsDescription
querystringYesFree-text place, alias, postal abbreviation, or official code, such as 'Sydney', 'NSW', 'Harris County, TX', '48201', or '12420'.
level"nation" | "state" | "county" | "cbsa" | "zip3" | "zcta" | "au_state" | "au_gccsa" | "au_sa4" | "au_sa3" | "au_lga" | nullNonullOptional canonical geography level filter.
country"US" | "AU" | nullNonullOptional country filter: US or AU.
limitintegerNo10min 1, max 50Ranked matches to return (1–50).

Provenance

Sources behind every value this tool returns.

Dataset registry: geo_au_asgs, geo_us_reference