---
id: "bo_community_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Bolivian community code (INE)"
regexp: "^0?[1-9](?:0[1-9]|1[0-9]|20)0[1-9]\\d{5}(?:\\d{3})?$"
categories: ["geo", "government"]
country: ["BO"]
langs: ["es"]
quality: 90
url: "https://registry.apicrafter.io/datatype/bo_community_code"
---

# Bolivian community code (INE) (`bo_community_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.

Eleven-digit code of a Bolivian community or locality (comunidad, localidad) in the census cartography of the INE: the municipality code, two digits for the canton and three for the locality, as in 02010501001 and 03020101001. The community layers of the Censo 2012 in the GeoNode of SIARH (COD_COM) give it next to the municipality code; some add three digits for a part of a dispersed community (01010105005001), and spreadsheets drop the leading zero.

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

## Detection

Regular expression (Python `re`):

```
^0?[1-9](?:0[1-9]|1[0-9]|20)0[1-9]\d{5}(?:\d{3})?$
```

## Examples

- `03020101001` — a community of Aiquile, Cochabamba
- `02010501001` — a community of El Alto, La Paz
- `020105` (invalid example) — a municipality code: bo_municipality_code

## Metacrafter rules

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

- `bocommunitycodebyname` (field, `bo/bo_geo.yaml`)

## Supported by tools

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

## Translations

- es: Código de comunidad (INE)

## Sources

- doc: <https://www.ine.gob.bo/>

## Quality

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

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