---
id: "fr_rivoli"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["geo"]
country: ["FR"]
langs: ["fr"]
quality: 90
url: "http://registry.apicrafter.io/datatype/fr_rivoli"
---

# French RIVOLI street code (`fr_rivoli`)

> **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 street, locality or housing estate within its commune in the FANTOIR file of the French tax administration: the four-character RIVOLI code and its check letter, as in 3086F. It is the last part of the FANTOIR identifier (fr_fantoir) and is unique only within one commune. The first character of the RIVOLI code tells the kind of way: a digit for a street, A for a housing estate or condominium, B to W for a locality (lieu-dit), X for a pseudo-street such as a canal or a metro station, Y or Z for a provisional street.

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

## Detection

Regular expression (Python `re`):

```
^[\dA-Z]{4}[A-Z]$
```

## Examples

- `3086F` — RIVOLI code of the example in the DGFiP description of the FANTOIR file
- `2660T` — Rue Duguesclin (FANTOIR 3502382660T, an example of Wikidata P3182)
- `B150B` — Test value of the code_fantoir format of csv-detective
- `7755` (invalid example) — The check letter is missing, a negative test value of csv-detective

## Supported by tools

- `csvdetective`

## Translations

- fr: Code RIVOLI

## Sources

- doc: <https://data.economie.gouv.fr/api/v2/catalog/datasets/fichier-fantoir-des-voies-et-lieux-dits/attachments/descriptif_du_fichier_national_fantoir_pdf>
- doc: <https://www.data.gouv.fr/datasets/fichier-fantoir-des-voies-et-lieux-dits>

## Quality

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

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