{
  "id": "ar_indec_locality_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Argentine locality code (INDEC census locality, BAHRA)",
  "doc": "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": "id",
  "children": [
    "ar_bahra_code"
  ],
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "AR"
  ],
  "langs": [
    "es"
  ],
  "classification": "identifier",
  "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})$",
  "examples": [
    {
      "value": "06007010",
      "description": "Carhué, Buenos Aires",
      "valid": true
    },
    {
      "value": "02000010",
      "description": "Ciudad Autónoma de Buenos Aires",
      "valid": true
    },
    {
      "value": "14014010",
      "description": "Córdoba",
      "valid": true
    },
    {
      "value": "1401401002",
      "description": "La Floresta, an entity of the locality of Córdoba (BAHRA)",
      "valid": true
    },
    {
      "value": "050",
      "description": "Berrotarán, the locality part alone in a Córdoba radius list (CODLOC)",
      "valid": true
    },
    {
      "value": "6441030",
      "description": "leading zero dropped",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://datosgobar.github.io/paquete-apertura-datos/guia-interoperables/"
    },
    {
      "type": "doc",
      "url": "https://datosgobar.github.io/georef-ar-api/localities/"
    }
  ],
  "translations": {
    "es": {
      "name": "Código de localidad (INDEC, BAHRA)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "arindeclocalitypartbyname",
        "type": "field",
        "match": "regex",
        "file": "ar_country/ar_census.yaml"
      },
      {
        "rule": "arindeclocalitycodebyname",
        "type": "field",
        "match": "regex",
        "file": "ar_country/ar_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/AR/geo/ar_indec_locality_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/AR/geo/ar_indec_locality_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/AR/geo/ar_indec_locality_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ar_indec_locality_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ar_indec_locality_code.json"
  }
}