---
id: "fr_qpv_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "French priority neighbourhood code (QPV, politique de la ville)"
regexp: "^(?:QP(?:0\\d{2}|02[AB]|97\\d)\\d{3}|QN(?:0\\d{2}|02[AB]|97\\d)\\d{2}[NMIC])$"
categories: ["geo", "government"]
country: ["FR"]
langs: ["fr"]
quality: 90
url: "https://registry.apicrafter.io/datatype/fr_qpv_code"
---

# French priority neighbourhood code (QPV, politique de la ville) (`fr_qpv_code`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

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.

- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: France (FR)
- Languages: French (fr)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:QP(?:0\d{2}|02[AB]|97\d)\d{3}|QN(?:0\d{2}|02[AB]|97\d)\d{2}[NMIC])$
```

## Examples

- `QP049001` — Belle Beille, Angers (2015 list)
- `QP068009` — Saint-Louis, Haut-Rhin (2015 list)
- `QP02A001` — Corse-du-Sud (2015 list)
- `QN97663C` — Mayotte (2024 list)
- `QP49001` (invalid example) — department on two characters
- `QN049001` (invalid example) — a 2024 code needs the final letter

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `frqpvbyname` (field, `fr/fr_geo.yaml`)
- `frqpvvalue` (data, `fr/fr_geo.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- fr: Code QPV

## Sources

- doc: <https://www.data.gouv.fr/datasets/quartiers-prioritaires-de-la-politique-de-la-ville-qpv>
- wikipedia: <https://fr.wikipedia.org/wiki/Quartier_prioritaire_de_la_politique_de_la_ville>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/fr_qpv_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/FR/geo/fr_qpv_code.yaml>
