{
  "id": "fr_rivoli",
  "kind": "datatype",
  "status": "draft",
  "name": "French RIVOLI street code",
  "doc": "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.",
  "is_pii": false,
  "categories": [
    "geo"
  ],
  "country": [
    "FR"
  ],
  "langs": [
    "fr"
  ],
  "classification": "identifier",
  "regexp": "^[\\dA-Z]{4}[A-Z]$",
  "examples": [
    {
      "value": "3086F",
      "description": "RIVOLI code of the example in the DGFiP description of the FANTOIR file",
      "valid": true
    },
    {
      "value": "2660T",
      "description": "Rue Duguesclin (FANTOIR 3502382660T, an example of Wikidata P3182)",
      "valid": true
    },
    {
      "value": "B150B",
      "description": "Test value of the code_fantoir format of csv-detective",
      "valid": true
    },
    {
      "value": "7755",
      "description": "The check letter is missing, a negative test value of csv-detective",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://data.economie.gouv.fr/api/v2/catalog/datasets/fichier-fantoir-des-voies-et-lieux-dits/attachments/descriptif_du_fichier_national_fantoir_pdf"
    },
    {
      "type": "doc",
      "url": "https://www.data.gouv.fr/datasets/fichier-fantoir-des-voies-et-lieux-dits"
    }
  ],
  "translations": {
    "fr": {
      "name": "Code RIVOLI"
    }
  },
  "detected_by": {
    "tools": [
      "csvdetective"
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/FR/geo/fr_rivoli.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/FR/geo/fr_rivoli.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/FR/geo/fr_rivoli.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/fr_rivoli",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/fr_rivoli.json"
  }
}