---
id: "ar_indec_locality_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Argentine locality code (INDEC census locality, BAHRA)"
regexp: "^(?:(?:0[26]|1[048]|2[26]|3[048]|4[26]|5[048]|6[26]|7[048]|8[26]|9[04])\\d{6}(?:\\d{2})?|\\d{3})$"
categories: ["geo", "government"]
country: ["AR"]
langs: ["es"]
quality: 90
url: "https://registry.apicrafter.io/datatype/ar_indec_locality_code"
---

# Argentine locality code (INDEC census locality, BAHRA) (`ar_indec_locality_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.

Eight-digit code of an Argentine census locality (localidad censal of INDEC): the five-digit department code and three digits for the locality, as in 06007010 Carhué and 14014010 Córdoba. The settlement codes of BAHRA, the Base de Asentamientos Humanos de la República Argentina behind the georef localities and settlements, use the same eight digits for a simple locality or a rural place (paraje) and add two digits for an entity of a composite locality (1401401002 La Floresta, Córdoba); the eleven-digit BAHRA code with three digits for the entity (14014010000) is ar_bahra_code. Many files drop the leading zero (6441030). Census radius lists give the three-digit locality part alone next to the department (CODLOC 050 for Berrotarán in Río Cuarto, Córdoba), with 000 for a radius outside any locality.

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

## Detection

Regular expression (Python `re`):

```
^(?:(?:0[26]|1[048]|2[26]|3[048]|4[26]|5[048]|6[26]|7[048]|8[26]|9[04])\d{6}(?:\d{2})?|\d{3})$
```

## Examples

- `06007010` — Carhué, Buenos Aires
- `02000010` — Ciudad Autónoma de Buenos Aires
- `14014010` — Córdoba
- `1401401002` — La Floresta, an entity of the locality of Córdoba (BAHRA)
- `050` — Berrotarán, the locality part alone in a Córdoba radius list (CODLOC)
- `6441030` (invalid example) — leading zero dropped

## Metacrafter rules

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

- `arindeclocalitypartbyname` (field, `ar_country/ar_census.yaml`)
- `arindeclocalitycodebyname` (field, `ar_country/ar_geo.yaml`)

## Supported by tools

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

## Translations

- es: Código de localidad (INDEC, BAHRA)

## Sources

- doc: <https://datosgobar.github.io/paquete-apertura-datos/guia-interoperables/>
- doc: <https://datosgobar.github.io/georef-ar-api/localities/>

## Quality

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

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