set custom postcode extents for some countries

This commit is contained in:
Sarah Hoffmann
2025-12-23 15:50:55 +01:00
parent d1cb578535
commit f9cf320794

View File

@@ -305,6 +305,7 @@ ch:
names: !include country-names/ch.yaml names: !include country-names/ch.yaml
postcode: postcode:
pattern: "dddd" pattern: "dddd"
extent: 3000
# Côte d'Ivoire (Côte dIvoire) # Côte d'Ivoire (Côte dIvoire)
@@ -472,6 +473,7 @@ ee:
names: !include country-names/ee.yaml names: !include country-names/ee.yaml
postcode: postcode:
pattern: "ddddd" pattern: "ddddd"
extent: 3000
# Egypt (مصر) # Egypt (مصر)
@@ -585,6 +587,7 @@ gb:
postcode: postcode:
pattern: "(l?ld[A-Z0-9]?) ?(dll)" pattern: "(l?ld[A-Z0-9]?) ?(dll)"
output: \1 \2 output: \1 \2
extent: 700
# Grenada (Grenada) # Grenada (Grenada)
@@ -612,6 +615,7 @@ gg:
postcode: postcode:
pattern: "(GYdd?) ?(dll)" pattern: "(GYdd?) ?(dll)"
output: \1 \2 output: \1 \2
extent: 1000
# Ghana (Ghana) # Ghana (Ghana)
@@ -766,6 +770,7 @@ ie:
postcode: postcode:
pattern: "(ldd) ?([0123456789ACDEFHKNPRTVWXY]{4})" pattern: "(ldd) ?([0123456789ACDEFHKNPRTVWXY]{4})"
output: \1 \2 output: \1 \2
extent: 50
# Israel (ישראל) # Israel (ישראל)
@@ -785,6 +790,7 @@ im:
postcode: postcode:
pattern: "(IMdd?) ?(dll)" pattern: "(IMdd?) ?(dll)"
output: \1 \2 output: \1 \2
extent: 700
# India (India) # India (India)
@@ -879,6 +885,7 @@ jp:
postcode: postcode:
pattern: "(ddd)-?(dddd)" pattern: "(ddd)-?(dddd)"
output: \1-\2 output: \1-\2
extent: 3000
# Kenya (Kenya) # Kenya (Kenya)
@@ -1013,6 +1020,7 @@ li:
names: !include country-names/li.yaml names: !include country-names/li.yaml
postcode: postcode:
pattern: "dddd" pattern: "dddd"
extent: 4000
# Sri Lanka (ශ්‍රී ලංකාව இலங்கை) # Sri Lanka (ශ්‍රී ලංකාව இலங்கை)
@@ -1058,6 +1066,7 @@ lu:
names: !include country-names/lu.yaml names: !include country-names/lu.yaml
postcode: postcode:
pattern: "dddd" pattern: "dddd"
extent: 1000
# Latvia (Latvija) # Latvia (Latvija)
@@ -1290,6 +1299,7 @@ nl:
postcode: postcode:
pattern: "(dddd) ?(ll)" pattern: "(dddd) ?(ll)"
output: \1 \2 output: \1 \2
extent: 800
# Norway (Norge) # Norway (Norge)
@@ -1425,6 +1435,7 @@ pt:
names: !include country-names/pt.yaml names: !include country-names/pt.yaml
postcode: postcode:
pattern: "dddd(?:-ddd)?" pattern: "dddd(?:-ddd)?"
extent: 1000
# Palau (Belau) # Palau (Belau)
@@ -1460,6 +1471,7 @@ ro:
names: !include country-names/ro.yaml names: !include country-names/ro.yaml
postcode: postcode:
pattern: "dddddd" pattern: "dddddd"
extent: 2500
# Serbia (Србија) # Serbia (Србија)