{
  "id": "ar_indec_province_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Argentine province code (INDEC)",
  "doc": "Two-digit code of an Argentine province or of the Autonomous City of Buenos Aires in the geographic coding of the national statistics office INDEC, used by the georef service and national open data: 02 Ciudad Autónoma de Buenos Aires, 06 Buenos Aires, then every fourth number up to 94 Tierra del Fuego (10 Catamarca, 14 Córdoba, 50 Mendoza, 58 Neuquén, 82 Santa Fe, 90 Tucumán). The 24 codes are the first two digits of the department, local government and locality codes, and they code the first-level divisions (admin_area_1). Files often lose the leading zero (2, 6), and some sources use their own province numbering, so use the field name (provincia_id, id_provincia_indec) or context.",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "AR"
  ],
  "langs": [
    "es"
  ],
  "classification": "categorical",
  "regexp": "^(?:0[26]|1[048]|2[26]|3[048]|4[26]|5[048]|6[26]|7[048]|8[26]|9[04])$",
  "examples": [
    {
      "value": "02",
      "description": "Ciudad Autónoma de Buenos Aires",
      "valid": true
    },
    {
      "value": "06",
      "description": "Buenos Aires",
      "valid": true
    },
    {
      "value": "58",
      "description": "Neuquén",
      "valid": true
    },
    {
      "value": "94",
      "description": "Tierra del Fuego, Antártida e Islas del Atlántico Sur",
      "valid": true
    },
    {
      "value": "04",
      "description": "no province has this code",
      "valid": false
    },
    {
      "value": "6",
      "description": "leading zero dropped",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://datosgobar.github.io/paquete-apertura-datos/guia-interoperables/"
    },
    {
      "type": "doc",
      "url": "https://datos.gob.ar/dataset/servicio-de-normalizacion-de-direcciones-y-unidades-territoriales-de-argentina"
    }
  ],
  "translations": {
    "es": {
      "name": "Código de provincia (INDEC)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "arindecprovincecodebarename",
        "type": "field",
        "match": "regex",
        "file": "ar_country/ar_census.yaml"
      },
      {
        "rule": "arindecprovincecodebyname",
        "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_province_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/AR/geo/ar_indec_province_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/AR/geo/ar_indec_province_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ar_indec_province_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ar_indec_province_code.json"
  }
}