lookup_postal_code
Resolve a postal or ZIP code to its city, state/region, and coordinates. Provide a 2-letter country code and postal code to get matching place names.
Instructions
Resolve a postal/ZIP code to its place name(s), state/region, and
coordinates. country_code is a 2-letter ISO code (US, GB, DE, ...);
postal_code format varies by country (e.g. "90210" for the US,
"SW1A 1AA" style outward codes for the UK). Use for "what city is ZIP
90210 in", "where is postal code X in country Y", or any question
that needs a place name/region/lat-lon from a postal code -- not for
the reverse (place name to postal code) or for full street address
lookup. Some postal codes span multiple places, in which case all of
them are returned. Returns an error dict (never raises) if the code
isn't recognized for that country.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postal_code | Yes | ||
| country_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||