Skip to content

Commit

Permalink
Update the dataset.
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanz committed Aug 4, 2016
1 parent 004d715 commit f8839e7
Show file tree
Hide file tree
Showing 47 changed files with 264 additions and 226 deletions.
2 changes: 1 addition & 1 deletion resources/address_format/AM.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "(37)?\\d{4}"
"postal_code_pattern": "(?:37)?\\d{4}"
}
1 change: 1 addition & 0 deletions resources/address_format/BB.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"uppercase_fields": [
"locality"
],
"administrative_area_type": "parish",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "BB\\d{5}"
Expand Down
2 changes: 1 addition & 1 deletion resources/address_format/BH.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "(?:(?:\\d|1[0-2])\\d{2})?"
"postal_code_pattern": "(?:\\d|1[0-2])\\d{2}"
}
2 changes: 1 addition & 1 deletion resources/address_format/BM.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "[A-Z]{2}[ ]?[A-Z0-9]{2}"
"postal_code_pattern": "[A-Z]{2} ?[A-Z0-9]{2}"
}
2 changes: 1 addition & 1 deletion resources/address_format/BN.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "[A-Z]{2}[ ]?\\d{4}"
"postal_code_pattern": "[A-Z]{2} ?\\d{4}"
}
2 changes: 1 addition & 1 deletion resources/address_format/BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"locality_type": "city",
"dependent_locality_type": "neighborhood",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}[\\-]?\\d{3}"
"postal_code_pattern": "\\d{5}-?\\d{3}"
}
2 changes: 1 addition & 1 deletion resources/address_format/CA.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "[ABCEGHJKLMNPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z][ ]?\\d[ABCEGHJ-NPRSTV-Z]\\d"
"postal_code_pattern": "[ABCEGHJKLMNPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z] ?\\d[ABCEGHJ-NPRSTV-Z]\\d"
}
3 changes: 1 addition & 2 deletions resources/address_format/CL.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"locale": "es",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality\n%dependentLocality\n%administrativeArea",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality\n%administrativeArea",
"required_fields": [
"recipient",
"addressLine1",
Expand All @@ -11,7 +11,6 @@
],
"administrative_area_type": "province",
"locality_type": "city",
"dependent_locality_type": "suburb",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{7}"
}
6 changes: 4 additions & 2 deletions resources/address_format/CR.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%administrativeArea, %locality\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
"locality",
"administrativeArea"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4,5}|\\d{3}-\\d{4}"
Expand Down
2 changes: 1 addition & 1 deletion resources/address_format/CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{3}[ ]?\\d{2}"
"postal_code_pattern": "\\d{3} ?\\d{2}"
}
2 changes: 1 addition & 1 deletion resources/address_format/EC.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "(?:[A-Z]\\d{4}[A-Z]|(?:[A-Z]{2})?\\d{6})?"
"postal_code_pattern": "[A-Z]\\d{4}[A-Z]|(?:[A-Z]{2})?\\d{6}"
}
2 changes: 1 addition & 1 deletion resources/address_format/FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{2}[ ]?\\d{3}"
"postal_code_pattern": "\\d{2} ?\\d{3}"
}
5 changes: 2 additions & 3 deletions resources/address_format/GB.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality\n%administrativeArea\n%postalCode",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
Expand All @@ -11,8 +11,7 @@
"locality",
"postalCode"
],
"administrative_area_type": "county",
"locality_type": "post_town",
"postal_code_type": "postal",
"postal_code_pattern": "GIR[ ]?0AA|((AB|AL|B|BA|BB|BD|BH|BL|BN|BR|BS|BT|BX|CA|CB|CF|CH|CM|CO|CR|CT|CV|CW|DA|DD|DE|DG|DH|DL|DN|DT|DY|E|EC|EH|EN|EX|FK|FY|G|GL|GY|GU|HA|HD|HG|HP|HR|HS|HU|HX|IG|IM|IP|IV|JE|KA|KT|KW|KY|L|LA|LD|LE|LL|LN|LS|LU|M|ME|MK|ML|N|NE|NG|NN|NP|NR|NW|OL|OX|PA|PE|PH|PL|PO|PR|RG|RH|RM|S|SA|SE|SG|SK|SL|SM|SN|SO|SP|SR|SS|ST|SW|SY|TA|TD|TF|TN|TQ|TR|TS|TW|UB|W|WA|WC|WD|WF|WN|WR|WS|WV|YO|ZE)(\\d[\\dA-Z]?[ ]?\\d[ABD-HJLN-UW-Z]{2}))|BFPO[ ]?\\d{1,4}"
"postal_code_pattern": "GIR ?0AA|(?:(?:AB|AL|B|BA|BB|BD|BH|BL|BN|BR|BS|BT|BX|CA|CB|CF|CH|CM|CO|CR|CT|CV|CW|DA|DD|DE|DG|DH|DL|DN|DT|DY|E|EC|EH|EN|EX|FK|FY|G|GL|GY|GU|HA|HD|HG|HP|HR|HS|HU|HX|IG|IM|IP|IV|JE|KA|KT|KW|KY|L|LA|LD|LE|LL|LN|LS|LU|M|ME|MK|ML|N|NE|NG|NN|NP|NR|NW|OL|OX|PA|PE|PH|PL|PO|PR|RG|RH|RM|S|SA|SE|SG|SK|SL|SM|SN|SO|SP|SR|SS|ST|SW|SY|TA|TD|TF|TN|TQ|TR|TS|TW|UB|W|WA|WC|WD|WF|WN|WR|WS|WV|YO|ZE)(?:\\d[\\dA-Z]? ?\\d[ABD-HJLN-UW-Z]{2}))|BFPO ?\\d{1,4}"
}
2 changes: 1 addition & 1 deletion resources/address_format/GG.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "GY\\d[\\dA-Z]?[ ]?\\d[ABD-HJLN-UW-Z]{2}"
"postal_code_pattern": "GY\\d[\\dA-Z]? ?\\d[ABD-HJLN-UW-Z]{2}"
}
2 changes: 1 addition & 1 deletion resources/address_format/IE.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"administrative_area_type": "county",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "[\\dA-Z]{3}[ ]?[\\dA-Z]{4}"
"postal_code_pattern": "[\\dA-Z]{3} ?[\\dA-Z]{4}"
}
2 changes: 1 addition & 1 deletion resources/address_format/IM.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "IM\\d[\\dA-Z]?[ ]?\\d[ABD-HJLN-UW-Z]{2}"
"postal_code_pattern": "IM\\d[\\dA-Z]? ?\\d[ABD-HJLN-UW-Z]{2}"
}
2 changes: 1 addition & 1 deletion resources/address_format/JE.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "JE\\d[\\dA-Z]?[ ]?\\d[ABD-HJLN-UW-Z]{2}"
"postal_code_pattern": "JE\\d[\\dA-Z]? ?\\d[ABD-HJLN-UW-Z]{2}"
}
2 changes: 1 addition & 1 deletion resources/address_format/KR.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"locality_type": "city",
"dependent_locality_type": "district",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{3}(?:\\d{2}|[\\-]\\d{3})",
"postal_code_pattern": "\\d{3}(?:\\d{2}|-\\d{3})",
"translations": {
"ko": {
"format": "%administrativeArea %locality%dependentLocality\n%addressLine2\n%addressLine1\n%organization\n%recipient\n%postalCode"
Expand Down
2 changes: 1 addition & 1 deletion resources/address_format/LB.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "(?:(?:\\d{4})(?:[ ]?(?:\\d{4}))?)?"
"postal_code_pattern": "(?:\\d{4})(?: ?(?:\\d{4}))?"
}
2 changes: 1 addition & 1 deletion resources/address_format/LI.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "(948[5-9])|(949[0-7])",
"postal_code_pattern": "948[5-9]|949[0-7]",
"postal_code_prefix": "FL-"
}
2 changes: 1 addition & 1 deletion resources/address_format/MT.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "[A-Z]{3}[ ]?\\d{2,4}"
"postal_code_pattern": "[A-Z]{3} ?\\d{2,4}"
}
2 changes: 1 addition & 1 deletion resources/address_format/MU.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "(?:\\d{3}(?:\\d{2}|[A-Z]{2}\\d{3}))?"
"postal_code_pattern": "\\d{3}(?:\\d{2}|[A-Z]{2}\\d{3})"
}
2 changes: 1 addition & 1 deletion resources/address_format/NG.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"administrative_area_type": "state",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "(?:\\d{6})?"
"postal_code_pattern": "\\d{6}"
}
2 changes: 1 addition & 1 deletion resources/address_format/NL.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}[ ]?[A-Z]{2}"
"postal_code_pattern": "\\d{4} ?[A-Z]{2}"
}
2 changes: 1 addition & 1 deletion resources/address_format/NO.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"locality_type": "post_town",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}
2 changes: 1 addition & 1 deletion resources/address_format/OM.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "(PC )?\\d{3}"
"postal_code_pattern": "(?:PC )?\\d{3}"
}
1 change: 1 addition & 0 deletions resources/address_format/RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"recipient",
"addressLine1",
"locality",
"administrativeArea",
"postalCode"
],
"uppercase_fields": [
Expand Down
4 changes: 2 additions & 2 deletions resources/address_format/SE.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"locality_type": "post_town",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{3}[ ]?\\d{2}",
"postal_code_pattern": "\\d{3} ?\\d{2}",
"postal_code_prefix": "SE-"
}
2 changes: 1 addition & 1 deletion resources/address_format/SH.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "(ASCN|STHL) 1ZZ"
"postal_code_pattern": "(?:ASCN|STHL) 1ZZ"
}
2 changes: 1 addition & 1 deletion resources/address_format/SJ.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"locality_type": "post_town",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}
2 changes: 1 addition & 1 deletion resources/address_format/SK.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{3}[ ]?\\d{2}"
"postal_code_pattern": "\\d{3} ?\\d{2}"
}
2 changes: 1 addition & 1 deletion resources/address_format/SO.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "[A-Z]{2}[ ]?\\d{5}"
"postal_code_pattern": "[A-Z]{2} ?\\d{5}"
}
2 changes: 1 addition & 1 deletion resources/address_format/TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"administrative_area_type": "county",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{3}(\\d{2})?",
"postal_code_pattern": "\\d{3}(?:\\d{2})?",
"translations": {
"zh-hant": {
"format": "%postalCode\n%administrativeArea%locality\n%addressLine2\n%addressLine1\n%organization\n%recipient"
Expand Down
1 change: 1 addition & 0 deletions resources/address_format/UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"recipient",
"addressLine1",
"locality",
"administrativeArea",
"postalCode"
],
"uppercase_fields": [
Expand Down
2 changes: 1 addition & 1 deletion resources/address_format/VE.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"locality",
"administrativeArea"
],
"administrative_area_type": "province",
"administrative_area_type": "state",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
Expand Down
44 changes: 43 additions & 1 deletion resources/address_format_changes.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,47 @@
"IE",
"SO"
]
},
{
"date": "2016-08-04T16:17:48+00:00",
"added": [],
"removed": [],
"modified": [
"BM",
"CR",
"FR",
"SK",
"CA",
"SE",
"VE",
"CZ",
"LB",
"BR",
"AM",
"BN",
"SO",
"NO",
"GG",
"RU",
"IE",
"KR",
"SJ",
"MT",
"SH",
"IM",
"EC",
"CL",
"TW",
"OM",
"GB",
"LI",
"NG",
"NL",
"MU",
"JE",
"BB",
"BH",
"UA"
]
}
]
]
Loading

0 comments on commit f8839e7

Please sign in to comment.