{
  "id": "br_state_ibge_code",
  "kind": "datatype",
  "status": "draft",
  "name": "IBGE code of a Brazilian state (federative unit)",
  "doc": "The two-digit code IBGE gives each of the 27 federative units of Brazil: the first digit is the region (1 Norte, 2 Nordeste, 3 Sudeste, 4 Sul, 5 Centro-Oeste) and the second the state in it (11 Rondônia, 29 Bahia, 35 São Paulo, 43 Rio Grande do Sul, 53 Distrito Federal). It begins the municipality, district and census tract codes (br_municipality_code, br_municipality_code_6, br_census_tract_code). Tables give it as uf, cod_uf, coduf, CD_UF or UF_Cod, and spreadsheet exports as 35.0; the letter abbreviation (SP) is br_state_code.",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "BR"
  ],
  "langs": [
    "pt"
  ],
  "classification": "categorical",
  "regexp": "^(1[1-7]|2[1-9]|3[1-35]|4[1-3]|5[0-3])$",
  "examples": [
    {
      "value": "35",
      "description": "São Paulo",
      "valid": true
    },
    {
      "value": "31",
      "description": "Minas Gerais",
      "valid": true
    },
    {
      "value": "53",
      "description": "Distrito Federal",
      "valid": true
    },
    {
      "value": "34",
      "description": "not assigned (the Sudeste has 31, 32, 33 and 35)",
      "valid": false
    },
    {
      "value": "SP",
      "description": "the abbreviation (br_state_code)",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.ibge.gov.br/explica/codigos-dos-municipios.php"
    },
    {
      "type": "wikipedia",
      "url": "https://pt.wikipedia.org/wiki/Unidades_federativas_do_Brasil"
    }
  ],
  "translations": {
    "pt": {
      "name": "Código IBGE da unidade da federação"
    },
    "ru": {
      "name": "Код штата Бразилии (IBGE)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "brstateibgecodebyname",
        "type": "field",
        "match": "regex",
        "file": "br/br_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/BR/geo/br_state_ibge_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/BR/geo/br_state_ibge_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BR/geo/br_state_ibge_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/br_state_ibge_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/br_state_ibge_code.json"
  }
}