Datatypes › Geographic identifiers › 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
85/100 · missing: mapping (Wikidata, Schema.org, ...), translation
Metacrafter rules
1 rule (0 by field name, 1 by value)
Supported by tools
metacrafter

Regular expression

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

Python re syntax.

Test a value

Examples

ValueDescription
UYAR Artigas, Uruguay (ISO 3166-2 UY-AR)
UYMO Montevideo, Uruguay (ISO 3166-2 UY-MO)
UY-AR invalid The hyphenated form, covered by iso3166code

Sources

Use this record