Skip to content

Commit

Permalink
Merge pull request #65 from mirumee/update-address-data
Browse files Browse the repository at this point in the history
[Release] 2.5.2 Update country validation rules
  • Loading branch information
artursmet authored Jun 28, 2022
2 parents 87d9abf + b4d7042 commit 95f489a
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion i18naddress/data/all.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion i18naddress/data/cn.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion i18naddress/data/es.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion i18naddress/data/kr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion i18naddress/data/nc.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"NC": {"fmt": "%O%n%N%n%A%n%Z %C %X", "id": "data/NC", "key": "NC", "name": "NEW CALEDONIA", "posturl": "http://poste.opt.nc/index.php?option=com_content&view=article&id=80&Itemid=131", "require": "ACZ", "upper": "ACX", "zip": "988\\d{2}", "zipex": "98814,98800,98810"}}
{"NC": {"fmt": "%O%n%N%n%A%n%Z %C %X", "id": "data/NC", "key": "NC", "name": "NEW CALEDONIA", "posturl": "https://www.opt.nc/particuliers/courrier-et-colis/les-codes-postaux-de-nouvelle-caledonie", "require": "ACZ", "upper": "ACX", "zip": "988\\d{2}", "zipex": "98814,98800,98810"}}
2 changes: 1 addition & 1 deletion i18naddress/data/ni.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"NI": {"fmt": "%N%n%O%n%A%n%Z%n%C, %S", "id": "data/NI", "key": "NI", "lang": "es", "languages": "es", "name": "NICARAGUA", "posturl": "http://www.correos.gob.ni/index.php/codigo-postal-2", "state_name_type": "department", "sub_isoids": "BO~CA~CI~CO~ES~GR~JI~LE~MD~MN~MS~MT~NS~AN~AS~SJ~RI", "sub_keys": "Boaco~Carazo~Chinandega~Chontales~Estelí~Granada~Jinotega~León~Madriz~Managua~Masaya~Matagalpa~Nueva Segovia~Región Autónoma de la Costa Caribe Norte~Región Autónoma de la Costa Caribe Sur~Río San Juan~Rivas", "sub_zips": "5[12]~4[56]~2[5-7]~5[56]~3[12]~4[34]~6[56]~2[12]~3[45]~1[0-6]~4[12]~6[1-3]~3[7-9]~7[12]~8[1-3]~9[12]~4[78]", "upper": "CS", "zip": "\\d{5}", "zipex": "52000"}, "NI/Boaco": {"id": "data/NI/Boaco", "isoid": "BO", "key": "Boaco", "lang": "es", "zip": "5[12]"}, "NI/Carazo": {"id": "data/NI/Carazo", "isoid": "CA", "key": "Carazo", "lang": "es", "zip": "4[56]"}, "NI/Chinandega": {"id": "data/NI/Chinandega", "isoid": "CI", "key": "Chinandega", "lang": "es", "zip": "2[5-7]"}, "NI/Chontales": {"id": "data/NI/Chontales", "isoid": "CO", "key": "Chontales", "lang": "es", "zip": "5[56]"}, "NI/Estelí": {"id": "data/NI/Estelí", "isoid": "ES", "key": "Estelí", "lang": "es", "zip": "3[12]"}, "NI/Granada": {"id": "data/NI/Granada", "isoid": "GR", "key": "Granada", "lang": "es", "zip": "4[34]"}, "NI/Jinotega": {"id": "data/NI/Jinotega", "isoid": "JI", "key": "Jinotega", "lang": "es", "zip": "6[56]"}, "NI/León": {"id": "data/NI/León", "isoid": "LE", "key": "León", "lang": "es", "zip": "2[12]"}, "NI/Madriz": {"id": "data/NI/Madriz", "isoid": "MD", "key": "Madriz", "lang": "es", "zip": "3[45]"}, "NI/Managua": {"id": "data/NI/Managua", "isoid": "MN", "key": "Managua", "lang": "es", "zip": "1[0-6]"}, "NI/Masaya": {"id": "data/NI/Masaya", "isoid": "MS", "key": "Masaya", "lang": "es", "zip": "4[12]"}, "NI/Matagalpa": {"id": "data/NI/Matagalpa", "isoid": "MT", "key": "Matagalpa", "lang": "es", "zip": "6[1-3]"}, "NI/Nueva Segovia": {"id": "data/NI/Nueva Segovia", "isoid": "NS", "key": "Nueva Segovia", "lang": "es", "zip": "3[7-9]"}, "NI/Región Autónoma de la Costa Caribe Norte": {"id": "data/NI/Región Autónoma de la Costa Caribe Norte", "isoid": "AN", "key": "Región Autónoma de la Costa Caribe Norte", "lang": "es", "zip": "7[12]"}, "NI/Región Autónoma de la Costa Caribe Sur": {"id": "data/NI/Región Autónoma de la Costa Caribe Sur", "isoid": "AS", "key": "Región Autónoma de la Costa Caribe Sur", "lang": "es", "zip": "8[1-3]"}, "NI/Rivas": {"id": "data/NI/Rivas", "isoid": "RI", "key": "Rivas", "lang": "es", "zip": "4[78]"}, "NI/Río San Juan": {"id": "data/NI/Río San Juan", "isoid": "SJ", "key": "Río San Juan", "lang": "es", "zip": "9[12]"}}
{"NI": {"fmt": "%N%n%O%n%A%n%Z%n%C, %S", "id": "data/NI", "key": "NI", "lang": "es", "languages": "es", "name": "NICARAGUA", "posturl": "http://www.correos.gob.ni/codigo-postal/", "state_name_type": "department", "sub_isoids": "BO~CA~CI~CO~ES~GR~JI~LE~MD~MN~MS~MT~NS~AN~AS~SJ~RI", "sub_keys": "Boaco~Carazo~Chinandega~Chontales~Estelí~Granada~Jinotega~León~Madriz~Managua~Masaya~Matagalpa~Nueva Segovia~Región Autónoma de la Costa Caribe Norte~Región Autónoma de la Costa Caribe Sur~Río San Juan~Rivas", "sub_zips": "5[12]~4[56]~2[5-7]~5[56]~3[12]~4[34]~6[56]~2[12]~3[45]~1[0-6]~4[12]~6[1-3]~3[7-9]~7[12]~8[1-3]~9[12]~4[78]", "upper": "CS", "zip": "\\d{5}", "zipex": "52000"}, "NI/Boaco": {"id": "data/NI/Boaco", "isoid": "BO", "key": "Boaco", "lang": "es", "zip": "5[12]"}, "NI/Carazo": {"id": "data/NI/Carazo", "isoid": "CA", "key": "Carazo", "lang": "es", "zip": "4[56]"}, "NI/Chinandega": {"id": "data/NI/Chinandega", "isoid": "CI", "key": "Chinandega", "lang": "es", "zip": "2[5-7]"}, "NI/Chontales": {"id": "data/NI/Chontales", "isoid": "CO", "key": "Chontales", "lang": "es", "zip": "5[56]"}, "NI/Estelí": {"id": "data/NI/Estelí", "isoid": "ES", "key": "Estelí", "lang": "es", "zip": "3[12]"}, "NI/Granada": {"id": "data/NI/Granada", "isoid": "GR", "key": "Granada", "lang": "es", "zip": "4[34]"}, "NI/Jinotega": {"id": "data/NI/Jinotega", "isoid": "JI", "key": "Jinotega", "lang": "es", "zip": "6[56]"}, "NI/León": {"id": "data/NI/León", "isoid": "LE", "key": "León", "lang": "es", "zip": "2[12]"}, "NI/Madriz": {"id": "data/NI/Madriz", "isoid": "MD", "key": "Madriz", "lang": "es", "zip": "3[45]"}, "NI/Managua": {"id": "data/NI/Managua", "isoid": "MN", "key": "Managua", "lang": "es", "zip": "1[0-6]"}, "NI/Masaya": {"id": "data/NI/Masaya", "isoid": "MS", "key": "Masaya", "lang": "es", "zip": "4[12]"}, "NI/Matagalpa": {"id": "data/NI/Matagalpa", "isoid": "MT", "key": "Matagalpa", "lang": "es", "zip": "6[1-3]"}, "NI/Nueva Segovia": {"id": "data/NI/Nueva Segovia", "isoid": "NS", "key": "Nueva Segovia", "lang": "es", "zip": "3[7-9]"}, "NI/Región Autónoma de la Costa Caribe Norte": {"id": "data/NI/Región Autónoma de la Costa Caribe Norte", "isoid": "AN", "key": "Región Autónoma de la Costa Caribe Norte", "lang": "es", "zip": "7[12]"}, "NI/Región Autónoma de la Costa Caribe Sur": {"id": "data/NI/Región Autónoma de la Costa Caribe Sur", "isoid": "AS", "key": "Región Autónoma de la Costa Caribe Sur", "lang": "es", "zip": "8[1-3]"}, "NI/Rivas": {"id": "data/NI/Rivas", "isoid": "RI", "key": "Rivas", "lang": "es", "zip": "4[78]"}, "NI/Río San Juan": {"id": "data/NI/Río San Juan", "isoid": "SJ", "key": "Río San Juan", "lang": "es", "zip": "9[12]"}}
2 changes: 1 addition & 1 deletion i18naddress/data/pe.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"PE": {"fmt": "%N%n%O%n%A%n%C %Z%n%S", "id": "data/PE", "key": "PE", "lang": "es", "languages": "es", "locality_name_type": "district", "name": "PERU", "posturl": "http://www.serpost.com.pe/cpostal/codigo", "sub_isoids": "AMA~ANC~APU~ARE~AYA~CAJ~CAL~CUS~LIM~HUV~HUC~ICA~JUN~LAL~LAM~LOR~MDD~MOQ~LMA~PAS~PIU~PUN~SAM~TAC~TUM~UCA", "sub_keys": "Amazonas~Áncash~Apurímac~Arequipa~Ayacucho~Cajamarca~Callao~Cuzco~Gobierno Regional de Lima~Huancavelica~Huánuco~Ica~Junín~La Libertad~Lambayeque~Loreto~Madre de Dios~Moquegua~Municipalidad Metropolitana de Lima~Pasco~Piura~Puno~San Martín~Tacna~Tumbes~Ucayali", "zip": "(?:LIMA \\d{1,2}|CALLAO 0?\\d)|[0-2]\\d{4}", "zipex": "LIMA 23,LIMA 42,CALLAO 2,02001"}, "PE/Amazonas": {"id": "data/PE/Amazonas", "isoid": "AMA", "key": "Amazonas", "lang": "es"}, "PE/Apurímac": {"id": "data/PE/Apurímac", "isoid": "APU", "key": "Apurímac", "lang": "es"}, "PE/Arequipa": {"id": "data/PE/Arequipa", "isoid": "ARE", "key": "Arequipa", "lang": "es"}, "PE/Ayacucho": {"id": "data/PE/Ayacucho", "isoid": "AYA", "key": "Ayacucho", "lang": "es"}, "PE/Cajamarca": {"id": "data/PE/Cajamarca", "isoid": "CAJ", "key": "Cajamarca", "lang": "es"}, "PE/Callao": {"id": "data/PE/Callao", "isoid": "CAL", "key": "Callao", "lang": "es"}, "PE/Cuzco": {"id": "data/PE/Cuzco", "isoid": "CUS", "key": "Cuzco", "lang": "es"}, "PE/Gobierno Regional de Lima": {"id": "data/PE/Gobierno Regional de Lima", "isoid": "LIM", "key": "Gobierno Regional de Lima", "lang": "es"}, "PE/Huancavelica": {"id": "data/PE/Huancavelica", "isoid": "HUV", "key": "Huancavelica", "lang": "es"}, "PE/Huánuco": {"id": "data/PE/Huánuco", "isoid": "HUC", "key": "Huánuco", "lang": "es"}, "PE/Ica": {"id": "data/PE/Ica", "isoid": "ICA", "key": "Ica", "lang": "es"}, "PE/Junín": {"id": "data/PE/Junín", "isoid": "JUN", "key": "Junín", "lang": "es"}, "PE/La Libertad": {"id": "data/PE/La Libertad", "isoid": "LAL", "key": "La Libertad", "lang": "es"}, "PE/Lambayeque": {"id": "data/PE/Lambayeque", "isoid": "LAM", "key": "Lambayeque", "lang": "es"}, "PE/Loreto": {"id": "data/PE/Loreto", "isoid": "LOR", "key": "Loreto", "lang": "es"}, "PE/Madre de Dios": {"id": "data/PE/Madre de Dios", "isoid": "MDD", "key": "Madre de Dios", "lang": "es"}, "PE/Moquegua": {"id": "data/PE/Moquegua", "isoid": "MOQ", "key": "Moquegua", "lang": "es"}, "PE/Municipalidad Metropolitana de Lima": {"id": "data/PE/Municipalidad Metropolitana de Lima", "isoid": "LMA", "key": "Municipalidad Metropolitana de Lima", "lang": "es"}, "PE/Pasco": {"id": "data/PE/Pasco", "isoid": "PAS", "key": "Pasco", "lang": "es"}, "PE/Piura": {"id": "data/PE/Piura", "isoid": "PIU", "key": "Piura", "lang": "es"}, "PE/Puno": {"id": "data/PE/Puno", "isoid": "PUN", "key": "Puno", "lang": "es"}, "PE/San Martín": {"id": "data/PE/San Martín", "isoid": "SAM", "key": "San Martín", "lang": "es"}, "PE/Tacna": {"id": "data/PE/Tacna", "isoid": "TAC", "key": "Tacna", "lang": "es"}, "PE/Tumbes": {"id": "data/PE/Tumbes", "isoid": "TUM", "key": "Tumbes", "lang": "es"}, "PE/Ucayali": {"id": "data/PE/Ucayali", "isoid": "UCA", "key": "Ucayali", "lang": "es"}, "PE/Áncash": {"id": "data/PE/Áncash", "isoid": "ANC", "key": "Áncash", "lang": "es"}}
{"PE": {"fmt": "%N%n%O%n%A%n%C %Z%n%S", "id": "data/PE", "key": "PE", "lang": "es", "languages": "es", "locality_name_type": "district", "name": "PERU", "posturl": "http://www.codigopostal.gob.pe/pages/invitado/consulta.jsf", "sub_isoids": "AMA~ANC~APU~ARE~AYA~CAJ~CAL~CUS~LIM~HUV~HUC~ICA~JUN~LAL~LAM~LOR~MDD~MOQ~LMA~PAS~PIU~PUN~SAM~TAC~TUM~UCA", "sub_keys": "Amazonas~Áncash~Apurímac~Arequipa~Ayacucho~Cajamarca~Callao~Cuzco~Gobierno Regional de Lima~Huancavelica~Huánuco~Ica~Junín~La Libertad~Lambayeque~Loreto~Madre de Dios~Moquegua~Municipalidad Metropolitana de Lima~Pasco~Piura~Puno~San Martín~Tacna~Tumbes~Ucayali", "zip": "(?:LIMA \\d{1,2}|CALLAO 0?\\d)|[0-2]\\d{4}", "zipex": "LIMA 23,LIMA 42,CALLAO 2,02001"}, "PE/Amazonas": {"id": "data/PE/Amazonas", "isoid": "AMA", "key": "Amazonas", "lang": "es"}, "PE/Apurímac": {"id": "data/PE/Apurímac", "isoid": "APU", "key": "Apurímac", "lang": "es"}, "PE/Arequipa": {"id": "data/PE/Arequipa", "isoid": "ARE", "key": "Arequipa", "lang": "es"}, "PE/Ayacucho": {"id": "data/PE/Ayacucho", "isoid": "AYA", "key": "Ayacucho", "lang": "es"}, "PE/Cajamarca": {"id": "data/PE/Cajamarca", "isoid": "CAJ", "key": "Cajamarca", "lang": "es"}, "PE/Callao": {"id": "data/PE/Callao", "isoid": "CAL", "key": "Callao", "lang": "es"}, "PE/Cuzco": {"id": "data/PE/Cuzco", "isoid": "CUS", "key": "Cuzco", "lang": "es"}, "PE/Gobierno Regional de Lima": {"id": "data/PE/Gobierno Regional de Lima", "isoid": "LIM", "key": "Gobierno Regional de Lima", "lang": "es"}, "PE/Huancavelica": {"id": "data/PE/Huancavelica", "isoid": "HUV", "key": "Huancavelica", "lang": "es"}, "PE/Huánuco": {"id": "data/PE/Huánuco", "isoid": "HUC", "key": "Huánuco", "lang": "es"}, "PE/Ica": {"id": "data/PE/Ica", "isoid": "ICA", "key": "Ica", "lang": "es"}, "PE/Junín": {"id": "data/PE/Junín", "isoid": "JUN", "key": "Junín", "lang": "es"}, "PE/La Libertad": {"id": "data/PE/La Libertad", "isoid": "LAL", "key": "La Libertad", "lang": "es"}, "PE/Lambayeque": {"id": "data/PE/Lambayeque", "isoid": "LAM", "key": "Lambayeque", "lang": "es"}, "PE/Loreto": {"id": "data/PE/Loreto", "isoid": "LOR", "key": "Loreto", "lang": "es"}, "PE/Madre de Dios": {"id": "data/PE/Madre de Dios", "isoid": "MDD", "key": "Madre de Dios", "lang": "es"}, "PE/Moquegua": {"id": "data/PE/Moquegua", "isoid": "MOQ", "key": "Moquegua", "lang": "es"}, "PE/Municipalidad Metropolitana de Lima": {"id": "data/PE/Municipalidad Metropolitana de Lima", "isoid": "LMA", "key": "Municipalidad Metropolitana de Lima", "lang": "es"}, "PE/Pasco": {"id": "data/PE/Pasco", "isoid": "PAS", "key": "Pasco", "lang": "es"}, "PE/Piura": {"id": "data/PE/Piura", "isoid": "PIU", "key": "Piura", "lang": "es"}, "PE/Puno": {"id": "data/PE/Puno", "isoid": "PUN", "key": "Puno", "lang": "es"}, "PE/San Martín": {"id": "data/PE/San Martín", "isoid": "SAM", "key": "San Martín", "lang": "es"}, "PE/Tacna": {"id": "data/PE/Tacna", "isoid": "TAC", "key": "Tacna", "lang": "es"}, "PE/Tumbes": {"id": "data/PE/Tumbes", "isoid": "TUM", "key": "Tumbes", "lang": "es"}, "PE/Ucayali": {"id": "data/PE/Ucayali", "isoid": "UCA", "key": "Ucayali", "lang": "es"}, "PE/Áncash": {"id": "data/PE/Áncash", "isoid": "ANC", "key": "Áncash", "lang": "es"}}
2 changes: 1 addition & 1 deletion i18naddress/data/tw.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_long_description():
author_email="[email protected]",
description="Address validation helpers for Google's i18n address database",
license="BSD",
version="2.5.1",
version="2.5.2",
url="https://github.com/mirumee/google-i18n-address",
packages=find_packages(exclude=["tests"]),
include_package_data=True,
Expand Down

0 comments on commit 95f489a

Please sign in to comment.