Skip to content

Commit

Permalink
Add Zimbabwe provinces.
Browse files Browse the repository at this point in the history
  • Loading branch information
lexhouk committed May 1, 2019
1 parent 43e974b commit d2e7f2a
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
45 changes: 45 additions & 0 deletions resources/subdivision/ZW.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"country_code": "ZW",
"subdivisions": {
"BU": {
"name": "Bulawayo",
"iso_code": "ZW-BU"
},
"HA": {
"name": "Harare",
"iso_code": "ZW-HA"
},
"MA": {
"name": "Manicaland",
"iso_code": "ZW-MA"
},
"MC": {
"name": "Mashonaland Central",
"iso_code": "ZW-MC"
},
"ME": {
"name": "Mashonaland East",
"iso_code": "ZW-ME"
},
"MW": {
"name": "Mashonaland West",
"iso_code": "ZW-MW"
},
"MV": {
"name": "Masvingo",
"iso_code": "ZW-MV"
},
"MN": {
"name": "Matabeleland North",
"iso_code": "ZW-MN"
},
"MS": {
"name": "Matabeleland South",
"iso_code": "ZW-MS"
},
"MI": {
"name": "Midlands",
"iso_code": "ZW-MI"
}
}
}
4 changes: 4 additions & 0 deletions src/AddressFormat/AddressFormatRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,10 @@ protected function getDefinitions()
'format' => "%givenName %familyName\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
'postal_code_pattern' => '\d{5}',
],
'ZW' => [
'format' => "%givenName %familyName\n%organization\n%addressLine1\n%addressLine2\n%locality, %administrativeArea",
'subdivision_depth' => 1,
],
];
// @codingStandardsIgnoreEnd

Expand Down

0 comments on commit d2e7f2a

Please sign in to comment.