---
id: "mx_inegi_locality"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["geo"]
country: ["MX"]
langs: ["common"]
quality: 80
url: "http://registry.apicrafter.io/datatype/mx_inegi_locality"
---

# Mexican INEGI locality code (`mx_inegi_locality`)

> **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.

Nine-digit code of a locality of Mexico in the INEGI geostatistical framework: two digits for the state, three for the municipality and four for the locality.

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: Mexico (MX)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[0-9]{9}$
```

## Examples

- `310380004` — Sisal
- `180190918` — Los Pachecos
- `260030090` — El Chino

## Mappings

- wikidata: `P1976`

## Sources

- doc: <https://www.inegi.org.mx/app/ageeml/>
- wikidata: <https://www.wikidata.org/wiki/Property:P1976>

## Quality

Score 80/100. Missing: negative example, translation, detector coverage.

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