{
  "id": "se_nyko",
  "kind": "datatype",
  "status": "draft",
  "name": "Swedish key code area (NYKO)",
  "doc": "Code of a sub-area of a Swedish municipality in the key code system (nyckelkodsystemet, NYKO) of Statistics Sweden. Each municipality divides itself into areas on up to six levels and the code grows with the level; the finest level has six digits, as in 010104. Statistics Sweden delivers population statistics by these areas, and municipal open data carries the code in columns named nyckelkod or nyko.",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "SE"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^\\d{1,6}$",
  "examples": [
    {
      "value": "010104",
      "description": "a level 6 area of Umeå",
      "valid": true
    },
    {
      "value": "174908",
      "description": "a level 6 area of Umeå",
      "valid": true
    },
    {
      "value": "0101045",
      "description": "seven digits",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.scb.se/vara-tjanster/bestall-data-och-statistik/regionala-statistikprodukter/statistikpaket/nyckelkodsystemet-nyko/"
    }
  ],
  "translations": {
    "sv": {
      "name": "Nyckelkod (NYKO)"
    },
    "ru": {
      "name": "Код статистического района муниципалитета Швеции (NYKO)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "senykobyname",
        "type": "field",
        "match": "regex",
        "file": "se/se_codes.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/SE/geo/se_nyko.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/SE/geo/se_nyko.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/SE/geo/se_nyko.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/se_nyko",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/se_nyko.json"
  }
}