{
  "id": "fr_qpv_code",
  "kind": "datatype",
  "status": "draft",
  "name": "French priority neighbourhood code (QPV, politique de la ville)",
  "doc": "Code of a priority neighbourhood of the French urban policy (quartier prioritaire de la politique de la ville, QPV) in the lists of the Agence nationale de la cohésion des territoires (ANCT). Codes of the 2015 list are QP, the department on three characters and a three-digit number (QP049001). Codes of the 2024 list (décret 2023-1314) are QN, the department, two digits and a letter: N for a new neighbourhood, M for a neighbourhood of 2015 whose perimeter changed, I for one whose contour stayed nearly the same and C in Mayotte.",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "FR"
  ],
  "langs": [
    "fr"
  ],
  "classification": "identifier",
  "regexp": "^(?:QP(?:0\\d{2}|02[AB]|97\\d)\\d{3}|QN(?:0\\d{2}|02[AB]|97\\d)\\d{2}[NMIC])$",
  "examples": [
    {
      "value": "QP049001",
      "description": "Belle Beille, Angers (2015 list)",
      "valid": true
    },
    {
      "value": "QP068009",
      "description": "Saint-Louis, Haut-Rhin (2015 list)",
      "valid": true
    },
    {
      "value": "QP02A001",
      "description": "Corse-du-Sud (2015 list)",
      "valid": true
    },
    {
      "value": "QN97663C",
      "description": "Mayotte (2024 list)",
      "valid": true
    },
    {
      "value": "QP49001",
      "description": "department on two characters",
      "valid": false
    },
    {
      "value": "QN049001",
      "description": "a 2024 code needs the final letter",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.data.gouv.fr/datasets/quartiers-prioritaires-de-la-politique-de-la-ville-qpv"
    },
    {
      "type": "wikipedia",
      "url": "https://fr.wikipedia.org/wiki/Quartier_prioritaire_de_la_politique_de_la_ville"
    }
  ],
  "translations": {
    "fr": {
      "name": "Code QPV"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "frqpvbyname",
        "type": "field",
        "match": "regex",
        "file": "fr/fr_geo.yaml"
      },
      {
        "rule": "frqpvvalue",
        "type": "data",
        "match": "regex",
        "file": "fr/fr_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/FR/geo/fr_qpv_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/FR/geo/fr_qpv_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/FR/geo/fr_qpv_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/fr_qpv_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/fr_qpv_code.json"
  }
}