---
id: "fr_rnb_id"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["geo", "realestate"]
country: ["FR"]
langs: ["common"]
quality: 100
url: "http://registry.apicrafter.io/datatype/fr_rnb_id"
---

# French national building identifier (ID-RNB) (`fr_rnb_id`)

> **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.

Identifier of a building in the Référentiel National des Bâtiments (RNB), the French national register of buildings. It has 12 characters drawn at random from the digits 1 to 9 and the capital letters except I, L, O and U, so that it cannot be misread, and is often written in three groups of four separated by hyphens, as in W7WG-YK8D-C68P.

- Personal data (PII): no
- Categories: Geographic identifiers (geo), Real estate (realestate)
- Countries: France (FR)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[1-9A-HJKMNP-TV-Z]{4}-?[1-9A-HJKMNP-TV-Z]{4}-?[1-9A-HJKMNP-TV-Z]{4}$
```

## Examples

- `W7WG-YK8D-C68P` — Town hall of Aimargues, an example of Wikidata P12461
- `MJ2W-7QT2-4SYB` — Maison à l'enseigne du Faucheur, an example of Wikidata P12461
- `FT4RKBXBVH9S` — Test value of the id_rnb format of csv-detective
- `NIDE2W8HE3X3` (invalid example) — Contains the letter I, a negative test value of csv-detective
- `FT4RKBXBVH9` (invalid example) — Eleven characters

## Mappings

- wikidata: `P12461`

## Supported by tools

- `csvdetective`

## Translations

- fr: Identifiant RNB (ID-RNB)

## Sources

- doc: <https://rnb.beta.gouv.fr/definition>
- other: <https://github.com/fab-geocommuns/RNB-coeur/blob/main/app/batid/services/rnb_id.py>
- wikipedia: <https://fr.wikipedia.org/wiki/R%C3%A9f%C3%A9rentiel_National_des_B%C3%A2timents>
- wikidata: <https://www.wikidata.org/wiki/Property:P12461>

## Quality

Score 100/100.

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