Skip to content

Commit 3bcd04c

Browse files
committed
Add regions for Seychelles (SC) and Paraguay (PY).
1 parent 9eca3df commit 3bcd04c

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

formats.go

+20-1
Original file line numberDiff line numberDiff line change
@@ -1291,8 +1291,16 @@ var formats = map[string]Format{
12911291
PostalCodePattern: `(969(?:39|40))(?:[ \-](\d{4}))?`,
12921292
},
12931293
"PY": {
1294-
Layout: "%1\n%2\n%3\n%P %L",
1294+
Layout: "%1\n%2\n%3\n%P %L %R",
12951295
PostalCodePattern: `\d{4}`,
1296+
Regions: NewRegionMap(
1297+
"16", "Alto Paraguay", "10", "Alto Paraná", "13", "Amambay",
1298+
"ASU", "Asunción", "19", "Boquerón", "5", "Caaguazú",
1299+
"6", "Caazapá", "14", "Canindeyú", "11", "Central",
1300+
"1", "Concepción", "3", "Cordillera", "4", "Guairá",
1301+
"7", "Itapúa", "8", "Misiones", "9", "Paraguarí",
1302+
"15", "Presidente Hayes", "2", "San Pedro", "12", "Ñeembucú",
1303+
),
12961304
},
12971305
"RE": {
12981306
Layout: "%1\n%2\n%3\n%P %L",
@@ -1384,6 +1392,17 @@ var formats = map[string]Format{
13841392
Layout: "%1\n%2\n%3\n%L\n%R",
13851393
Required: []Field{FieldLine1, FieldLocality},
13861394
RegionType: RegionTypeIsland,
1395+
Regions: NewRegionMap(
1396+
"02", "Anse Boileau", "03", "Anse Etoile", "05", "Anse Royale",
1397+
"01", "Anse aux Pins", "04", "Au Cap", "06", "Baie Lazare",
1398+
"07", "Baie Sainte Anne", "08", "Beau Vallon", "09", "Bel Air",
1399+
"10", "Bel Ombre", "11", "Cascade", "16", "English River",
1400+
"12", "Glacis", "13", "Grand Anse Mahe", "14", "Grand Anse Praslin",
1401+
"26", "Ile Perseverance I", "27", "Ile Perseverance II", "15", "La Digue",
1402+
"24", "Les Mamelles", "17", "Mont Buxton", "18", "Mont Fleuri",
1403+
"19", "Plaisance", "20", "Pointe Larue", "21", "Port Glaud",
1404+
"25", "Roche Caiman", "22", "Saint Louis", "23", "Takamaka",
1405+
),
13871406
},
13881407
"SD": {
13891408
Layout: "%1\n%2\n%3\n%L\n%P",

0 commit comments

Comments
 (0)