{
  "id": "br_municipality_code",
  "kind": "pattern",
  "status": "draft",
  "name": "Brazilian municipality code (IBGE)",
  "doc": "Seven-digit code of a Brazilian municipality assigned by IBGE, the Brazilian Institute of Geography and Statistics. The first two digits are the code of the state, for example 35 for São Paulo, and the last digit is a check digit.",
  "semantic_type": "br_municipality",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "BR"
  ],
  "classification": "categorical",
  "regexp": "^[1-5]\\d{6}$",
  "examples": [
    {
      "value": "3550308",
      "description": "São Paulo",
      "valid": true
    },
    {
      "value": "3304557",
      "description": "Rio de Janeiro",
      "valid": true
    },
    {
      "value": "5300108",
      "description": "Brasília",
      "valid": true
    },
    {
      "value": "355030",
      "description": "the older six-digit form without the check digit",
      "valid": false
    }
  ],
  "mappings": {
    "fta": "STATE_PROVINCE.MUNICIPALITY_CODE_BR",
    "wikidata": "P1585"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Municipalities_of_Brazil"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P1585"
    },
    {
      "type": "other",
      "url": "https://github.com/tsegall/fta/blob/main/SemanticTypes.md"
    }
  ],
  "translations": {
    "ru": {
      "name": "Код муниципалитета Бразилии (IBGE)"
    }
  },
  "detected_by": {
    "tools": [
      "fta"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/BR/geo/br_municipality_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/BR/geo/br_municipality_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BR/geo/br_municipality_code.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/br_municipality_code",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/br_municipality_code.json"
  }
}