{
  "id": "mx_inegi_municipality_code",
  "kind": "pattern",
  "status": "draft",
  "name": "Mexican municipality code (INEGI)",
  "doc": "Code of a Mexican municipality in the INEGI catalogue of states, municipalities and localities (AGEEML): the two-digit state key (cve_ent) and the three-digit municipality key (cve_mun), written together as five digits or the municipality key alone as three, as in 09015 for Cuauhtémoc in Mexico City.",
  "semantic_type": "mx_municipality",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "MX"
  ],
  "langs": [
    "es"
  ],
  "classification": "identifier",
  "regexp": "^(?:\\d{2})?\\d{3}$",
  "examples": [
    {
      "value": "09015",
      "description": "Cuauhtémoc, Mexico City",
      "valid": true
    },
    {
      "value": "015",
      "description": "The municipality key alone",
      "valid": true
    },
    {
      "value": "9015",
      "description": "Leading zero of the state dropped",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.inegi.org.mx/app/ageeml/"
    }
  ],
  "translations": {
    "es": {
      "name": "Clave de municipio (INEGI)"
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/MX/geo/mx_inegi_municipality_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/MX/geo/mx_inegi_municipality_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/MX/geo/mx_inegi_municipality_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/mx_inegi_municipality_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/mx_inegi_municipality_code.json"
  }
}