Skip to content

Instantly share code, notes, and snippets.

@gonzalo-bulnes
Last active April 4, 2023 18:48
Show Gist options
  • Save gonzalo-bulnes/337ea1e916e3890fdefa to your computer and use it in GitHub Desktop.
Save gonzalo-bulnes/337ea1e916e3890fdefa to your computer and use it in GitHub Desktop.
Comunas de Chile (seed Ruby on Rails, JSON) - (see also https://github.com/gonzalo-bulnes/chilean_cities)
[
{
"name": "Arica",
"code": "15101",
"provincia": "Arica",
"region": "Arica y Parinacota",
"region_number": "XV",
"region_iso_3166_2": "CL-AP"
},
{
"name": "Camarones",
"code": "15102",
"provincia": "Arica",
"region": "Arica y Parinacota",
"region_number": "XV",
"region_iso_3166_2": "CL-AP"
},
{
"name": "Putre",
"code": "15201",
"provincia": "Parinacota",
"region": "Arica y Parinacota",
"region_number": "XV",
"region_iso_3166_2": "CL-AP"
},
{
"name": "General Lagos",
"code": "15202",
"provincia": "Parinacota",
"region": "Arica y Parinacota",
"region_number": "XV",
"region_iso_3166_2": "CL-AP"
},
{
"name": "Iquique",
"code": "01101",
"provincia": "Iquique",
"region": "Tarapacá",
"region_number": "I",
"region_iso_3166_2": "CL-TA"
},
{
"name": "Alto Hospicio",
"code": "01102",
"provincia": "Iquique",
"region": "Tarapacá",
"region_number": "I",
"region_iso_3166_2": "CL-TA"
},
{
"name": "Pozo Almonte",
"code": "01201",
"provincia": "Tamarugal",
"region": "Tarapacá",
"region_number": "I",
"region_iso_3166_2": "CL-TA"
},
{
"name": "Camiña",
"code": "01402",
"provincia": "Tamarugal",
"region": "Tarapacá",
"region_number": "I",
"region_iso_3166_2": "CL-TA"
},
{
"name": "Colchane",
"code": "01403",
"provincia": "Tamarugal",
"region": "Tarapacá",
"region_number": "I",
"region_iso_3166_2": "CL-TA"
},
{
"name": "Huara",
"code": "01404",
"provincia": "Tamarugal",
"region": "Tarapacá",
"region_number": "I",
"region_iso_3166_2": "CL-TA"
},
{
"name": "Pica",
"code": "01405",
"provincia": "Tamarugal",
"region": "Tarapacá",
"region_number": "I",
"region_iso_3166_2": "CL-TA"
},
{
"name": "Antofagasta",
"code": "02101",
"provincia": "Antofagasta",
"region": "Antofagasta",
"region_number": "II",
"region_iso_3166_2": "CL-AN"
},
{
"name": "Mejillones",
"code": "02102",
"provincia": "Antofagasta",
"region": "Antofagasta",
"region_number": "II",
"region_iso_3166_2": "CL-AN"
},
{
"name": "Sierra Gorda",
"code": "02103",
"provincia": "Antofagasta",
"region": "Antofagasta",
"region_number": "II",
"region_iso_3166_2": "CL-AN"
},
{
"name": "Taltal",
"code": "02104",
"provincia": "Antofagasta",
"region": "Antofagasta",
"region_number": "II",
"region_iso_3166_2": "CL-AN"
},
{
"name": "Calama",
"code": "02201",
"provincia": "El Loa",
"region": "Antofagasta",
"region_number": "II",
"region_iso_3166_2": "CL-AN"
},
{
"name": "Ollagüe",
"code": "02202",
"provincia": "El Loa",
"region": "Antofagasta",
"region_number": "II",
"region_iso_3166_2": "CL-AN"
},
{
"name": "San Pedro de Atacama",
"code": "02203",
"provincia": "El Loa",
"region": "Antofagasta",
"region_number": "II",
"region_iso_3166_2": "CL-AN"
},
{
"name": "Tocopilla",
"code": "02301",
"provincia": "Tocopilla",
"region": "Antofagasta",
"region_number": "II",
"region_iso_3166_2": "CL-AN"
},
{
"name": "María Elena",
"code": "02302",
"provincia": "Tocopilla",
"region": "Antofagasta",
"region_number": "II",
"region_iso_3166_2": "CL-AN"
},
{
"name": "Copiapó",
"code": "03101",
"provincia": "Copiapó",
"region": "Atacama",
"region_number": "III",
"region_iso_3166_2": "CL-AT"
},
{
"name": "Caldera",
"code": "03102",
"provincia": "Copiapó",
"region": "Atacama",
"region_number": "III",
"region_iso_3166_2": "CL-AT"
},
{
"name": "Tierra Amarilla",
"code": "03103",
"provincia": "Copiapó",
"region": "Atacama",
"region_number": "III",
"region_iso_3166_2": "CL-AT"
},
{
"name": "Chañaral",
"code": "03201",
"provincia": "Chañaral",
"region": "Atacama",
"region_number": "III",
"region_iso_3166_2": "CL-AT"
},
{
"name": "Diego de Almagro",
"code": "03202",
"provincia": "Chañaral",
"region": "Atacama",
"region_number": "III",
"region_iso_3166_2": "CL-AT"
},
{
"name": "Vallenar",
"code": "03301",
"provincia": "Huasco",
"region": "Atacama",
"region_number": "III",
"region_iso_3166_2": "CL-AT"
},
{
"name": "Alto del Carmen",
"code": "03302",
"provincia": "Huasco",
"region": "Atacama",
"region_number": "III",
"region_iso_3166_2": "CL-AT"
},
{
"name": "Freirina",
"code": "03303",
"provincia": "Huasco",
"region": "Atacama",
"region_number": "III",
"region_iso_3166_2": "CL-AT"
},
{
"name": "Huasco",
"code": "03304",
"provincia": "Huasco",
"region": "Atacama",
"region_number": "III",
"region_iso_3166_2": "CL-AT"
},
{
"name": "La Serena",
"code": "04101",
"provincia": "Elqui",
"region": "Coquimbo",
"region_number": "IV",
"region_iso_3166_2": "CL-CO"
},
{
"name": "Coquimbo",
"code": "04102",
"provincia": "Elqui",
"region": "Coquimbo",
"region_number": "IV",
"region_iso_3166_2": "CL-CO"
},
{
"name": "Andacollo",
"code": "04103",
"provincia": "Elqui",
"region": "Coquimbo",
"region_number": "IV",
"region_iso_3166_2": "CL-CO"
},
{
"name": "La Higuera",
"code": "04104",
"provincia": "Elqui",
"region": "Coquimbo",
"region_number": "IV",
"region_iso_3166_2": "CL-CO"
},
{
"name": "Paiguano",
"code": "04105",
"provincia": "Elqui",
"region": "Coquimbo",
"region_number": "IV",
"region_iso_3166_2": "CL-CO"
},
{
"name": "Vicuña",
"code": "04106",
"provincia": "Elqui",
"region": "Coquimbo",
"region_number": "IV",
"region_iso_3166_2": "CL-CO"
},
{
"name": "Illapel",
"code": "04201",
"provincia": "Choapa",
"region": "Coquimbo",
"region_number": "IV",
"region_iso_3166_2": "CL-CO"
},
{
"name": "Canela",
"code": "04202",
"provincia": "Choapa",
"region": "Coquimbo",
"region_number": "IV",
"region_iso_3166_2": "CL-CO"
},
{
"name": "Los Vilos",
"code": "04203",
"provincia": "Choapa",
"region": "Coquimbo",
"region_number": "IV",
"region_iso_3166_2": "CL-CO"
},
{
"name": "Salamanca",
"code": "04204",
"provincia": "Choapa",
"region": "Coquimbo",
"region_number": "IV",
"region_iso_3166_2": "CL-CO"
},
{
"name": "Ovalle",
"code": "04301",
"provincia": "Limarí",
"region": "Coquimbo",
"region_number": "IV",
"region_iso_3166_2": "CL-CO"
},
{
"name": "Combarbalá",
"code": "04302",
"provincia": "Limarí",
"region": "Coquimbo",
"region_number": "IV",
"region_iso_3166_2": "CL-CO"
},
{
"name": "Monte Patria",
"code": "04303",
"provincia": "Limarí",
"region": "Coquimbo",
"region_number": "IV",
"region_iso_3166_2": "CL-CO"
},
{
"name": "Punitaqui",
"code": "04304",
"provincia": "Limarí",
"region": "Coquimbo",
"region_number": "IV"
},
{
"name": "Río Hurtado",
"code": "04305",
"provincia": "Limarí",
"region": "Coquimbo",
"region_number": "IV",
"region_iso_3166_2": "CL-CO"
},
{
"name": "Valparaíso",
"code": "05101",
"provincia": "Valparaíso",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Casablanca",
"code": "05102",
"provincia": "Valparaíso",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Concón",
"code": "05103",
"provincia": "Valparaíso",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Juan Fernández",
"code": "05104",
"provincia": "Valparaíso",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Puchuncaví",
"code": "05105",
"provincia": "Valparaíso",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Quintero",
"code": "05107",
"provincia": "Valparaíso",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Viña del Mar",
"code": "05109",
"provincia": "Valparaíso",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Isla de Pascua",
"code": "05201",
"provincia": "Isla de Pascua",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Los Andes",
"code": "05301",
"provincia": "Los Andes",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Calle Larga",
"code": "05302",
"provincia": "Los Andes",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Riconada",
"code": "05303",
"provincia": "Los Andes",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "San Esteban",
"code": "05304",
"provincia": "Los Andes",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "La Ligua",
"code": "05401",
"provincia": "Petorca",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Cabildo",
"code": "05402",
"provincia": "Petorca",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Papudo",
"code": "05403",
"provincia": "Petorca",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Petorca",
"code": "05404",
"provincia": "Petorca",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Zapallar",
"code": "05405",
"provincia": "Petorca",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Quillota",
"code": "05501",
"provincia": "Quillota",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Calera",
"code": "05502",
"provincia": "Quillota",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Hijuelas",
"code": "05503",
"provincia": "Quillota",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "La Cruz",
"code": "05504",
"provincia": "Quillota",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Nogales",
"code": "05506",
"provincia": "Quillota",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "San Antonio",
"code": "05601",
"provincia": "San Antonio",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Algarrobo",
"code": "05602",
"provincia": "San Antonio",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Cartagena",
"code": "05603",
"provincia": "San Antonio",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "El Quisco",
"code": "05604",
"provincia": "San Antonio",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "El Tabo",
"code": "05605",
"provincia": "San Antonio",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Santo Domingo",
"code": "05606",
"provincia": "San Antonio",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "San Felipe",
"code": "05701",
"provincia": "San Felipe de Aconcagua",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Catemu",
"code": "05702",
"provincia": "San Felipe de Aconcagua",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Llaillay",
"code": "05703",
"provincia": "San Felipe de Aconcagua",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Panquehue",
"code": "05704",
"provincia": "San Felipe de Aconcagua",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Putaendo",
"code": "05705",
"provincia": "San Felipe de Aconcagua",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Santa María",
"code": "05706",
"provincia": "San Felipe de Aconcagua",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Quilpué",
"code": "05801",
"provincia": "Marga Marga",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Limache",
"code": "05802",
"provincia": "Marga Marga",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Olmué",
"code": "05803",
"provincia": "Marga Marga",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Villa Alemana",
"code": "05804",
"provincia": "Marga Marga",
"region": "Valparaíso",
"region_number": "V",
"region_iso_3166_2": "CL-VS"
},
{
"name": "Rancagua",
"code": "06101",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Codegua",
"code": "06102",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Coinco",
"code": "06103",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Coltauco",
"code": "06104",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Doñihue",
"code": "06105",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Graneros",
"code": "06106",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Las Cabras",
"code": "06107",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Machalí",
"code": "06108",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Malloa",
"code": "06109",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Mostazal",
"code": "06110",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Olivar",
"code": "06111",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Peumo",
"code": "06112",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Pichidegua",
"code": "06113",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Quinta de Tilcoco",
"code": "06114",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Rengo",
"code": "06115",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Requínoa",
"code": "06116",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "San Vicente",
"code": "06117",
"provincia": "Cachapoal",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Pichilemu",
"code": "06201",
"provincia": "Cardenal Caro",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "La Estrella",
"code": "06202",
"provincia": "Cardenal Caro",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Litueche",
"code": "06203",
"provincia": "Cardenal Caro",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Marichihue",
"code": "06204",
"provincia": "Cardenal Caro",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Navidad",
"code": "06205",
"provincia": "Cardenal Caro",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Paredones",
"code": "06206",
"provincia": "Cardenal Caro",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "San Fernando",
"code": "06301",
"provincia": "Colchagua",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Chépica",
"code": "06302",
"provincia": "Colchagua",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Chimbarongo",
"code": "06303",
"provincia": "Colchagua",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Lolol",
"code": "06304",
"provincia": "Colchagua",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Nancagua",
"code": "06305",
"provincia": "Colchagua",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Palmilla",
"code": "06306",
"provincia": "Colchagua",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Peralillo",
"code": "06307",
"provincia": "Colchagua",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Placilla",
"code": "06308",
"provincia": "Colchagua",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Pumanque",
"code": "06309",
"provincia": "Colchagua",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Santa Cruz",
"code": "06310",
"provincia": "Colchagua",
"region": "Región del Libertador Gral. Bernardo O'Higgins",
"region_number": "VI",
"region_iso_3166_2": "CL-LI"
},
{
"name": "Talca",
"code": "07101",
"provincia": "Talca",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Constitución",
"code": "07102",
"provincia": "Talca",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Curepto",
"code": "07103",
"provincia": "Talca",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Empedrado",
"code": "07104",
"provincia": "Talca",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Maule",
"code": "07105",
"provincia": "Talca",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Pelarco",
"code": "07106",
"provincia": "Talca",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Pencahue",
"code": "07107",
"provincia": "Talca",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Río Claro",
"code": "07108",
"provincia": "Talca",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "San Clemente",
"code": "07109",
"provincia": "Talca",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "San Rafael",
"code": "07110",
"provincia": "Talca",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Cauquenes",
"code": "07201",
"provincia": "Cauquenes",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Chanco",
"code": "07202",
"provincia": "Cauquenes",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Pelluhue",
"code": "07203",
"provincia": "Cauquenes",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Curicó",
"code": "07301",
"provincia": "Curicó",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Hualañé",
"code": "07302",
"provincia": "Curicó",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Licantén",
"code": "07303",
"provincia": "Curicó",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Molina",
"code": "07304",
"provincia": "Curicó",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Rauco",
"code": "07305",
"provincia": "Curicó",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Romeral",
"code": "07306",
"provincia": "Curicó",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Sagrada Familia",
"code": "07307",
"provincia": "Curicó",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Teno",
"code": "07308",
"provincia": "Curicó",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Vichuquén",
"code": "07309",
"provincia": "Curicó",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Linares",
"code": "07401",
"provincia": "Linares",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Colbún",
"code": "07402",
"provincia": "Linares",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Longaví",
"code": "07403",
"provincia": "Linares",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Parral",
"code": "07404",
"provincia": "Linares",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Retiro",
"code": "07405",
"provincia": "Linares",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "San Javier",
"code": "07406",
"provincia": "Linares",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Villa Alegre",
"code": "07407",
"provincia": "Linares",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Yerbas Buenas",
"code": "07408",
"provincia": "Linares",
"region": "Región del Maule",
"region_number": "VII",
"region_iso_3166_2": "CL-ML"
},
{
"name": "Concepción",
"code": "08101",
"provincia": "Concepción",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Coronel",
"code": "08102",
"provincia": "Concepción",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Chiguayante",
"code": "08103",
"provincia": "Concepción",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Florida",
"code": "08104",
"provincia": "Concepción",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Hualqui",
"code": "08105",
"provincia": "Concepción",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Lota",
"code": "08106",
"provincia": "Concepción",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Penco",
"code": "08107",
"provincia": "Concepción",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "San Pedro de la Paz",
"code": "08108",
"provincia": "Concepción",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Santa Juana",
"code": "08109",
"provincia": "Concepción",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Talcahuano",
"code": "08110",
"provincia": "Concepción",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Tomé",
"code": "08111",
"provincia": "Concepción",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Hualpén",
"code": "08112",
"provincia": "Concepción",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Lebu",
"code": "08201",
"provincia": "Arauco",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Arauco",
"code": "08202",
"provincia": "Arauco",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Cañete",
"code": "08203",
"provincia": "Arauco",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Contulmo",
"code": "08204",
"provincia": "Arauco",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Curanilahue",
"code": "08205",
"provincia": "Arauco",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Los Álamos",
"code": "08206",
"provincia": "Arauco",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Tirúa",
"code": "08207",
"provincia": "Arauco",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Los Ángeles",
"code": "08301",
"provincia": "Biobío",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Antuco",
"code": "08302",
"provincia": "Biobío",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Cabrero",
"code": "08303",
"provincia": "Biobío",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Laja",
"code": "08304",
"provincia": "Biobío",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Mulchén",
"code": "08305",
"provincia": "Biobío",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Nacimiento",
"code": "08306",
"provincia": "Biobío",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Negrete",
"code": "08307",
"provincia": "Biobío",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Quilaco",
"code": "08308",
"provincia": "Biobío",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Quilleco",
"code": "08309",
"provincia": "Biobío",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "San Rosendo",
"code": "08310",
"provincia": "Biobío",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Santa Bárbara",
"code": "08311",
"provincia": "Biobío",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Tucapel",
"code": "08312",
"provincia": "Biobío",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Yumbel",
"code": "08313",
"provincia": "Biobío",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Alto Biobío",
"code": "08314",
"provincia": "Biobío",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Chillán",
"code": "08401",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Bulnes",
"code": "08402",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Cobquecura",
"code": "08403",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Coelemu",
"code": "08404",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Coihueco",
"code": "08405",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Chillán Viejo",
"code": "08406",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "El Carmen",
"code": "08407",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Ninhue",
"code": "08408",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Ñiquén",
"code": "08409",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Pemuco",
"code": "08410",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Pinto",
"code": "08411",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Portezuelo",
"code": "08412",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Quillón",
"code": "08413",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Quirihue",
"code": "08414",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Ránquil",
"code": "08415",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "San Carlos",
"code": "08416",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "San Fabián",
"code": "08417",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "San Ignacio",
"code": "08418",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "San Nicolás",
"code": "08419",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Treguaco",
"code": "08420",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Yungay",
"code": "08421",
"provincia": "Ñuble",
"region": "Región del Biobío",
"region_number": "VIII",
"region_iso_3166_2": "CL-BI"
},
{
"name": "Temuco",
"code": "09101",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Carahu",
"code": "09102",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Cunco",
"code": "09103",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Curarrehue",
"code": "09104",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Freire",
"code": "09105",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Galvarin",
"code": "09106",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Gorbea",
"code": "09107",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Lautaro",
"code": "09108",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Loncoche",
"code": "09109",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Melipeuco",
"code": "09110",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Nueva Imperial",
"code": "09111",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Padre las Casa",
"code": "09112",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Perquenco",
"code": "09113",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Pitrufquén",
"code": "09114",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Pucó",
"code": "09115",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Saavedra",
"code": "09116",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Teodoro Schmid",
"code": "09117",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Toltén",
"code": "09118",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Vilcún",
"code": "09119",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Villarrica",
"code": "09120",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Cholchol",
"code": "09121",
"provincia": "Cautín",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Angol",
"code": "09201",
"provincia": "Malleco",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Collipulli",
"code": "09202",
"provincia": "Malleco",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Curacautín",
"code": "09203",
"provincia": "Malleco",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Ercilla",
"code": "09204",
"provincia": "Malleco",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Lonquimay",
"code": "09205",
"provincia": "Malleco",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Los Sauces",
"code": "09206",
"provincia": "Malleco",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Lumaco",
"code": "09207",
"provincia": "Malleco",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Purén",
"code": "09208",
"provincia": "Malleco",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Renaico",
"code": "09209",
"provincia": "Malleco",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Traiguén",
"code": "09210",
"provincia": "Malleco",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Victoria",
"code": "09211",
"provincia": "Malleco",
"region": "Región de la Araucanía",
"region_number": "IX",
"region_iso_3166_2": "CL-AR"
},
{
"name": "Valdivia",
"code": "14101",
"provincia": "Valdivia",
"region": "Región de los Ríos",
"region_number": "XIV",
"region_iso_3166_2": "CL-LR"
},
{
"name": "Corral",
"code": "14102",
"provincia": "Valdivia",
"region": "Región de los Ríos",
"region_number": "XIV",
"region_iso_3166_2": "CL-LR"
},
{
"name": "Lanco",
"code": "14103",
"provincia": "Valdivia",
"region": "Región de los Ríos",
"region_number": "XIV",
"region_iso_3166_2": "CL-LR"
},
{
"name": "Los Lagos",
"code": "14104",
"provincia": "Valdivia",
"region": "Región de los Ríos",
"region_number": "XIV",
"region_iso_3166_2": "CL-LR"
},
{
"name": "Máfil",
"code": "14105",
"provincia": "Valdivia",
"region": "Región de los Ríos",
"region_number": "XIV",
"region_iso_3166_2": "CL-LR"
},
{
"name": "Mariquina",
"code": "14106",
"provincia": "Valdivia",
"region": "Región de los Ríos",
"region_number": "XIV",
"region_iso_3166_2": "CL-LR"
},
{
"name": "Paillaco",
"code": "14107",
"provincia": "Valdivia",
"region": "Región de los Ríos",
"region_number": "XIV",
"region_iso_3166_2": "CL-LR"
},
{
"name": "Panguipulli",
"code": "14108",
"provincia": "Valdivia",
"region": "Región de los Ríos",
"region_number": "XIV",
"region_iso_3166_2": "CL-LR"
},
{
"name": "La Unión",
"code": "14201",
"provincia": "Ranco",
"region": "Región de los Ríos",
"region_number": "XIV",
"region_iso_3166_2": "CL-LR"
},
{
"name": "Futrono",
"code": "14201",
"provincia": "Ranco",
"region": "Región de los Ríos",
"region_number": "XIV",
"region_iso_3166_2": "CL-LR"
},
{
"name": "Lago Ranco",
"code": "14201",
"provincia": "Ranco",
"region": "Región de los Ríos",
"region_number": "XIV",
"region_iso_3166_2": "CL-LR"
},
{
"name": "Río Bueno",
"code": "14201",
"provincia": "Ranco",
"region": "Región de los Ríos",
"region_number": "XIV",
"region_iso_3166_2": "CL-LR"
},
{
"name": "Puerto Montt",
"code": "10101",
"provincia": "Llanquihue",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Calbuco",
"code": "10102",
"provincia": "Llanquihue",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Cochamó",
"code": "10103",
"provincia": "Llanquihue",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Fresia",
"code": "10104",
"provincia": "Llanquihue",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Frutillar",
"code": "10105",
"provincia": "Llanquihue",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Los Muermos",
"code": "10106",
"provincia": "Llanquihue",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Llanquihue",
"code": "10107",
"provincia": "Llanquihue",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Maullín",
"code": "10108",
"provincia": "Llanquihue",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Puerto Varas",
"code": "10109",
"provincia": "Llanquihue",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Castro",
"code": "10201",
"provincia": "Chiloé",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Ancud",
"code": "10202",
"provincia": "Chiloé",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Chonchi",
"code": "10203",
"provincia": "Chiloé",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Curaco de Vélez",
"code": "10204",
"provincia": "Chiloé",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Dalcahue",
"code": "10205",
"provincia": "Chiloé",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Puqueldón",
"code": "10206",
"provincia": "Chiloé",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Queilén",
"code": "10207",
"provincia": "Chiloé",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Quellón",
"code": "10208",
"provincia": "Chiloé",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Quemchi",
"code": "10209",
"provincia": "Chiloé",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Quinchao",
"code": "10210",
"provincia": "Chiloé",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Osorno",
"code": "10301",
"provincia": "Osorno",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Puerto Octay",
"code": "10302",
"provincia": "Osorno",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Purranque",
"code": "10303",
"provincia": "Osorno",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Puyehue",
"code": "10304",
"provincia": "Osorno",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Río Negro",
"code": "10305",
"provincia": "Osorno",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "San Juan de la Costa",
"code": "10306",
"provincia": "Osorno",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "San Pablo",
"code": "10307",
"provincia": "Osorno",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Chaitén",
"code": "10401",
"provincia": "Palena",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Futaleufú",
"code": "10402",
"provincia": "Palena",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Hualaihué",
"code": "10403",
"provincia": "Palena",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Palena",
"code": "10404",
"provincia": "Palena",
"region": "Región de los Lagos",
"region_number": "X",
"region_iso_3166_2": "CL-LL"
},
{
"name": "Coihaique",
"code": "11101",
"provincia": "Coihaique",
"region": "Región Aisén del Gral. Carlos Ibañez del Campo",
"region_number": "XI",
"region_iso_3166_2": "CL-AI"
},
{
"name": "Lago Verde",
"code": "11102",
"provincia": "Coihaique",
"region": "Región Aisén del Gral. Carlos Ibañez del Campo",
"region_number": "XI",
"region_iso_3166_2": "CL-AI"
},
{
"name": "Aisén",
"code": "11201",
"provincia": "Aisén",
"region": "Región Aisén del Gral. Carlos Ibañez del Campo",
"region_number": "XI",
"region_iso_3166_2": "CL-AI"
},
{
"name": "Cisnes",
"code": "11202",
"provincia": "Aisén",
"region": "Región Aisén del Gral. Carlos Ibañez del Campo",
"region_number": "XI",
"region_iso_3166_2": "CL-AI"
},
{
"name": "Guaitecas",
"code": "11203",
"provincia": "Aisén",
"region": "Región Aisén del Gral. Carlos Ibañez del Campo",
"region_number": "XI",
"region_iso_3166_2": "CL-AI"
},
{
"name": "Cochrane",
"code": "11301",
"provincia": "Capitán Pratt",
"region": "Región Aisén del Gral. Carlos Ibañez del Campo",
"region_number": "XI",
"region_iso_3166_2": "CL-AI"
},
{
"name": "O’Higgins",
"code": "11302",
"provincia": "Capitán Pratt",
"region": "Región Aisén del Gral. Carlos Ibañez del Campo",
"region_number": "XI",
"region_iso_3166_2": "CL-AI"
},
{
"name": "Tortel",
"code": "11303",
"provincia": "Capitán Pratt",
"region": "Región Aisén del Gral. Carlos Ibañez del Campo",
"region_number": "XI",
"region_iso_3166_2": "CL-AI"
},
{
"name": "Chile Chico",
"code": "11401",
"provincia": "General Carrera",
"region": "Región Aisén del Gral. Carlos Ibañez del Campo",
"region_number": "XI",
"region_iso_3166_2": "CL-AI"
},
{
"name": "Río Ibáñez",
"code": "11402",
"provincia": "General Carrera",
"region": "Región Aisén del Gral. Carlos Ibañez del Campo",
"region_number": "XI",
"region_iso_3166_2": "CL-AI"
},
{
"name": "Punta Arenas",
"code": "12101",
"provincia": "Magallanes",
"region": "Región de Magallanes y de la Antártica Chilena",
"region_number": "XII",
"region_iso_3166_2": "CL-MA"
},
{
"name": "Laguna Blanca",
"code": "12102",
"provincia": "Magallanes",
"region": "Región de Magallanes y de la Antártica Chilena",
"region_number": "XII",
"region_iso_3166_2": "CL-MA"
},
{
"name": "Río Verde",
"code": "12103",
"provincia": "Magallanes",
"region": "Región de Magallanes y de la Antártica Chilena",
"region_number": "XII",
"region_iso_3166_2": "CL-MA"
},
{
"name": "San Gregorio",
"code": "12104",
"provincia": "Magallanes",
"region": "Región de Magallanes y de la Antártica Chilena",
"region_number": "XII",
"region_iso_3166_2": "CL-MA"
},
{
"name": "Cabo de Hornos (Ex. Navarino)",
"code": "12201",
"provincia": "Antártica Chilena",
"region": "Región de Magallanes y de la Antártica Chilena",
"region_number": "XII",
"region_iso_3166_2": "CL-MA"
},
{
"name": "Antártica",
"code": "12202",
"provincia": "Antártica Chilena",
"region": "Región de Magallanes y de la Antártica Chilena",
"region_number": "XII",
"region_iso_3166_2": "CL-MA"
},
{
"name": "Porvenir",
"code": "12301",
"provincia": "Tierra del Fuego",
"region": "Región de Magallanes y de la Antártica Chilena",
"region_number": "XII",
"region_iso_3166_2": "CL-MA"
},
{
"name": "Primavera",
"code": "12302",
"provincia": "Tierra del Fuego",
"region": "Región de Magallanes y de la Antártica Chilena",
"region_number": "XII",
"region_iso_3166_2": "CL-MA"
},
{
"name": "Timaukel",
"code": "12303",
"provincia": "Tierra del Fuego",
"region": "Región de Magallanes y de la Antártica Chilena",
"region_number": "XII",
"region_iso_3166_2": "CL-MA"
},
{
"name": "Natales",
"code": "12401",
"provincia": "Última Esperanza",
"region": "Región de Magallanes y de la Antártica Chilena",
"region_number": "XII",
"region_iso_3166_2": "CL-MA"
},
{
"name": "Torres del Paine",
"code": "12402",
"provincia": "Última Esperanza",
"region": "Región de Magallanes y de la Antártica Chilena",
"region_number": "XII",
"region_iso_3166_2": "CL-MA"
},
{
"name": "Santiago",
"code": "13101",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Cerrillos",
"code": "13102",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Cerro Navia",
"code": "13103",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Conchalí",
"code": "13104",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "El Bosque",
"code": "13105",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Estación Central",
"code": "13106",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Huechuraba",
"code": "13107",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Independencia",
"code": "13108",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "La Cisterna",
"code": "13109",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "La Florida",
"code": "13110",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "La Granja",
"code": "13111",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "La Pintana",
"code": "13112",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "La Reina",
"code": "13113",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Las Condes",
"code": "13114",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII"
},
{
"name": "Lo Barnechea",
"code": "13115",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Lo Espejo",
"code": "13116",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Lo Prado",
"code": "13117",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Macul",
"code": "13118",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Maipú",
"code": "13119",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Ñuñoa",
"code": "13120",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Pedro Aguirre Cerda",
"code": "13121",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Peñalolén",
"code": "13122",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Providencia",
"code": "13123",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Pudahuel",
"code": "13124",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Quilicura",
"code": "13125",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Quinta Normal",
"code": "13126",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Recoleta",
"code": "13127",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Renca",
"code": "13128",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "San Joaquín",
"code": "13129",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "San Miguel",
"code": "13130",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "San Ramón",
"code": "13131",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Vitacura",
"code": "13132",
"provincia": "Santiago",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Puente Alto",
"code": "13201",
"provincia": "Cordillera",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Pirque",
"code": "13202",
"provincia": "Cordillera",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "San José de Maipo",
"code": "13203",
"provincia": "Cordillera",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Colina",
"code": "13301",
"provincia": "Chacabuco",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Lampa",
"code": "13302",
"provincia": "Chacabuco",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Tiltil",
"code": "13303",
"provincia": "Chacabuco",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "San Bernardo",
"code": "13401",
"provincia": "Maipo",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Buin",
"code": "13402",
"provincia": "Maipo",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Calera de Tango",
"code": "13403",
"provincia": "Maipo",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Paine",
"code": "13404",
"provincia": "Maipo",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Melipilla",
"code": "13501",
"provincia": "Mellipilla",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Alhué",
"code": "13502",
"provincia": "Mellipilla",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Curacaví",
"code": "13503",
"provincia": "Mellipilla",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "María Pinto",
"code": "13504",
"provincia": "Mellipilla",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "San Pedro",
"code": "13505",
"provincia": "Mellipilla",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Talagante",
"code": "13601",
"provincia": "Talagante",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "El Monte",
"code": "13602",
"provincia": "Talagante",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Isla de Maipo",
"code": "13603",
"provincia": "Talagante",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Padre Hurtado",
"code": "13604",
"provincia": "Talagante",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
},
{
"name": "Peñaflor",
"code": "13605",
"provincia": "Talagante",
"region": "Región Metropolitana de Santiago",
"region_number": "XIII",
"region_iso_3166_2": "CL-RM"
}
]
# encoding: utf-8
# Comunas de Chile
# See http://www.subdere.gov.cl/documentacion/regiones-provincias-y-comunas-de-chile
# Last modified: 2013-02-12
#
# Note: the 'ciudad' is not an administrative division, yet is widely used by people.
#
ChileanCities::Comuna.find_or_create_by_name(name: "Arica", code: "15101", provincia: "Arica", region: "Arica y Parinacota", region_number: "XV")
ChileanCities::Comuna.find_or_create_by_name(name: "Camarones", code: "15102", provincia: "Arica", region: "Arica y Parinacota", region_number: "XV")
ChileanCities::Comuna.find_or_create_by_name(name: "Putre", code: "15201", provincia: "Parinacota", region: "Arica y Parinacota", region_number: "XV")
ChileanCities::Comuna.find_or_create_by_name(name: "General Lagos", code: "15202", provincia: "Parinacota", region: "Arica y Parinacota", region_number: "XV")
ChileanCities::Comuna.find_or_create_by_name(name: "Iquique", code: "01101", provincia: "Iquique", region: "Tarapacá", region_number: "I")
ChileanCities::Comuna.find_or_create_by_name(name: "Alto Hospicio", code: "01102", provincia: "Iquique", region: "Tarapacá", region_number: "I")
ChileanCities::Comuna.find_or_create_by_name(name: "Pozo Almonte", code: "01201", provincia: "Tamarugal", region: "Tarapacá", region_number: "I")
ChileanCities::Comuna.find_or_create_by_name(name: "Camiña", code: "01402", provincia: "Tamarugal", region: "Tarapacá", region_number: "I")
ChileanCities::Comuna.find_or_create_by_name(name: "Colchane", code: "01403", provincia: "Tamarugal", region: "Tarapacá", region_number: "I")
ChileanCities::Comuna.find_or_create_by_name(name: "Huara", code: "01404", provincia: "Tamarugal", region: "Tarapacá", region_number: "I")
ChileanCities::Comuna.find_or_create_by_name(name: "Pica", code: "01405", provincia: "Tamarugal", region: "Tarapacá", region_number: "I")
ChileanCities::Comuna.find_or_create_by_name(name: "Antofagasta", code: "02101", provincia: "Antofagasta", region: "Antofagasta", region_number: "II")
ChileanCities::Comuna.find_or_create_by_name(name: "Mejillones", code: "02102", provincia: "Antofagasta", region: "Antofagasta", region_number: "II")
ChileanCities::Comuna.find_or_create_by_name(name: "Sierra Gorda", code: "02103", provincia: "Antofagasta", region: "Antofagasta", region_number: "II")
ChileanCities::Comuna.find_or_create_by_name(name: "Taltal", code: "02104", provincia: "Antofagasta", region: "Antofagasta", region_number: "II")
ChileanCities::Comuna.find_or_create_by_name(name: "Calama", code: "02201", provincia: "El Loa", region: "Antofagasta", region_number: "II")
ChileanCities::Comuna.find_or_create_by_name(name: "Ollagüe", code: "02202", provincia: "El Loa", region: "Antofagasta", region_number: "II")
ChileanCities::Comuna.find_or_create_by_name(name: "San Pedro de Atacama", code: "02203", provincia: "El Loa", region: "Antofagasta", region_number: "II")
ChileanCities::Comuna.find_or_create_by_name(name: "Tocopilla", code: "02301", provincia: "Tocopilla", region: "Antofagasta", region_number: "II")
ChileanCities::Comuna.find_or_create_by_name(name: "María Elena", code: "02302", provincia: "Tocopilla", region: "Antofagasta", region_number: "II")
ChileanCities::Comuna.find_or_create_by_name(name: "Copiapó", code: "03101", provincia: "Copiapó", region: "Atacama", region_number: "III")
ChileanCities::Comuna.find_or_create_by_name(name: "Caldera", code: "03102", provincia: "Copiapó", region: "Atacama", region_number: "III")
ChileanCities::Comuna.find_or_create_by_name(name: "Tierra Amarilla", code: "03103", provincia: "Copiapó", region: "Atacama", region_number: "III")
ChileanCities::Comuna.find_or_create_by_name(name: "Chañaral", code: "03201", provincia: "Chañaral", region: "Atacama", region_number: "III")
ChileanCities::Comuna.find_or_create_by_name(name: "Diego de Almagro", code: "03202", provincia: "Chañaral", region: "Atacama", region_number: "III")
ChileanCities::Comuna.find_or_create_by_name(name: "Vallenar", code: "03301", provincia: "Huasco", region: "Atacama", region_number: "III")
ChileanCities::Comuna.find_or_create_by_name(name: "Alto del Carmen", code: "03302", provincia: "Huasco", region: "Atacama", region_number: "III")
ChileanCities::Comuna.find_or_create_by_name(name: "Freirina", code: "03303", provincia: "Huasco", region: "Atacama", region_number: "III")
ChileanCities::Comuna.find_or_create_by_name(name: "Huasco", code: "03304", provincia: "Huasco", region: "Atacama", region_number: "III")
ChileanCities::Comuna.find_or_create_by_name(name: "La Serena", code: "04101", provincia: "Elqui", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "Coquimbo", code: "04102", provincia: "Elqui", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "Andacollo", code: "04103", provincia: "Elqui", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "La Higuera", code: "04104", provincia: "Elqui", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "Paiguano", code: "04105", provincia: "Elqui", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "Vicuña", code: "04106", provincia: "Elqui", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "Illapel", code: "04201", provincia: "Choapa", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "Canela", code: "04202", provincia: "Choapa", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "Los Vilos", code: "04203", provincia: "Choapa", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "Salamanca", code: "04204", provincia: "Choapa", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "Ovalle", code: "04301", provincia: "Limarí", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "Combarbalá", code: "04302", provincia: "Limarí", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "Monte Patria", code: "04303", provincia: "Limarí", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "Punitaqui", code: "04304", provincia: "Limarí", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "Río Hurtado", code: "04305", provincia: "Limarí", region: "Coquimbo", region_number: "IV")
ChileanCities::Comuna.find_or_create_by_name(name: "Valparaíso", code: "05101", provincia: "Valparaíso", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Casablanca", code: "05102", provincia: "Valparaíso", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Concón", code: "05103", provincia: "Valparaíso", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Juan Fernández", code: "05104", provincia: "Valparaíso", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Puchuncaví", code: "05105", provincia: "Valparaíso", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Quintero", code: "05107", provincia: "Valparaíso", region: "Valparaíso", region_number: "V") # 05107
ChileanCities::Comuna.find_or_create_by_name(name: "Viña del Mar", code: "05109", provincia: "Valparaíso", region: "Valparaíso", region_number: "V") # 05109
ChileanCities::Comuna.find_or_create_by_name(name: "Isla de Pascua", code: "05201", provincia: "Isla de Pascua", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Los Andes", code: "05301", provincia: "Los Andes", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Calle Larga", code: "05302", provincia: "Los Andes", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Riconada", code: "05303", provincia: "Los Andes", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "San Esteban", code: "05304", provincia: "Los Andes", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "La Ligua", code: "05401", provincia: "Petorca", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Cabildo", code: "05402", provincia: "Petorca", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Papudo", code: "05403", provincia: "Petorca", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Petorca", code: "05404", provincia: "Petorca", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Zapallar", code: "05405", provincia: "Petorca", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Quillota", code: "05501", provincia: "Quillota", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Calera", code: "05502", provincia: "Quillota", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Hijuelas", code: "05503", provincia: "Quillota", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "La Cruz", code: "05504", provincia: "Quillota", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Nogales", code: "05506", provincia: "Quillota", region: "Valparaíso", region_number: "V") # 05506
ChileanCities::Comuna.find_or_create_by_name(name: "San Antonio", code: "05601", provincia: "San Antonio", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Algarrobo", code: "05602", provincia: "San Antonio", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Cartagena", code: "05603", provincia: "San Antonio", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "El Quisco", code: "05604", provincia: "San Antonio", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "El Tabo", code: "05605", provincia: "San Antonio", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Santo Domingo", code: "05606", provincia: "San Antonio", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "San Felipe", code: "05701", provincia: "San Felipe de Aconcagua", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Catemu", code: "05702", provincia: "San Felipe de Aconcagua", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Llaillay", code: "05703", provincia: "San Felipe de Aconcagua", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Panquehue", code: "05704", provincia: "San Felipe de Aconcagua", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Putaendo", code: "05705", provincia: "San Felipe de Aconcagua", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Santa María", code: "05706", provincia: "San Felipe de Aconcagua", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Quilpué", code: "05801", provincia: "Marga Marga", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Limache", code: "05802", provincia: "Marga Marga", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Olmué", code: "05803", provincia: "Marga Marga", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Villa Alemana", code: "05804", provincia: "Marga Marga", region: "Valparaíso", region_number: "V")
ChileanCities::Comuna.find_or_create_by_name(name: "Rancagua", code: "06101", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Codegua", code: "06102", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Coinco", code: "06103", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Coltauco", code: "06104", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Doñihue", code: "06105", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Graneros", code: "06106", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Las Cabras", code: "06107", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Machalí", code: "06108", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Malloa", code: "06109", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Mostazal", code: "06110", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Olivar", code: "06111", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Peumo", code: "06112", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Pichidegua", code: "06113", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Quinta de Tilcoco", code: "06114", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Rengo", code: "06115", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Requínoa", code: "06116", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "San Vicente", code: "06117", provincia: "Cachapoal", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Pichilemu", code: "06201", provincia: "Cardenal Caro", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "La Estrella", code: "06202", provincia: "Cardenal Caro", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Litueche", code: "06203", provincia: "Cardenal Caro", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Marichihue", code: "06204", provincia: "Cardenal Caro", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Navidad", code: "06205", provincia: "Cardenal Caro", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Paredones", code: "06206", provincia: "Cardenal Caro", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "San Fernando", code: "06301", provincia: "Colchagua", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Chépica", code: "06302", provincia: "Colchagua", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Chimbarongo", code: "06303", provincia: "Colchagua", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Lolol", code: "06304", provincia: "Colchagua", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Nancagua", code: "06305", provincia: "Colchagua", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Palmilla", code: "06306", provincia: "Colchagua", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Peralillo", code: "06307", provincia: "Colchagua", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Placilla", code: "06308", provincia: "Colchagua", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Pumanque", code: "06309", provincia: "Colchagua", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Santa Cruz", code: "06310", provincia: "Colchagua", region: "Región del Libertador Gral. Bernardo O'Higgins", region_number: "VI")
ChileanCities::Comuna.find_or_create_by_name(name: "Talca", code: "07101", provincia: "Talca", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Constitución", code: "07102", provincia: "Talca", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Curepto", code: "07103", provincia: "Talca", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Empedrado", code: "07104", provincia: "Talca", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Maule", code: "07105", provincia: "Talca", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Pelarco", code: "07106", provincia: "Talca", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Pencahue", code: "07107", provincia: "Talca", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Río Claro", code: "07108", provincia: "Talca", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Clemente", code: "07109", provincia: "Talca", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Rafael", code: "07110", provincia: "Talca", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Cauquenes", code: "07201", provincia: "Cauquenes", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Chanco", code: "07202", provincia: "Cauquenes", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Pelluhue", code: "07203", provincia: "Cauquenes", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Curicó", code: "07301", provincia: "Curicó", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Hualañé", code: "07302", provincia: "Curicó", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Licantén", code: "07303", provincia: "Curicó", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Molina", code: "07304", provincia: "Curicó", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Rauco", code: "07305", provincia: "Curicó", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Romeral", code: "07306", provincia: "Curicó", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Sagrada Familia", code: "07307", provincia: "Curicó", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Teno", code: "07308", provincia: "Curicó", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Vichuquén", code: "07309", provincia: "Curicó", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Linares", code: "07401", provincia: "Linares", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Colbún", code: "07402", provincia: "Linares", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Longaví", code: "07403", provincia: "Linares", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Parral", code: "07404", provincia: "Linares", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Retiro", code: "07405", provincia: "Linares", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Javier", code: "07406", provincia: "Linares", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Villa Alegre", code: "07407", provincia: "Linares", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Yerbas Buenas", code: "07408", provincia: "Linares", region: "Región del Maule", region_number: "VII")
ChileanCities::Comuna.find_or_create_by_name(name: "Concepción", code: "08101", provincia: "Concepción", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Coronel", code: "08102", provincia: "Concepción", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Chiguayante", code: "08103", provincia: "Concepción", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Florida", code: "08104", provincia: "Concepción", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Hualqui", code: "08105", provincia: "Concepción", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Lota", code: "08106", provincia: "Concepción", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Penco", code: "08107", provincia: "Concepción", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Pedro de la Paz", code: "08108", provincia: "Concepción", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Santa Juana", code: "08109", provincia: "Concepción", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Talcahuano", code: "08110", provincia: "Concepción", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Tomé", code: "08111", provincia: "Concepción", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Hualpén", code: "08112", provincia: "Concepción", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Lebu", code: "08201", provincia: "Arauco", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Arauco", code: "08202", provincia: "Arauco", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Cañete", code: "08203", provincia: "Arauco", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Contulmo", code: "08204", provincia: "Arauco", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Curanilahue", code: "08205", provincia: "Arauco", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Los Álamos", code: "08206", provincia: "Arauco", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Tirúa", code: "08207", provincia: "Arauco", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Los Ángeles", code: "08301", provincia: "Biobío", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Antuco", code: "08302", provincia: "Biobío", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Cabrero", code: "08303", provincia: "Biobío", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Laja", code: "08304", provincia: "Biobío", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Mulchén", code: "08305", provincia: "Biobío", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Nacimiento", code: "08306", provincia: "Biobío", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Negrete", code: "08307", provincia: "Biobío", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Quilaco", code: "08308", provincia: "Biobío", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Quilleco", code: "08309", provincia: "Biobío", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Rosendo", code: "08310", provincia: "Biobío", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Santa Bárbara", code: "08311", provincia: "Biobío", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Tucapel", code: "08312", provincia: "Biobío", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Yumbel", code: "08313", provincia: "Biobío", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Alto Biobío", code: "08314", provincia: "Biobío", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Chillán", code: "08401", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Bulnes", code: "08402", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Cobquecura", code: "08403", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Coelemu", code: "08404", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Coihueco", code: "08405", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Chillán Viejo", code: "08406", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "El Carmen", code: "08407", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Ninhue", code: "08408", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Ñiquén", code: "08409", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Pemuco", code: "08410", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Pinto", code: "08411", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Portezuelo", code: "08412", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Quillón", code: "08413", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Quirihue", code: "08414", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Ránquil", code: "08415", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Carlos", code: "08416", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Fabián", code: "08417", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Ignacio", code: "08418", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Nicolás", code: "08419", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Treguaco", code: "08420", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Yungay", code: "08421", provincia: "Ñuble", region: "Región del Biobío", region_number: "VIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Temuco", code: "09101", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Carahu", code: "09102", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Cunco", code: "09103", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Curarrehue", code: "09104", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Freire", code: "09105", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Galvarin", code: "09106", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Gorbea", code: "09107", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Lautaro", code: "09108", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Loncoche", code: "09109", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Melipeuco", code: "09110", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Nueva Imperial", code: "09111", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Padre las Casa", code: "09112", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Perquenco", code: "09113", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Pitrufquén", code: "09114", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Pucó", code: "09115", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Saavedra", code: "09116", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Teodoro Schmid", code: "09117", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Toltén", code: "09118", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Vilcún", code: "09119", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Villarrica", code: "09120", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Cholchol", code: "09121", provincia: "Cautín", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Angol", code: "09201", provincia: "Malleco", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Collipulli", code: "09202", provincia: "Malleco", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Curacautín", code: "09203", provincia: "Malleco", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Ercilla", code: "09204", provincia: "Malleco", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Lonquimay", code: "09205", provincia: "Malleco", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Los Sauces", code: "09206", provincia: "Malleco", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Lumaco", code: "09207", provincia: "Malleco", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Purén", code: "09208", provincia: "Malleco", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Renaico", code: "09209", provincia: "Malleco", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Traiguén", code: "09210", provincia: "Malleco", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Victoria", code: "09211", provincia: "Malleco", region: "Región de la Araucanía", region_number: "IX")
ChileanCities::Comuna.find_or_create_by_name(name: "Valdivia", code: "14101", provincia: "Valdivia", region: "Región de los Ríos", region_number: "XIV")
ChileanCities::Comuna.find_or_create_by_name(name: "Corral", code: "14102", provincia: "Valdivia", region: "Región de los Ríos", region_number: "XIV")
ChileanCities::Comuna.find_or_create_by_name(name: "Lanco", code: "14103", provincia: "Valdivia", region: "Región de los Ríos", region_number: "XIV")
ChileanCities::Comuna.find_or_create_by_name(name: "Los Lagos", code: "14104", provincia: "Valdivia", region: "Región de los Ríos", region_number: "XIV")
ChileanCities::Comuna.find_or_create_by_name(name: "Máfil", code: "14105", provincia: "Valdivia", region: "Región de los Ríos", region_number: "XIV")
ChileanCities::Comuna.find_or_create_by_name(name: "Mariquina", code: "14106", provincia: "Valdivia", region: "Región de los Ríos", region_number: "XIV")
ChileanCities::Comuna.find_or_create_by_name(name: "Paillaco", code: "14107", provincia: "Valdivia", region: "Región de los Ríos", region_number: "XIV")
ChileanCities::Comuna.find_or_create_by_name(name: "Panguipulli", code: "14108", provincia: "Valdivia", region: "Región de los Ríos", region_number: "XIV")
ChileanCities::Comuna.find_or_create_by_name(name: "La Unión", code: "14201", provincia: "Ranco", region: "Región de los Ríos", region_number: "XIV")
ChileanCities::Comuna.find_or_create_by_name(name: "Futrono", code: "14201", provincia: "Ranco", region: "Región de los Ríos", region_number: "XIV")
ChileanCities::Comuna.find_or_create_by_name(name: "Lago Ranco", code: "14201", provincia: "Ranco", region: "Región de los Ríos", region_number: "XIV")
ChileanCities::Comuna.find_or_create_by_name(name: "Río Bueno", code: "14201", provincia: "Ranco", region: "Región de los Ríos", region_number: "XIV")
ChileanCities::Comuna.find_or_create_by_name(name: "Puerto Montt", code: "10101", provincia: "Llanquihue", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Calbuco", code: "10102", provincia: "Llanquihue", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Cochamó", code: "10103", provincia: "Llanquihue", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Fresia", code: "10104", provincia: "Llanquihue", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Frutillar", code: "10105", provincia: "Llanquihue", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Los Muermos", code: "10106", provincia: "Llanquihue", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Llanquihue", code: "10107", provincia: "Llanquihue", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Maullín", code: "10108", provincia: "Llanquihue", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Puerto Varas", code: "10109", provincia: "Llanquihue", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Castro", code: "10201", provincia: "Chiloé", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Ancud", code: "10202", provincia: "Chiloé", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Chonchi", code: "10203", provincia: "Chiloé", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Curaco de Vélez", code: "10204", provincia: "Chiloé", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Dalcahue", code: "10205", provincia: "Chiloé", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Puqueldón", code: "10206", provincia: "Chiloé", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Queilén", code: "10207", provincia: "Chiloé", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Quellón", code: "10208", provincia: "Chiloé", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Quemchi", code: "10209", provincia: "Chiloé", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Quinchao", code: "10210", provincia: "Chiloé", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Osorno", code: "10301", provincia: "Osorno", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Puerto Octay", code: "10302", provincia: "Osorno", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Purranque", code: "10303", provincia: "Osorno", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Puyehue", code: "10304", provincia: "Osorno", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Río Negro", code: "10305", provincia: "Osorno", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "San Juan de la Costa", code: "10306", provincia: "Osorno", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "San Pablo", code: "10307", provincia: "Osorno", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Chaitén", code: "10401", provincia: "Palena", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Futaleufú", code: "10402", provincia: "Palena", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Hualaihué", code: "10403", provincia: "Palena", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Palena", code: "10404", provincia: "Palena", region: "Región de los Lagos", region_number: "X")
ChileanCities::Comuna.find_or_create_by_name(name: "Coihaique", code: "11101", provincia: "Coihaique", region: "Región Aisén del Gral. Carlos Ibañez del Campo", region_number: "XI")
ChileanCities::Comuna.find_or_create_by_name(name: "Lago Verde", code: "11102", provincia: "Coihaique", region: "Región Aisén del Gral. Carlos Ibañez del Campo", region_number: "XI")
ChileanCities::Comuna.find_or_create_by_name(name: "Aisén", code: "11201", provincia: "Aisén", region: "Región Aisén del Gral. Carlos Ibañez del Campo", region_number: "XI")
ChileanCities::Comuna.find_or_create_by_name(name: "Cisnes", code: "11202", provincia: "Aisén", region: "Región Aisén del Gral. Carlos Ibañez del Campo", region_number: "XI")
ChileanCities::Comuna.find_or_create_by_name(name: "Guaitecas", code: "11203", provincia: "Aisén", region: "Región Aisén del Gral. Carlos Ibañez del Campo", region_number: "XI")
ChileanCities::Comuna.find_or_create_by_name(name: "Cochrane", code: "11301", provincia: "Capitán Pratt", region: "Región Aisén del Gral. Carlos Ibañez del Campo", region_number: "XI")
ChileanCities::Comuna.find_or_create_by_name(name: "O’Higgins", code: "11302", provincia: "Capitán Pratt", region: "Región Aisén del Gral. Carlos Ibañez del Campo", region_number: "XI")
ChileanCities::Comuna.find_or_create_by_name(name: "Tortel", code: "11303", provincia: "Capitán Pratt", region: "Región Aisén del Gral. Carlos Ibañez del Campo", region_number: "XI")
ChileanCities::Comuna.find_or_create_by_name(name: "Chile Chico", code: "11401", provincia: "General Carrera", region: "Región Aisén del Gral. Carlos Ibañez del Campo", region_number: "XI")
ChileanCities::Comuna.find_or_create_by_name(name: "Río Ibáñez", code: "11402", provincia: "General Carrera", region: "Región Aisén del Gral. Carlos Ibañez del Campo", region_number: "XI")
ChileanCities::Comuna.find_or_create_by_name(name: "Punta Arenas", code: "12101", provincia: "Magallanes", region: "Región de Magallanes y de la Antártica Chilena", region_number: "XII")
ChileanCities::Comuna.find_or_create_by_name(name: "Laguna Blanca", code: "12102", provincia: "Magallanes", region: "Región de Magallanes y de la Antártica Chilena", region_number: "XII")
ChileanCities::Comuna.find_or_create_by_name(name: "Río Verde", code: "12103", provincia: "Magallanes", region: "Región de Magallanes y de la Antártica Chilena", region_number: "XII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Gregorio", code: "12104", provincia: "Magallanes", region: "Región de Magallanes y de la Antártica Chilena", region_number: "XII")
ChileanCities::Comuna.find_or_create_by_name(name: "Cabo de Hornos (Ex. Navarino)", code: "12201", provincia: "Antártica Chilena", region: "Región de Magallanes y de la Antártica Chilena", region_number: "XII")
ChileanCities::Comuna.find_or_create_by_name(name: "Antártica", code: "12202", provincia: "Antártica Chilena", region: "Región de Magallanes y de la Antártica Chilena", region_number: "XII")
ChileanCities::Comuna.find_or_create_by_name(name: "Porvenir", code: "12301", provincia: "Tierra del Fuego", region: "Región de Magallanes y de la Antártica Chilena", region_number: "XII")
ChileanCities::Comuna.find_or_create_by_name(name: "Primavera", code: "12302", provincia: "Tierra del Fuego", region: "Región de Magallanes y de la Antártica Chilena", region_number: "XII")
ChileanCities::Comuna.find_or_create_by_name(name: "Timaukel", code: "12303", provincia: "Tierra del Fuego", region: "Región de Magallanes y de la Antártica Chilena", region_number: "XII")
ChileanCities::Comuna.find_or_create_by_name(name: "Natales", code: "12401", provincia: "Última Esperanza", region: "Región de Magallanes y de la Antártica Chilena", region_number: "XII")
ChileanCities::Comuna.find_or_create_by_name(name: "Torres del Paine", code: "12402", provincia: "Última Esperanza", region: "Región de Magallanes y de la Antártica Chilena", region_number: "XII")
ChileanCities::Comuna.find_or_create_by_name(name: "Santiago", code: "13101", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Cerrillos", code: "13102", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Cerro Navia", code: "13103", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Conchalí", code: "13104", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "El Bosque", code: "13105", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Estación Central", code: "13106", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Huechuraba", code: "13107", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Independencia", code: "13108", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "La Cisterna", code: "13109", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "La Florida", code: "13110", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "La Granja", code: "13111", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "La Pintana", code: "13112", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "La Reina", code: "13113", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Las Condes", code: "13114", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Lo Barnechea", code: "13115", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Lo Espejo", code: "13116", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Lo Prado", code: "13117", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Macul", code: "13118", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Maipú", code: "13119", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Ñuñoa", code: "13120", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Pedro Aguirre Cerda", code: "13121", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Peñalolén", code: "13122", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Providencia", code: "13123", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Pudahuel", code: "13124", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Quilicura", code: "13125", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Quinta Normal", code: "13126", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Recoleta", code: "13127", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Renca", code: "13128", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Joaquín", code: "13129", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Miguel", code: "13130", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Ramón", code: "13131", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Vitacura", code: "13132", provincia: "Santiago", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Puente Alto", code: "13201", provincia: "Cordillera", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Pirque", code: "13202", provincia: "Cordillera", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "San José de Maipo", code: "13203", provincia: "Cordillera", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Colina", code: "13301", provincia: "Chacabuco", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Lampa", code: "13302", provincia: "Chacabuco", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Tiltil", code: "13303", provincia: "Chacabuco", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Bernardo", code: "13401", provincia: "Maipo", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Buin", code: "13402", provincia: "Maipo", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Calera de Tango", code: "13403", provincia: "Maipo", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Paine", code: "13404", provincia: "Maipo", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Melipilla", code: "13501", provincia: "Mellipilla", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Alhué", code: "13502", provincia: "Mellipilla", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Curacaví", code: "13503", provincia: "Mellipilla", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "María Pinto", code: "13504", provincia: "Mellipilla", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "San Pedro", code: "13505", provincia: "Mellipilla", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Talagante", code: "13601", provincia: "Talagante", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "El Monte", code: "13602", provincia: "Talagante", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Isla de Maipo", code: "13603", provincia: "Talagante", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Padre Hurtado", code: "13604", provincia: "Talagante", region: "Región Metropolitana de Santiago", region_number: "XIII")
ChileanCities::Comuna.find_or_create_by_name(name: "Peñaflor", code: "13605", provincia: "Talagante", region: "Región Metropolitana de Santiago", region_number: "XIII")
@rhernandog
Copy link

Hola Gonzalo,

Gracias por los archivos. Utilicé el JSON para una app con React.

Dos detalles, primero Coyhaique lleva Y en la primera, tu la tienes con I. Segundo, utilicé una estructura más sencilla, ya que en tu archivo JSON, incluyes en cada comuna los datos de la región y la provincia. Aún cuando la descripción indica que se trata de comunas, incluir esa información en cada registro aumenta el tamaño de archivo y las posibilidades de cometer un error.

Yo opté por la siguiente estructura:

{
  "region":"Arica y Parinacota",
  "region_number":"XV",
  "region_iso_3166_2":"CL-AP",
  "provincias":[
    {
      "name":"Arica",
      "comunas":[
        {
          "name":"Arica",
          "code":"15101"
        },
        {
          "name":"Camarones",
          "code":"15102"
        }
      ]
    },
    {
      "name":"Parinacota",
      "comunas":[
        {
          "name":"Putre",
          "code":"15201"
        },
        {
          "name":"General Lagos",
          "code":"15202"
        }
      ]
    }
  ]
}

Acá dejo el Gist con este formato:
https://gist.github.com/rhernandog/7d055482f5cc803852a762de873bea62

Ahora normalmente el uso que se le da en las apps acá en Chile es solo las comunas por regiones, de manera que lo simplifiqué a esto:

{
  "region":"Arica y Parinacota",
  "region_iso_3166_2":"CL-AP",
  "region_number":"XV",
  "provincias":["Arica","Parinacota"],
  "comunas":[
    {
      "name":"Arica",
	"code":"15101"
    },
    {
	"name":"Camarones",
	"code":"15102"
    },
    {
        "name": "Putre",
	"code": "15201"
    },
    {
	"name": "General Lagos",
	"code": "15202"
    }
  ]
}

Y acá queda el Gist con este formato:
https://gist.github.com/rhernandog/348c16cd6e8267aa2f752730ac23779e

Saludos,
Rodrigo.

@JamesAndresCM
Copy link

Hice un pequeño ejemplo en rails usando selectores dinamicos por si a alguien le sirve : https://github.com/JamesAndresCM/chile_region_provincia_comuna

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment