{
  "id": "gb_postcode_sector",
  "kind": "datatype",
  "status": "draft",
  "name": "UK postcode sector",
  "doc": "Postcode sector of a UK postcode: the outward code, a space and the first digit of the inward code (LS27 0). Data published for small areas without full postcodes gives it.",
  "parent": "postindex",
  "is_pii": false,
  "categories": [
    "geo"
  ],
  "country": [
    "GB"
  ],
  "langs": [
    "en"
  ],
  "classification": "categorical",
  "regexp": "^[A-Z]{1,2}\\d[A-Z\\d]? \\d$",
  "examples": [
    {
      "value": "LS27 0",
      "description": "Leeds",
      "valid": true
    },
    {
      "value": "LS9 7",
      "description": "Leeds",
      "valid": true
    },
    {
      "value": "LS15 8",
      "description": "Leeds",
      "valid": true
    },
    {
      "value": "LS27",
      "description": "A postcode district",
      "valid": false
    },
    {
      "value": "LS27 0AB",
      "description": "A full postcode",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom"
    }
  ],
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "gbpostcodesectorfield",
        "type": "field",
        "match": "regex",
        "file": "gb/gb_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 85,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/GB/geo/gb_postcode_sector.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/GB/geo/gb_postcode_sector.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/GB/geo/gb_postcode_sector.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/gb_postcode_sector",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/gb_postcode_sector.json"
  }
}