address_composer 1.0.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +1 -1
- data/.gitmodules +1 -0
- data/.rubocop.yml +4 -20
- data/Gemfile.lock +57 -32
- data/README.md +26 -0
- data/address-formatting/.github/workflows/ci.yml +25 -0
- data/address-formatting/README.md +19 -13
- data/address-formatting/bin/coverage.pl +8 -2
- data/address-formatting/bin/run_tests.t +36 -10
- data/address-formatting/conf/abbreviations/ca.yaml +18 -1
- data/address-formatting/conf/abbreviations/cs.yaml +0 -3
- data/address-formatting/conf/abbreviations/da.yaml +1 -1
- data/address-formatting/conf/abbreviations/en.yaml +7 -1
- data/address-formatting/conf/abbreviations/es.yaml +21 -3
- data/address-formatting/conf/abbreviations/et.yaml +0 -3
- data/address-formatting/conf/abbreviations/eu.yaml +0 -1
- data/address-formatting/conf/abbreviations/fi.yaml +0 -3
- data/address-formatting/conf/abbreviations/fr.yaml +1 -1
- data/address-formatting/conf/abbreviations/gl.yaml +14 -0
- data/address-formatting/conf/abbreviations/it.yaml +1 -1
- data/address-formatting/conf/abbreviations/nl.yaml +17 -0
- data/address-formatting/conf/abbreviations/no.yaml +0 -4
- data/address-formatting/conf/abbreviations/pl.yaml +2 -2
- data/address-formatting/conf/abbreviations/pt.yaml +18 -0
- data/address-formatting/conf/abbreviations/ro.yaml +8 -2
- data/address-formatting/conf/abbreviations/sl.yaml +24 -0
- data/address-formatting/conf/abbreviations/{se.yaml → sv.yaml} +1 -5
- data/address-formatting/conf/abbreviations/tr.yaml +0 -4
- data/address-formatting/conf/abbreviations/{vn.yaml → vi.yaml} +1 -3
- data/address-formatting/conf/components.yaml +15 -4
- data/address-formatting/conf/countries/worldwide.yaml +401 -272
- data/address-formatting/conf/country2lang.yaml +33 -32
- data/address-formatting/conf/country_codes.yaml +216 -214
- data/address-formatting/conf/county_codes.yaml +19 -9
- data/address-formatting/conf/state_codes.yaml +91 -49
- data/address-formatting/cpanfile +10 -0
- data/address-formatting/testcases/abbreviations/de.yaml +27 -0
- data/address-formatting/testcases/abbreviations/en.yaml +15 -0
- data/address-formatting/testcases/abbreviations/fr.yaml +12 -0
- data/address-formatting/testcases/countries/al.yaml +17 -3
- data/address-formatting/testcases/countries/au.yaml +29 -3
- data/address-formatting/testcases/countries/be.yaml +17 -2
- data/address-formatting/testcases/countries/bg.yaml +1 -1
- data/address-formatting/testcases/countries/br.yaml +36 -2
- data/address-formatting/testcases/countries/ca.yaml +60 -18
- data/address-formatting/testcases/countries/cl.yaml +3 -2
- data/address-formatting/testcases/countries/cn.yaml +21 -8
- data/address-formatting/testcases/countries/co.yaml +19 -0
- data/address-formatting/testcases/countries/cu.yaml +24 -10
- data/address-formatting/testcases/countries/de.yaml +70 -13
- data/address-formatting/testcases/countries/eg.yaml +6 -6
- data/address-formatting/testcases/countries/eh.yaml +2 -2
- data/address-formatting/testcases/countries/es.yaml +12 -0
- data/address-formatting/testcases/countries/fr.yaml +30 -13
- data/address-formatting/testcases/countries/gb.yaml +63 -4
- data/address-formatting/testcases/countries/hu.yaml +3 -4
- data/address-formatting/testcases/countries/ie.yaml +43 -1
- data/address-formatting/testcases/countries/in.yaml +14 -1
- data/address-formatting/testcases/countries/ir.yaml +19 -8
- data/address-formatting/testcases/countries/it.yaml +30 -2
- data/address-formatting/testcases/countries/kg.yaml +1 -1
- data/address-formatting/testcases/countries/kr.yaml +13 -5
- data/address-formatting/testcases/countries/ml.yaml +9 -9
- data/address-formatting/testcases/countries/mu.yaml +17 -1
- data/address-formatting/testcases/countries/nz.yaml +11 -0
- data/address-formatting/testcases/countries/pa.yaml +17 -0
- data/address-formatting/testcases/countries/ph.yaml +64 -3
- data/address-formatting/testcases/countries/pt.yaml +17 -0
- data/address-formatting/testcases/countries/py.yaml +1 -1
- data/address-formatting/testcases/countries/ru.yaml +3 -3
- data/address-formatting/testcases/countries/sg.yaml +16 -0
- data/address-formatting/testcases/countries/sj.yaml +1 -1
- data/address-formatting/testcases/countries/sk.yaml +20 -2
- data/address-formatting/testcases/countries/sn.yaml +16 -0
- data/address-formatting/testcases/countries/tc.yaml +12 -0
- data/address-formatting/testcases/countries/th.yaml +1 -1
- data/address-formatting/testcases/countries/tk.yaml +1 -1
- data/address-formatting/testcases/countries/tw.yaml +7 -7
- data/address-formatting/testcases/countries/tz.yaml +1 -7
- data/address-formatting/testcases/countries/us.yaml +3 -5
- data/address-formatting/testcases/countries/uy.yaml +1 -1
- data/address-formatting/testcases/countries/vn.yaml +2 -1
- data/address-formatting/testcases/countries/xc.yaml +14 -0
- data/address-formatting/testcases/countries/xk.yaml +20 -0
- data/address_composer.gemspec +11 -9
- data/lib/address_composer/version.rb +1 -1
- data/lib/address_composer.rb +92 -14
- metadata +83 -34
- data/.travis.yml +0 -7
- data/address-formatting/.travis.yml +0 -12
@@ -83,7 +83,9 @@ GB:
|
|
83
83
|
BNH: Brighton and Hove
|
84
84
|
BNS: Barnsley
|
85
85
|
BOL: Bolton
|
86
|
-
BPL:
|
86
|
+
BPL:
|
87
|
+
default: Blackpool
|
88
|
+
alt: Borough of Blackpool
|
87
89
|
BRC: Bracknell Forest
|
88
90
|
BRD: Bradford
|
89
91
|
BRY: London Borough of Bromley
|
@@ -117,7 +119,9 @@ GB:
|
|
117
119
|
DOR: Dorset
|
118
120
|
DRS: Derry and Strabane
|
119
121
|
DUD: Dudley
|
120
|
-
DUR:
|
122
|
+
DUR:
|
123
|
+
default: Durham
|
124
|
+
alt: County Durham
|
121
125
|
EAL: London Borough of Ealing
|
122
126
|
EAY: East Ayrshire
|
123
127
|
EDH: City of Edinburgh
|
@@ -302,7 +306,7 @@ IE:
|
|
302
306
|
WD: County Waterford
|
303
307
|
WH: County Westmeath
|
304
308
|
WW: County Wicklow
|
305
|
-
WX: County Wexford
|
309
|
+
WX: County Wexford
|
306
310
|
IT:
|
307
311
|
# Italian Province abbreviations
|
308
312
|
# https://en.wikipedia.org/wiki/Provinces_of_Italy
|
@@ -344,7 +348,9 @@ IT:
|
|
344
348
|
FC: Forlì-Cesena
|
345
349
|
FE: Ferrara
|
346
350
|
FG: Foggia
|
347
|
-
FI:
|
351
|
+
FI:
|
352
|
+
default: Firenze
|
353
|
+
alt_en: Florence
|
348
354
|
FM: Fermo
|
349
355
|
FR: Frosinone
|
350
356
|
GE: Genova
|
@@ -363,13 +369,15 @@ IT:
|
|
363
369
|
alt_en: Monza and Brianza
|
364
370
|
MC: Macerata
|
365
371
|
ME: Messina
|
366
|
-
MI:
|
372
|
+
MI:
|
373
|
+
default: Milano
|
374
|
+
alt_en: Milan
|
367
375
|
MN: Mantova
|
368
376
|
MO: Modena
|
369
377
|
MS: Massa-Carrara
|
370
378
|
MT: Matera
|
371
379
|
NA: Napoli
|
372
|
-
NO: Novara
|
380
|
+
"NO": Novara
|
373
381
|
NU: Nuoro
|
374
382
|
OG: Ogliastra
|
375
383
|
OR: Oristano
|
@@ -391,7 +399,9 @@ IT:
|
|
391
399
|
RE: Reggio Emilia
|
392
400
|
RG: Ragusa
|
393
401
|
RI: Rieti
|
394
|
-
RM:
|
402
|
+
RM:
|
403
|
+
default: Roma Capitale
|
404
|
+
alt_en: Rome
|
395
405
|
RN: Rimini
|
396
406
|
RO: Rovigo
|
397
407
|
SA: Salerno
|
@@ -403,8 +413,8 @@ IT:
|
|
403
413
|
SV: Savona
|
404
414
|
TA: Taranto
|
405
415
|
TE: Teramo
|
406
|
-
TN:
|
407
|
-
TO:
|
416
|
+
TN: Trento
|
417
|
+
TO: Torino
|
408
418
|
TP: Trapani
|
409
419
|
TR: Terni
|
410
420
|
TV: Treviso
|
@@ -159,7 +159,7 @@ AR:
|
|
159
159
|
B: Buenos Aires
|
160
160
|
C:
|
161
161
|
default: Ciudad Autónoma de Buenos Aires
|
162
|
-
alt_en: Autonomous City of Buenos Aires
|
162
|
+
alt_en: Autonomous City of Buenos Aires
|
163
163
|
D: San Luis
|
164
164
|
E:
|
165
165
|
default: Entre Ríos
|
@@ -191,6 +191,29 @@ AR:
|
|
191
191
|
Z:
|
192
192
|
default: Santa Cruz
|
193
193
|
alt_en: Santa Cruz Province
|
194
|
+
AT:
|
195
|
+
# https://en.wikipedia.org/wiki/ISO_3166-2:AT
|
196
|
+
"1": Burgenland
|
197
|
+
"2":
|
198
|
+
default: Kärnten
|
199
|
+
alt_en: Carinthia
|
200
|
+
"3":
|
201
|
+
default: Niederösterreich
|
202
|
+
alt_en: Lower Austria
|
203
|
+
"4":
|
204
|
+
default: Oberösterreich
|
205
|
+
alt_en: Upper Austria
|
206
|
+
"5": Salzburg
|
207
|
+
"6":
|
208
|
+
default: Steiermark
|
209
|
+
alt_en: Styria
|
210
|
+
"7":
|
211
|
+
default: Tirol
|
212
|
+
alt_en: Tyrol
|
213
|
+
"8": Vorarlberg
|
214
|
+
"9":
|
215
|
+
default: Wien
|
216
|
+
alt_en: Vienna
|
194
217
|
AU:
|
195
218
|
# https://en.wikipedia.org/wiki/States_and_territories_of_Australia
|
196
219
|
AAT: Australian Antarctic Territory
|
@@ -321,7 +344,7 @@ BE:
|
|
321
344
|
alt_fr: Anvers
|
322
345
|
VBR:
|
323
346
|
default: Vlaams Brabant
|
324
|
-
alt_de: Flämisch-Brabant
|
347
|
+
alt_de: Flämisch-Brabant
|
325
348
|
alt_en: Flemish Brabant
|
326
349
|
alt_fr: Brabant flamand
|
327
350
|
VLI:
|
@@ -333,7 +356,7 @@ BE:
|
|
333
356
|
alt_fr: Flandre orientale
|
334
357
|
VWV:
|
335
358
|
default: West-Vlaanderen
|
336
|
-
alt_de: Westflandern
|
359
|
+
alt_de: Westflandern
|
337
360
|
alt_en: West Flanders
|
338
361
|
alt_fr: Flandre-Occidentale
|
339
362
|
WBR:
|
@@ -453,30 +476,30 @@ BR:
|
|
453
476
|
# http://en.wikipedia.org/wiki/States_of_Brazil
|
454
477
|
AC: Acre
|
455
478
|
AL: Alagoas
|
456
|
-
AP: Amapá
|
457
479
|
AM: Amazonas
|
480
|
+
AP: Amapá
|
458
481
|
BA: Bahia
|
459
482
|
CE: Ceará
|
460
483
|
DF: Distrito Federal
|
461
484
|
ES: Espírito Santo
|
462
485
|
GO: Goiás
|
463
486
|
MA: Maranhão
|
464
|
-
MT: Mato Grosso
|
465
|
-
MS: Mato Grosso do Sul
|
466
487
|
MG: Minas Gerais
|
488
|
+
MS: Mato Grosso do Sul
|
489
|
+
MT: Mato Grosso
|
467
490
|
PA: Pará
|
468
491
|
PB: Paraíba
|
469
|
-
PR: Paraná
|
470
492
|
PE: Pernambuco
|
471
493
|
PI: Piauí
|
494
|
+
PR: Paraná
|
472
495
|
RJ: Rio de Janeiro
|
473
496
|
RN: Rio Grande do Norte
|
474
|
-
RS: Rio Grande do Sul
|
475
497
|
RO: Rondônia
|
476
498
|
RR: Roraima
|
499
|
+
RS: Rio Grande do Sul
|
477
500
|
SC: Santa Catarina
|
478
|
-
SP: São Paulo
|
479
501
|
SE: Sergipe
|
502
|
+
SP: São Paulo
|
480
503
|
TO: Tocantins
|
481
504
|
BW:
|
482
505
|
CE: Central
|
@@ -606,7 +629,7 @@ CH:
|
|
606
629
|
default: Appenzell Innerrhoden
|
607
630
|
alt_fr: Appenzell Rhodes-Intérieures
|
608
631
|
alt_it: Appenzello Interno
|
609
|
-
AR:
|
632
|
+
AR:
|
610
633
|
default: Appenzell Ausserrhoden
|
611
634
|
alt_fr: Appenzell Rhodes-Extérieures
|
612
635
|
alt_it: Appenzello Esterno
|
@@ -614,7 +637,7 @@ CH:
|
|
614
637
|
default: Bern
|
615
638
|
alt_fr: Berne
|
616
639
|
alt_it: Berna
|
617
|
-
BL:
|
640
|
+
BL:
|
618
641
|
default: Basel-Landschaft
|
619
642
|
alt_fr: Bâle-Campagne
|
620
643
|
alt_it: Basilea Campagna
|
@@ -622,12 +645,12 @@ CH:
|
|
622
645
|
default: Basel-Stadt
|
623
646
|
alt_en: Basel-City
|
624
647
|
alt_fr: Bâle-Ville
|
625
|
-
alt_it: Basilea Città
|
626
|
-
FR:
|
648
|
+
alt_it: Basilea Città
|
649
|
+
FR:
|
627
650
|
default: Fribourg
|
628
651
|
alt_de: Freiburg
|
629
652
|
alt_it: Friburgo
|
630
|
-
GE:
|
653
|
+
GE:
|
631
654
|
default: Geneva
|
632
655
|
alt_de: Genf
|
633
656
|
alt_fr: Genève
|
@@ -636,7 +659,7 @@ CH:
|
|
636
659
|
default: Glarus
|
637
660
|
alt_fr: Glaris
|
638
661
|
alt_it: Glarona
|
639
|
-
GR:
|
662
|
+
GR:
|
640
663
|
default: Graubünden
|
641
664
|
alt_en: Grisons
|
642
665
|
alt_fr: Grisons
|
@@ -644,21 +667,21 @@ CH:
|
|
644
667
|
JU:
|
645
668
|
default: Jura
|
646
669
|
alt_it: Giura
|
647
|
-
LU:
|
670
|
+
LU:
|
648
671
|
default: Luzern
|
649
672
|
alt_fr: Lucerne
|
650
673
|
alt_it: Lucerna
|
651
|
-
NE:
|
674
|
+
NE:
|
652
675
|
default: Neuchâtel
|
653
676
|
alt_de: Neuenburg
|
654
|
-
NW:
|
677
|
+
NW:
|
655
678
|
default: Nidwalden
|
656
679
|
alt_fr: Nidwald
|
657
680
|
alt_it: Nidvaldo
|
658
681
|
OW:
|
659
682
|
default: Obwalden
|
660
683
|
alt_fr: Obwald
|
661
|
-
alt_it: Obvaldo
|
684
|
+
alt_it: Obvaldo
|
662
685
|
SG:
|
663
686
|
default: Sankt Gallen
|
664
687
|
alt_fr: Saint-Gall
|
@@ -666,7 +689,7 @@ CH:
|
|
666
689
|
SH:
|
667
690
|
default: Schaffhausen
|
668
691
|
alt_fr: Schaffhouse
|
669
|
-
alt_it: Sciaffusa
|
692
|
+
alt_it: Sciaffusa
|
670
693
|
SO:
|
671
694
|
default: Solothurn
|
672
695
|
alt_fr: Soleure
|
@@ -697,10 +720,10 @@ CH:
|
|
697
720
|
alt_it: Zugo
|
698
721
|
ZH:
|
699
722
|
default: Zürich
|
700
|
-
alt_en: Zurich
|
723
|
+
alt_en: Zurich
|
701
724
|
alt_fr: Zurich
|
702
|
-
alt_it: Zurigo
|
703
|
-
CI:
|
725
|
+
alt_it: Zurigo
|
726
|
+
CI:
|
704
727
|
AB: Abidjan
|
705
728
|
BS: Bas-Sassandra
|
706
729
|
CM: Comoé
|
@@ -714,7 +737,7 @@ CI:
|
|
714
737
|
VB: Vallée du Bandama
|
715
738
|
WR: Woroba
|
716
739
|
YM: Yamoussoukro
|
717
|
-
ZZ: Zanzan
|
740
|
+
ZZ: Zanzan
|
718
741
|
CL:
|
719
742
|
AI: Aisén del General Carlos Ibañez del Campo
|
720
743
|
AN: Antofagasta
|
@@ -737,7 +760,7 @@ CM:
|
|
737
760
|
EN: Far North
|
738
761
|
ES: East
|
739
762
|
LT: Littoral
|
740
|
-
NO: North
|
763
|
+
"NO": North
|
741
764
|
NW: North-West
|
742
765
|
OU: West
|
743
766
|
SU: South
|
@@ -833,7 +856,7 @@ DE:
|
|
833
856
|
SL: Saarland
|
834
857
|
SN:
|
835
858
|
default: Sachsen
|
836
|
-
alt_en: Saxony
|
859
|
+
alt_en: Saxony
|
837
860
|
ST:
|
838
861
|
default: Sachsen-Anhalt
|
839
862
|
alt_en: Saxony-Anhalt
|
@@ -906,14 +929,14 @@ ER:
|
|
906
929
|
ES:
|
907
930
|
AN :
|
908
931
|
default: Andalucía
|
909
|
-
alt_en: Andalusia
|
910
|
-
AR :
|
932
|
+
alt_en: Andalusia
|
933
|
+
AR :
|
911
934
|
default: Aragón
|
912
|
-
alt_en: Aragon
|
935
|
+
alt_en: Aragon
|
913
936
|
AS : Asturias
|
914
937
|
CB : Cantabria
|
915
938
|
CE : Ceuta
|
916
|
-
CL :
|
939
|
+
CL :
|
917
940
|
default: Castilla y León
|
918
941
|
alt_en: Castile and León
|
919
942
|
CM :
|
@@ -921,7 +944,7 @@ ES:
|
|
921
944
|
alt_en: Castile-La Mancha
|
922
945
|
CN :
|
923
946
|
default: Canarias
|
924
|
-
alt_en: Canary Islands
|
947
|
+
alt_en: Canary Islands
|
925
948
|
CT :
|
926
949
|
default: Cataluña
|
927
950
|
alt_ca: Catalunya
|
@@ -930,7 +953,7 @@ ES:
|
|
930
953
|
GA : Galicia
|
931
954
|
IB :
|
932
955
|
default: Islas Baleares
|
933
|
-
alt_en: Balearic Islands
|
956
|
+
alt_en: Balearic Islands
|
934
957
|
MC :
|
935
958
|
default: Región de Murcia
|
936
959
|
alt_en: Region of Murcia
|
@@ -964,7 +987,7 @@ FR:
|
|
964
987
|
BFC: Bourgogne-Franche-Comté
|
965
988
|
BRE:
|
966
989
|
default: Bretagne
|
967
|
-
alt_en: Brittany
|
990
|
+
alt_en: Brittany
|
968
991
|
CVL: Centre-Val de Loire
|
969
992
|
COR:
|
970
993
|
default: Corse
|
@@ -1167,7 +1190,7 @@ HT:
|
|
1167
1190
|
ND: Nord
|
1168
1191
|
NE: Nord-Est
|
1169
1192
|
NI: Nippes
|
1170
|
-
NO: Nord-Ouest
|
1193
|
+
"NO": Nord-Ouest
|
1171
1194
|
OU: Ouest
|
1172
1195
|
SD: Sud
|
1173
1196
|
SE: Sud-Est
|
@@ -1195,7 +1218,7 @@ HU:
|
|
1195
1218
|
KV: Kaposvár
|
1196
1219
|
MI: Miskolc
|
1197
1220
|
NK: Nagykanizsa
|
1198
|
-
NO: Nógrád
|
1221
|
+
"NO": Nógrád
|
1199
1222
|
NY: Nyíregyháza
|
1200
1223
|
PE: Pest
|
1201
1224
|
PS: Pécs
|
@@ -1230,13 +1253,13 @@ ID:
|
|
1230
1253
|
alt_en: West Java
|
1231
1254
|
JI:
|
1232
1255
|
default: Jawa Timur
|
1233
|
-
alt_en: East Java
|
1256
|
+
alt_en: East Java
|
1234
1257
|
JK:
|
1235
1258
|
default: Daerah Khusus Ibukota Jakarta
|
1236
1259
|
alt_en: Jakarta Special Capital Region
|
1237
1260
|
JT:
|
1238
1261
|
default: Jawa Tengah
|
1239
|
-
alt_en: Central Java
|
1262
|
+
alt_en: Central Java
|
1240
1263
|
KB:
|
1241
1264
|
default: Kalimantan Barat
|
1242
1265
|
alt_en: West Kalimantan
|
@@ -1275,7 +1298,7 @@ ID:
|
|
1275
1298
|
alt_en: West Sumatra
|
1276
1299
|
SG:
|
1277
1300
|
default: Sulawesi Tenggara
|
1278
|
-
alt_en: Southeast Sulawesi
|
1301
|
+
alt_en: Southeast Sulawesi
|
1279
1302
|
SN:
|
1280
1303
|
default: Sulawesi Selatan
|
1281
1304
|
alt_en: South Sulawesi
|
@@ -1335,7 +1358,7 @@ IN:
|
|
1335
1358
|
TR: Tripura
|
1336
1359
|
UP: Uttar Pradesh
|
1337
1360
|
UT: Uttarakhand
|
1338
|
-
WB: West Bengal
|
1361
|
+
WB: West Bengal
|
1339
1362
|
IT:
|
1340
1363
|
ABR: Abruzzo
|
1341
1364
|
BAS: Basilicata
|
@@ -1594,7 +1617,7 @@ LB:
|
|
1594
1617
|
NA:
|
1595
1618
|
default: محافظة النبطية
|
1596
1619
|
alt_en: Nabatiya Governorate
|
1597
|
-
alt_fr: Gouvernorat de Nabatiyeh
|
1620
|
+
alt_fr: Gouvernorat de Nabatiyeh
|
1598
1621
|
LR:
|
1599
1622
|
BG: Bong
|
1600
1623
|
BM: Bomi
|
@@ -1810,7 +1833,9 @@ MW:
|
|
1810
1833
|
MX:
|
1811
1834
|
AGU: Aguascalientes
|
1812
1835
|
BCN: Baja California
|
1813
|
-
BCS:
|
1836
|
+
BCS:
|
1837
|
+
default: Baja California Sur
|
1838
|
+
alt_en: Lower California South
|
1814
1839
|
CAM: Campeche
|
1815
1840
|
CHH: Chihuahua
|
1816
1841
|
CHP: Chiapas
|
@@ -1848,6 +1873,23 @@ MX:
|
|
1848
1873
|
alt_en: Veracruz
|
1849
1874
|
YUC: Yucatán
|
1850
1875
|
ZAC: Zacatecas
|
1876
|
+
MY:
|
1877
|
+
JHR: Johor
|
1878
|
+
KDH: Kedah
|
1879
|
+
KTN: Kelantan
|
1880
|
+
KUL: Kuala Lumpur
|
1881
|
+
LBN: Lauban
|
1882
|
+
MLK: Malacca
|
1883
|
+
NSN: Negeri Sembilan
|
1884
|
+
PHG: Pahang
|
1885
|
+
PJY: Putrajaya
|
1886
|
+
PLS: Perlis
|
1887
|
+
PNG: Penang
|
1888
|
+
PRK: Perak
|
1889
|
+
SBH: Sabah
|
1890
|
+
SGR: Selangor
|
1891
|
+
SWK: Sarawak
|
1892
|
+
TRG: Terengganu
|
1851
1893
|
MZ:
|
1852
1894
|
A: Niaosa
|
1853
1895
|
B: Manica
|
@@ -1871,7 +1913,7 @@ NA:
|
|
1871
1913
|
KW: Kavango West
|
1872
1914
|
OD: Otjozondjupa
|
1873
1915
|
OH: Omaheke
|
1874
|
-
ON: Oshana
|
1916
|
+
"ON": Oshana
|
1875
1917
|
OS: Omusati
|
1876
1918
|
OT: Oshikoto
|
1877
1919
|
OW: Ohangwena
|
@@ -1904,7 +1946,7 @@ NG:
|
|
1904
1946
|
NA: Nasarawa
|
1905
1947
|
NI: Niger
|
1906
1948
|
OG: Ogun
|
1907
|
-
ON: Ondo
|
1949
|
+
"ON": Ondo
|
1908
1950
|
OS: Osun
|
1909
1951
|
OY: Oyo
|
1910
1952
|
PL: Plateau
|
@@ -2154,7 +2196,7 @@ PL:
|
|
2154
2196
|
alt_en: Lublin Voivodeship
|
2155
2197
|
"08":
|
2156
2198
|
default: województwo lubuskie
|
2157
|
-
alt_en: Lubusz Voivodeship
|
2199
|
+
alt_en: Lubusz Voivodeship
|
2158
2200
|
"10":
|
2159
2201
|
default: województwo łódzkie
|
2160
2202
|
alt_en: Łódź Voivodeship
|
@@ -2163,13 +2205,13 @@ PL:
|
|
2163
2205
|
alt_en: Lesser Poland Voivodeship
|
2164
2206
|
"14":
|
2165
2207
|
default: województwo mazowieckie
|
2166
|
-
alt_en: Masovian Voivodeship
|
2208
|
+
alt_en: Masovian Voivodeship
|
2167
2209
|
"16":
|
2168
2210
|
default: województwo opolskie
|
2169
2211
|
alt_en: Opole Voivodeship
|
2170
2212
|
"18":
|
2171
2213
|
default: województwo podkarpackie
|
2172
|
-
alt_en: Subcarpathian Voivodeship
|
2214
|
+
alt_en: Subcarpathian Voivodeship
|
2173
2215
|
"20":
|
2174
2216
|
default: województwo podlaskie
|
2175
2217
|
alt_en: Podlaskie Voivodeship
|
@@ -2181,7 +2223,7 @@ PL:
|
|
2181
2223
|
alt_en: Silesian Voivodeship
|
2182
2224
|
"26":
|
2183
2225
|
default: województwo świętokrzyskie
|
2184
|
-
alt_en: Świętokrzyskie Voivodeship
|
2226
|
+
alt_en: Świętokrzyskie Voivodeship
|
2185
2227
|
"28":
|
2186
2228
|
default: województwo warmińsko-mazurskie
|
2187
2229
|
alt_en: Warmian-Masurian Voivodeship
|
@@ -2310,7 +2352,7 @@ SD:
|
|
2310
2352
|
NB:
|
2311
2353
|
default: ولاية النيل الأزرق
|
2312
2354
|
alt_en: Blue Nile State
|
2313
|
-
NO:
|
2355
|
+
"NO":
|
2314
2356
|
default: الولاية الشمالية
|
2315
2357
|
alt_en: Northern State
|
2316
2358
|
NR:
|
@@ -2376,7 +2418,7 @@ SK:
|
|
2376
2418
|
ZI:
|
2377
2419
|
default: Žilinský kraj
|
2378
2420
|
alt_en: Region of Žilina
|
2379
|
-
SL:
|
2421
|
+
SL:
|
2380
2422
|
E: Eastern
|
2381
2423
|
N: Northern
|
2382
2424
|
S: Southern
|
@@ -0,0 +1,10 @@
|
|
1
|
+
#
|
2
|
+
# Used for running tests
|
3
|
+
#
|
4
|
+
# documentation see https://metacpan.org/pod/cpanfile
|
5
|
+
#
|
6
|
+
|
7
|
+
requires 'File::Find::Rule', '== 0.34';
|
8
|
+
requires 'Geo::Address::Formatter', '== 1.9983';
|
9
|
+
requires 'Test::Exception', '== 0.43';
|
10
|
+
requires 'YAML::LibYAML', '== 0.902.0';
|
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
description: Platz der Republik
|
3
|
+
components:
|
4
|
+
city: Berlin
|
5
|
+
country: Deutschland
|
6
|
+
country_code: de
|
7
|
+
road: Platz der Republik
|
8
|
+
state: Berlin
|
9
|
+
expected: |
|
10
|
+
Pl der Republik
|
11
|
+
Berlin
|
12
|
+
Deutschland
|
13
|
+
---
|
14
|
+
description: willy-Brandt-Platz
|
15
|
+
components:
|
16
|
+
city: München
|
17
|
+
country: Deutschland
|
18
|
+
country_code: de
|
19
|
+
house_number: 6
|
20
|
+
postcode: 81829
|
21
|
+
road: Willy-Brandt-Platz
|
22
|
+
state: Bayern
|
23
|
+
expected: |
|
24
|
+
Willy-Brandt-Platz 6
|
25
|
+
81829 München
|
26
|
+
Deutschland
|
27
|
+
|
@@ -14,7 +14,21 @@ expected: |
|
|
14
14
|
Papa Gjon Pali II
|
15
15
|
1001-Tiranë
|
16
16
|
Albania
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
---
|
18
|
+
description: Kindergarten in Tiranë, 41.32462,19.83047
|
19
|
+
components:
|
20
|
+
city_district: Tiranë
|
21
|
+
country: Albania
|
22
|
+
country_code: al
|
23
|
+
county: Tirana County
|
24
|
+
kindergarten: Kopështi nr. 18
|
25
|
+
municipality: Tirana Municipality
|
26
|
+
road: Rruga Dalip Zavalani
|
27
|
+
state: Central Albania
|
28
|
+
suburb: Njësia Bashkiake Nr. 2
|
29
|
+
expected: |
|
30
|
+
Kopështi nr. 18
|
31
|
+
Rruga Dalip Zavalani
|
32
|
+
Tiranë
|
33
|
+
Albania
|
20
34
|
|
@@ -76,6 +76,32 @@ expected: |
|
|
76
76
|
Fifth Street
|
77
77
|
Ashbury NSW 2193
|
78
78
|
Australia
|
79
|
-
|
80
|
-
|
81
|
-
|
79
|
+
#
|
80
|
+
# town and postcode, no street
|
81
|
+
#
|
82
|
+
---
|
83
|
+
description: postcode and town
|
84
|
+
components:
|
85
|
+
city: LASCELLES
|
86
|
+
country: Australia
|
87
|
+
country_code: au
|
88
|
+
postcode: 3487
|
89
|
+
state: VICTORIA
|
90
|
+
expected: |
|
91
|
+
LASCELLES VIC 3487
|
92
|
+
Australia
|
93
|
+
#
|
94
|
+
# city_district and postcode
|
95
|
+
#
|
96
|
+
---
|
97
|
+
description: postcode and city_district
|
98
|
+
components:
|
99
|
+
city_district: Lascelles
|
100
|
+
country: Australia
|
101
|
+
country_code: au
|
102
|
+
municipality: Shire of Yarriambiack
|
103
|
+
postcode: 3487
|
104
|
+
state: VICTORIA
|
105
|
+
expected: |
|
106
|
+
Lascelles VIC 3487
|
107
|
+
Australia
|
@@ -51,5 +51,20 @@ expected: |
|
|
51
51
|
Kerkveldstraat
|
52
52
|
1760 Strijtem
|
53
53
|
Belgium
|
54
|
-
|
55
|
-
|
54
|
+
---
|
55
|
+
description: 50.62084,4.82240
|
56
|
+
components:
|
57
|
+
city_district: Perwez
|
58
|
+
country: Belgium
|
59
|
+
country_code: be
|
60
|
+
county: Nivelles
|
61
|
+
house_number: 67
|
62
|
+
postcode: 1360
|
63
|
+
region: Wallonia
|
64
|
+
road: Rue Salmon
|
65
|
+
state: Walloon Brabant
|
66
|
+
village: Perwez
|
67
|
+
expected: |
|
68
|
+
Rue Salmon 67
|
69
|
+
1360 Perwez
|
70
|
+
Belgium
|
@@ -58,5 +58,39 @@ expected: |
|
|
58
58
|
Rio de Janeiro - RJ
|
59
59
|
22221-000
|
60
60
|
Brazil
|
61
|
-
|
62
|
-
|
61
|
+
---
|
62
|
+
description: village
|
63
|
+
components:
|
64
|
+
country: Brazil
|
65
|
+
country_code: br
|
66
|
+
municipality: Região Geográfica Imediata de Picos
|
67
|
+
postcode: 64675-000
|
68
|
+
region: Northeast Region
|
69
|
+
state: Piauí
|
70
|
+
state_code: PI
|
71
|
+
state_district: Região Geográfica Intermediária de Picos
|
72
|
+
village: Alegrete do Piauí
|
73
|
+
expected: |
|
74
|
+
Alegrete do Piauí
|
75
|
+
Região Geográfica Intermediária de Picos - PI
|
76
|
+
64675-000
|
77
|
+
Brazil
|
78
|
+
---
|
79
|
+
description: Maranhão [+quarter] / -2.493246,-44.267475
|
80
|
+
components:
|
81
|
+
road: Av. dos Holandeses
|
82
|
+
house_number: 9
|
83
|
+
quarter: Quadra 33
|
84
|
+
suburb: Calhau
|
85
|
+
city: São Luís
|
86
|
+
state: Maranhão
|
87
|
+
state_code: MA
|
88
|
+
postcode: 65071-380
|
89
|
+
country_code: br
|
90
|
+
country: Brazil
|
91
|
+
expected: |
|
92
|
+
Av. dos Holandeses 9, Quadra 33
|
93
|
+
Calhau
|
94
|
+
São Luís - MA
|
95
|
+
65071-380
|
96
|
+
Brazil
|