Datatypes › Geographic identifiers

HASC code (Hierarchical administrative subdivision code)

ID hasc

DatatypeNot 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 in the Statoids system: the ISO 3166-1 alpha-2 country code followed by two-letter codes of the first and second level divisions, separated by dots.

Categories
Geographic identifiers
Countries
Global (not tied to a country)
Languages
Common to most languages
Wikidata
P8119
Quality
90/100 · missing: negative example, translation
Metacrafter rules
2 rules (1 by field name, 1 by value)
Supported by tools
metacrafter

Regular expression

^[A-Z]{2}(?:\.[A-Z]{2}){0,2}$

Python re syntax.

Test a value

Examples

ValueDescription
US.CA.LO Los Angeles County
FR.NC Hauts-de-France
FR.NC.NO Nord

Sources

Use this record