Datatypes › iso3166code

ISO 3166-2 subdivision code without a separator

ID iso3166code_compact

Pattern of iso3166codeNot PIIcategoricalDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Code of a country subdivision from ISO 3166-2 written without the hyphen between the two-letter country code and the subdivision part, as in UYAR for Artigas, Uruguay (UY-AR). Uruguayan open data writes department codes this way. Any short upper-case code has the same shape, so the form alone does not identify the type; the column name and the country do.

Pattern of
identifier for a country subdivision per ISO 3166-2 iso3166code
Categories
Geographic identifiers
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
75/100 · missing: mapping (Wikidata, Schema.org, ...), translation, detector coverage
Metacrafter rules
no detection rule yet
Supported by tools
no tool record lists this type yet

Regular expression

^[A-Z]{2}[A-Z0-9]{1,3}$

Python re syntax.

Examples

ValueDescription
UYARArtigas, Uruguay (ISO 3166-2 UY-AR)
UYMOMontevideo, Uruguay (ISO 3166-2 UY-MO)
UY-AR invalidThe hyphenated form, covered by iso3166code

Sources

Use this record