{
  "id": "gb_scotland_settlement_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Scottish settlement code (GSS)",
  "doc": "GSS code of a settlement of the National Records of Scotland, entity code S20. A settlement is a built-up area of neighbouring postcodes of high density with 500 or more residents; it may hold several localities.",
  "parent": "ukgsscode",
  "is_pii": false,
  "categories": [
    "geo"
  ],
  "country": [
    "GB"
  ],
  "langs": [
    "en"
  ],
  "classification": "categorical",
  "regexp": "^S20\\d{6}$",
  "examples": [
    {
      "value": "S20001477",
      "description": "A settlement of the Stirling council area",
      "valid": true
    },
    {
      "value": "S20001992",
      "description": "A settlement of the Stirling council area",
      "valid": true
    },
    {
      "value": "S19001277",
      "description": "A locality code (S19)",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.ons.gov.uk/methodology/geography/geographicalproducts/namescodesandlookups/codehistorydatabasechd"
    },
    {
      "type": "doc",
      "url": "https://www.nrscotland.gov.uk/publications/population-estimates-for-settlements-and-localities-in-scotland-mid-2020/"
    }
  ],
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "gbscotlandsettlementcodevalue",
        "type": "data",
        "match": "regex",
        "file": "gb/gb_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 85,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/GB/geo/gb_scotland_settlement_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/GB/geo/gb_scotland_settlement_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/GB/geo/gb_scotland_settlement_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/gb_scotland_settlement_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/gb_scotland_settlement_code.json"
  }
}