{
  "id": "fr_canton_code",
  "kind": "datatype",
  "status": "draft",
  "name": "French canton code (INSEE)",
  "doc": "Code of a canton in the INSEE Official Geographic Code (COG) - the department code followed by two digits, 4 characters in metropolitan France and 5 in overseas departments. The COG also lists pseudo-cantons (canton-ville) that group whole communes, numbered from 99 downwards, and fictitious cantons for communes nouvelles, numbered from 89 downwards.",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "FR"
  ],
  "langs": [
    "fr"
  ],
  "classification": "categorical",
  "regexp": "^(?:\\d{2}|2[AB]|97[1-6])\\d{2}$",
  "examples": [
    {
      "value": "0101",
      "description": "Ambérieu-en-Bugey",
      "valid": true
    },
    {
      "value": "2A01",
      "description": "Ajaccio-1",
      "valid": true
    },
    {
      "value": "97101",
      "description": "Les Abymes-1",
      "valid": true
    },
    {
      "value": "7599",
      "description": "Paris (pseudo-canton)",
      "valid": true
    },
    {
      "value": "01-01",
      "description": "separator is not used",
      "valid": false
    }
  ],
  "mappings": {
    "wikidata": "P2506"
  },
  "links": [
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P2506"
    },
    {
      "type": "doc",
      "url": "https://www.insee.fr/fr/metadonnees/definition/c1725"
    },
    {
      "type": "doc",
      "url": "https://www.insee.fr/fr/information/8740222"
    }
  ],
  "translations": {
    "fr": {
      "name": "Code canton"
    },
    "ru": {
      "name": "Код кантона Франции (INSEE)"
    }
  },
  "quality": {
    "score": 90,
    "missing": [
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/FR/geo/fr_canton_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/FR/geo/fr_canton_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/FR/geo/fr_canton_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/fr_canton_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/fr_canton_code.json"
  }
}