Datatypes › Brazil › Geographic identifiers › br_municipality
Brazilian municipality code without the check digit (IBGE, six digits)
Código do município sem o dígito verificador (IBGE, seis dígitos)
ID br_municipality_code_6
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
The first six digits of the IBGE code of a Brazilian municipality (br_municipality_code), without its check digit: the IBGE code of the state (35 São Paulo, 31 Minas Gerais) and four digits (355030 São Paulo, 310620 Belo Horizonte). The health information systems of DATASUS (SIM, SINASC, SINAN) and the tables built from them write the six-digit form (CODMUNRES, codmunocor), as do the crime statistics of Minas Gerais (municipio_cod) and many research datasets (codmun6, Cod6d). Exports through a spreadsheet or a statistics package add a decimal part (355030.0). Any six digits after a state code pass, so a value fits only in a field named for a municipality code.
- Pattern of
- Brazilian municipality
br_municipality - Categories
- Geographic identifiers, Government related
- Countries
- Brazil
- Languages
- Portuguese
- Quality
- 90/100 · missing: mapping (Wikidata, Schema.org, ...)
- Metacrafter rules
- 1 rule (1 by field name, 0 by value)
brmunicipalitycode6bynamefield, br/br_geo.yaml
- Supported by tools
- metacrafter
Regular expression
^(1[1-7]|2[1-9]|3[1-35]|4[1-3]|5[0-3])\d{4}$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| 355030 | São Paulo (IBGE 3550308) |
| 310620 | Belo Horizonte (IBGE 3106200) |
| 530010 | Brasília (IBGE 5300108) |
| 3550308 invalid | the seven-digit code with its check digit (br_municipality_code) |
| 995030 invalid | 99 is no state code |
Translations
| Language | Name | Description |
|---|---|---|
| Portuguese | Código do município sem o dígito verificador (IBGE, seis dígitos) | |
| Russian | Код муниципалитета Бразилии без контрольной цифры (IBGE, шесть цифр) |
Sources
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/br_municipality_code_6 - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/BR/geo/br_municipality_code_6.yamlon GitHub