From e182dd69942886152c60024f7fe574d17299d9a6 Mon Sep 17 00:00:00 2001 From: machajdik Date: Tue, 24 Jan 2023 08:49:45 +0100 Subject: [PATCH 1/2] Afghanistan postcodes sources: https://en.wikipedia.org/wiki/Postal_codes_in_Afghanistan https://www.upu.int/UPU/media/upu/PostalEntitiesFiles/addressingUnit/afgEn.pdf --- conf/countries/worldwide.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/conf/countries/worldwide.yaml b/conf/countries/worldwide.yaml index b9db339..ac0a305 100644 --- a/conf/countries/worldwide.yaml +++ b/conf/countries/worldwide.yaml @@ -263,7 +263,14 @@ AE: # Afghanistan AF: - address_template: *generic21 + address_template: | + {{{attention}}} + {{{house}}} + {{{road}}} {{{house_number}}} + {{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}} + {{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{state}}} {{/first}} + {{{postcode}}} + {{{country}}} # Antigua and Barbuda AG: From ed3560f050694a4d5cc1f7cd1bad5ef2e21f0a6b Mon Sep 17 00:00:00 2001 From: machajdik Date: Tue, 24 Jan 2023 09:04:22 +0100 Subject: [PATCH 2/2] AF postal code example --- testcases/countries/af.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testcases/countries/af.yaml b/testcases/countries/af.yaml index 8fec3b7..2b369e7 100644 --- a/testcases/countries/af.yaml +++ b/testcases/countries/af.yaml @@ -8,10 +8,12 @@ components: country_code: af road: Kandahar-Herat Highway state: Kandahar + postcode: 3803 expected: | Kandahar Institute of Health Sciences Kandahar-Herat Highway Kandahar + 3803 Afghanistan