{
  "id": "br_census_tract_code",
  "kind": "datatype",
  "status": "draft",
  "name": "IBGE census tract code (setor censitário, Brazil)",
  "doc": "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": "id",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "BR"
  ],
  "langs": [
    "pt"
  ],
  "classification": "identifier",
  "regexp": "^(1[1-7]|2[1-9]|3[1-35]|4[1-3]|5[0-3])\\d{13}$",
  "examples": [
    {
      "value": "355030801000001",
      "description": "São Paulo, district 01, subdistrict 00, tract 0001",
      "valid": true
    },
    {
      "value": "355670105000001",
      "description": "a tract of the municipality 3556701, from a SciELO study of day-care centres",
      "valid": true
    },
    {
      "value": "3550308010000",
      "description": "thirteen digits",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.ibge.gov.br/geociencias/organizacao-do-territorio/malhas-territoriais/26565-malhas-de-setores-censitarios-divisoes-intramunicipais.html"
    },
    {
      "type": "wikipedia",
      "url": "https://pt.wikipedia.org/wiki/Setor_censit%C3%A1rio"
    }
  ],
  "translations": {
    "pt": {
      "name": "Código do setor censitário (IBGE)"
    },
    "ru": {
      "name": "Код переписного участка Бразилии (IBGE)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "brcensustractcodebyname",
        "type": "field",
        "match": "regex",
        "file": "br/br_geo.yaml"
      },
      {
        "rule": "brcensustractcodevalue",
        "type": "data",
        "match": "func",
        "file": "br/br_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/BR/geo/br_census_tract_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/BR/geo/br_census_tract_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BR/geo/br_census_tract_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/br_census_tract_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/br_census_tract_code.json"
  }
}