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)
hascbynamefield, common/admin_areas.yamlhascvaluedata, common/admin_areas.yaml
- Supported by tools
- metacrafter
Regular expression
^[A-Z]{2}(?:\.[A-Z]{2}){0,2}$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| US.CA.LO | Los Angeles County |
| FR.NC | Hauts-de-France |
| FR.NC.NO | Nord |
Sources
- wikipedia: Hierarchical administrative subdivision codes (en.wikipedia.org)
- doc: statoids.com/ihasc.html
- wikidata: wikidata.org/wiki/Property:P8119
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/hasc - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/geo/hasc.yamlon GitHub