{
  "id": "ps_postcode",
  "kind": "datatype",
  "status": "draft",
  "name": "Palestinian postal code",
  "doc": "Postal code of Palestine Post, introduced in 2021: the letter P and seven digits, written together or as P999 9999, such as P6100154 in Ramallah.",
  "parent": "postindex",
  "is_pii": false,
  "categories": [
    "geo"
  ],
  "country": [
    "PS"
  ],
  "langs": [
    "en",
    "ar"
  ],
  "classification": "identifier",
  "regexp": "^P\\d{3} ?\\d{4}$",
  "examples": [
    {
      "value": "P6100154",
      "description": "Address in Ramallah, the sample of the UPU",
      "valid": true
    },
    {
      "value": "P392 0463",
      "description": "Written with a space",
      "valid": true
    },
    {
      "value": "6100154",
      "description": "Without the letter P",
      "valid": false
    },
    {
      "value": "P610015",
      "description": "Six digits",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.upu.int/UPU/media/upu/PostalEntitiesFiles/addressingUnit/PSEEn.pdf"
    }
  ],
  "translations": {
    "ru": {
      "name": "Почтовый индекс Палестины"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "pspostcodebyname",
        "type": "field",
        "match": "regex",
        "file": "ps/ps_geo.yaml"
      },
      {
        "rule": "pspostcodevalue",
        "type": "data",
        "match": "regex",
        "file": "ps/ps_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/PS/geo/ps_postcode.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/PS/geo/ps_postcode.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/PS/geo/ps_postcode.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ps_postcode",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ps_postcode.json"
  }
}