---
id: "br_census_tract_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "IBGE census tract code (setor censitário, Brazil)"
regexp: "^(1[1-7]|2[1-9]|3[1-35]|4[1-3]|5[0-3])\\d{13}$"
categories: ["geo", "government"]
country: ["BR"]
langs: ["pt"]
quality: 90
url: "https://registry.apicrafter.io/datatype/br_census_tract_code"
---

# IBGE census tract code (setor censitário, Brazil) (`br_census_tract_code`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

The 15-digit code of a census tract (setor censitário), the smallest area of the Brazilian census: the seven-digit IBGE code of the municipality with its check digit (br_municipality_code), two digits of the district, two of the subdistrict and four of the tract (355030801000001: São Paulo, district 01, subdistrict 00, tract 0001). Census tables give it as Cod_setor, CD_SETOR or CD_GEOCODI; tables saved through a spreadsheet hold it as a float (3.55030801000001E14).

- Parent datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: Brazil (BR)
- Languages: Portuguese (pt)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(1[1-7]|2[1-9]|3[1-35]|4[1-3]|5[0-3])\d{13}$
```

## Examples

- `355030801000001` — São Paulo, district 01, subdistrict 00, tract 0001
- `355670105000001` — a tract of the municipality 3556701, from a SciELO study of day-care centres
- `3550308010000` (invalid example) — thirteen digits

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `brcensustractcodebyname` (field, `br/br_geo.yaml`)
- `brcensustractcodevalue` (data, `br/br_geo.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- pt: Código do setor censitário (IBGE)
- ru: Код переписного участка Бразилии (IBGE)

## Sources

- doc: <https://www.ibge.gov.br/geociencias/organizacao-do-territorio/malhas-territoriais/26565-malhas-de-setores-censitarios-divisoes-intramunicipais.html>
- wikipedia: <https://pt.wikipedia.org/wiki/Setor_censit%C3%A1rio>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/br_census_tract_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BR/geo/br_census_tract_code.yaml>
