├── conf ├── abbreviations │ ├── hu.yaml │ ├── ca.yaml │ ├── cs.yaml │ ├── de.yaml │ ├── eu.yaml │ ├── ro.yaml │ ├── vn.yaml │ ├── et.yaml │ ├── uk.yaml │ ├── tr.yaml │ ├── fr.yaml │ ├── no.yaml │ ├── se.yaml │ ├── da.yaml │ ├── fi.yaml │ ├── es.yaml │ ├── sk.yaml │ ├── pl.yaml │ ├── nl.yaml │ ├── pt.yaml │ ├── it.yaml │ ├── en.yaml │ └── ru.yaml ├── components.yaml └── country2lang.yaml ├── opencage_logo_300_150.png ├── SECURITY.md ├── testcases ├── other │ ├── null.yaml │ └── xx.yaml └── countries │ ├── bv.yaml │ ├── tk.yaml │ ├── sj.yaml │ ├── nu.yaml │ ├── pe.yaml │ ├── ge.yaml │ ├── um.yaml │ ├── pw.yaml │ ├── bw.yaml │ ├── tv.yaml │ ├── am.yaml │ ├── ki.yaml │ ├── ls.yaml │ ├── lv.yaml │ ├── nr.yaml │ ├── ws.yaml │ ├── at.yaml │ ├── cc.yaml │ ├── gi.yaml │ ├── hm.yaml │ ├── hr.yaml │ ├── io.yaml │ ├── km.yaml │ ├── kz.yaml │ ├── bj.yaml │ ├── ck.yaml │ ├── mw.yaml │ ├── sa.yaml │ ├── si.yaml │ ├── ua.yaml │ ├── vu.yaml │ ├── dk.yaml │ ├── md.yaml │ ├── gm.yaml │ ├── kg.yaml │ ├── lc.yaml │ ├── ro.yaml │ ├── ag.yaml │ ├── gd.yaml │ ├── je.yaml │ ├── mt.yaml │ ├── py.yaml │ ├── sc.yaml │ ├── tr.yaml │ ├── wf.yaml │ ├── zm.yaml │ ├── bs.yaml │ ├── ee.yaml │ ├── fj.yaml │ ├── ke.yaml │ ├── uz.yaml │ ├── zw.yaml │ ├── cf.yaml │ ├── sz.yaml │ ├── aq.yaml │ ├── bm.yaml │ ├── is.yaml │ ├── pr.yaml │ ├── rs.yaml │ ├── vn.yaml │ ├── aw.yaml │ ├── im.yaml │ ├── mv.yaml │ ├── bt.yaml │ ├── co.yaml │ ├── et.yaml │ ├── gl.yaml │ ├── gn.yaml │ ├── gs.yaml │ ├── kn.yaml │ ├── nf.yaml │ ├── sb.yaml │ ├── bi.yaml │ ├── cz.yaml │ ├── er.yaml │ ├── lt.yaml │ ├── mc.yaml │ ├── mh.yaml │ ├── ng.yaml │ ├── sm.yaml │ ├── ch.yaml │ ├── td.yaml │ ├── ai.yaml │ ├── by.yaml │ ├── il.yaml │ ├── li.yaml │ ├── ma.yaml │ ├── na.yaml │ ├── tj.yaml │ ├── uy.yaml │ ├── af.yaml │ ├── az.yaml │ ├── bz.yaml │ ├── fo.yaml │ ├── re.yaml │ ├── to.yaml │ ├── tt.yaml │ ├── ad.yaml │ ├── bd.yaml │ ├── dz.yaml │ ├── id.yaml │ ├── mn.yaml │ ├── ms.yaml │ ├── gu.yaml │ ├── la.yaml │ ├── lu.yaml │ ├── sr.yaml │ ├── gg.yaml │ ├── jp.yaml │ ├── ss.yaml │ ├── ao.yaml │ ├── fm.yaml │ ├── gh.yaml │ ├── mx.yaml │ ├── so.yaml │ ├── tm.yaml │ ├── za.yaml │ ├── cm.yaml │ ├── cx.yaml │ ├── my.yaml │ ├── tl.yaml │ ├── bl.yaml │ ├── bn.yaml │ ├── cw.yaml │ ├── gy.yaml │ ├── me.yaml │ ├── mk.yaml │ ├── pn.yaml │ ├── tf.yaml │ ├── yt.yaml │ ├── ar.yaml │ ├── bq.yaml │ ├── cy.yaml │ ├── dj.yaml │ ├── dm.yaml │ ├── kh.yaml │ ├── ml.yaml │ ├── tg.yaml │ ├── vc.yaml │ ├── bb.yaml │ ├── mf.yaml │ ├── tw.yaml │ ├── bo.yaml │ ├── mm.yaml │ ├── rw.yaml │ ├── gr.yaml │ ├── mz.yaml │ ├── vg.yaml │ ├── fi.yaml │ ├── gp.yaml │ ├── hu.yaml │ ├── ec.yaml │ ├── cv.yaml │ ├── gq.yaml │ ├── cr.yaml │ ├── gw.yaml │ ├── ky.yaml │ ├── pk.yaml │ ├── ci.yaml │ ├── gf.yaml │ ├── sd.yaml │ ├── st.yaml │ ├── jm.yaml │ ├── mg.yaml │ ├── mp.yaml │ ├── ve.yaml │ ├── ht.yaml │ ├── lr.yaml │ ├── mq.yaml │ ├── sx.yaml │ ├── kp.yaml │ ├── pf.yaml │ ├── pg.yaml │ ├── cg.yaml │ ├── ga.yaml │ ├── mo.yaml │ ├── bg.yaml │ ├── hn.yaml │ ├── cd.yaml │ ├── cl.yaml │ ├── lk.yaml │ ├── vi.yaml │ ├── do.yaml │ ├── eh.yaml │ ├── ax.yaml │ ├── sl.yaml │ ├── gt.yaml │ ├── ne.yaml │ ├── pm.yaml │ ├── as.yaml │ ├── ba.yaml │ ├── np.yaml │ ├── nc.yaml │ ├── hk.yaml │ ├── in.yaml │ ├── fk.yaml │ ├── ir.yaml │ ├── ug.yaml │ ├── nz.yaml │ ├── va.yaml │ ├── th.yaml │ ├── kr.yaml │ ├── no.yaml │ ├── cu.yaml │ ├── tc.yaml │ ├── ni.yaml │ ├── sn.yaml │ ├── al.yaml │ ├── bf.yaml │ ├── sk.yaml │ ├── cn.yaml │ ├── se.yaml │ ├── sh.yaml │ ├── mu.yaml │ ├── qa.yaml │ ├── ph.yaml │ ├── tn.yaml │ ├── sv.yaml │ ├── ru.yaml │ ├── ye.yaml │ ├── pa.yaml │ ├── pt.yaml │ ├── be.yaml │ ├── mr.yaml │ ├── sg.yaml │ ├── bh.yaml │ ├── es.yaml │ ├── pl.yaml │ ├── tz.yaml │ ├── om.yaml │ ├── kw.yaml │ ├── ly.yaml │ ├── jo.yaml │ ├── it.yaml │ ├── sy.yaml │ ├── ae.yaml │ ├── lb.yaml │ ├── br.yaml │ ├── nl.yaml │ ├── iq.yaml │ ├── eg.yaml │ ├── au.yaml │ ├── ps.yaml │ └── ca.yaml ├── cpanfile ├── .github └── workflows │ └── ci.yml ├── LICENSE.txt └── bin └── run_tests.t /conf/abbreviations/hu.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | utca: u 3 | körút: krt 4 | -------------------------------------------------------------------------------- /conf/abbreviations/ca.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Carrer de: C 3 | Rambla: Rbla 4 | 5 | -------------------------------------------------------------------------------- /opencage_logo_300_150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zverik/address-formatting/master/opencage_logo_300_150.png -------------------------------------------------------------------------------- /conf/abbreviations/cs.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Ulice: Ul 3 | Třída: Tř 4 | Náměstí: Nám 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /conf/abbreviations/de.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Platz: Pl 3 | Sankt: St 4 | Straße: Str 5 | Strasse: Str 6 | -------------------------------------------------------------------------------- /conf/abbreviations/eu.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Kalea: K 3 | Errepidea: Err 4 | Etorbidea: Etorb 5 | 6 | -------------------------------------------------------------------------------- /conf/abbreviations/ro.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Strada: Str 3 | Intrarea: Intr 4 | Bulevardul: Blvd 5 | Soseaua: Sos 6 | -------------------------------------------------------------------------------- /conf/abbreviations/vn.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Công trường: CT 3 | Đại lộ: ĐL 4 | Đường: D 5 | Quảng trường: QT 6 | 7 | 8 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Reporting a Vulnerability 4 | 5 | Please see the [OpenCage security bounty page](https://opencagedata.com/security-bounty) 6 | -------------------------------------------------------------------------------- /testcases/other/null.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # 0, 0 3 | description: Null Island 4 | components: 5 | island: Null Island 6 | expected: | 7 | Null Island 8 | 9 | 10 | -------------------------------------------------------------------------------- /conf/abbreviations/et.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Maantee: mnt 3 | Puiestee: pst 4 | Raudtee: rdt 5 | Raudteejaam: rdtj 6 | Tänav: tn 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /conf/abbreviations/uk.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | бульвар: бул 3 | дорога: дор 4 | провулок: пров 5 | площа: пл 6 | проспект: просп 7 | шосе: ш 8 | вулиця: вул 9 | -------------------------------------------------------------------------------- /conf/abbreviations/tr.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Bulvar: Bl 3 | Bulvarı: Bl 4 | Cadde: Cd 5 | Caddesi: Cd 6 | Mahalle: Mh 7 | Sokak: Sk 8 | Sokağı: Sk 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /conf/abbreviations/fr.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Avenue: Av 3 | Bâtiment: Bât 4 | Boulevard: Boul 5 | Cours: Crs 6 | Place: Pl 7 | Rue: r 8 | Saint: St 9 | Sainte: Ste 10 | Zone industrielle: Z.I 11 | -------------------------------------------------------------------------------- /cpanfile: -------------------------------------------------------------------------------- 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.9982'; 9 | requires 'Test::Exception', '== 0.43'; -------------------------------------------------------------------------------- /testcases/countries/bv.yaml: -------------------------------------------------------------------------------- 1 | # Bouvet Island 2 | --- 3 | description: Lykketoppen, -54.4362/3.3138 4 | components: 5 | country: Bouvet Island 6 | country_code: bv 7 | expected: | 8 | Bouvet Island, Norway 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /conf/abbreviations/no.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | gata: g 3 | gate: g 4 | gaten: g 5 | plass: pl 6 | plassen: pl 7 | sving: sv 8 | svingen: sv 9 | veg: v 10 | vegen: v 11 | vei: v 12 | veien: v 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /conf/abbreviations/se.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | gata: g 3 | gatan: g 4 | gränd: gr 5 | gränden: gr 6 | lilla: l 7 | norra: n 8 | östra: ö 9 | södra: s 10 | stig: st 11 | stora: st 12 | västra: v 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /testcases/countries/tk.yaml: -------------------------------------------------------------------------------- 1 | # Tokelau 2 | --- 3 | description: village on Fakaofo, -9.3743,-171.2651 4 | components: 5 | city: Fakaofo 6 | country: Tokelau 7 | country_code: tk 8 | expected: | 9 | Fakaofo 10 | Tokelau, New Zealand 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /conf/abbreviations/da.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Gamle: Gl 3 | Gammel: Gl 4 | Lille: Ll 5 | Nordre: Ndr 6 | Nørre: Nr 7 | Sankt: Skt 8 | Store: St 9 | Søndre: Sdr 10 | Sønder: Sdr 11 | Vester: V 12 | Vestre: V 13 | Øster: Ø 14 | Østre: Ø 15 | -------------------------------------------------------------------------------- /testcases/countries/sj.yaml: -------------------------------------------------------------------------------- 1 | # Svalbard and Jan Mayen, part of Norway 2 | --- 3 | description: Airstrip on Jan Mayen, 70.9415,-8.6616 4 | components: 5 | country: Svalbard and Jan Mayen 6 | country_code: sj 7 | state: Jan Mayen 8 | expected: | 9 | Jan Mayen 10 | Norway 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /conf/abbreviations/fi.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | alue: al 3 | asema: as 4 | aukio: auk 5 | kaari: kri 6 | katu: k 7 | kuja: kj 8 | penger: pgr 9 | polku: p 10 | raitti: r 11 | ranta: rt 12 | rinne: rn 13 | tie: t 14 | tienhaara: th 15 | tori: tr 16 | väylä: vlä 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/nu.yaml: -------------------------------------------------------------------------------- 1 | # Niue 2 | --- 3 | description: Bank in Alofi, -19.05440,-169.92024 4 | components: 5 | bank: Kiwibank 6 | country: Niue 7 | country_code: nu 8 | road: Tuila Road 9 | town: Alofi 10 | expected: | 11 | Kiwibank 12 | Tuila Road 13 | Alofi 14 | Niue 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /testcases/countries/pe.yaml: -------------------------------------------------------------------------------- 1 | # Peru 2 | --- 3 | description: bar in San Juan 4 | components: 5 | pub: Discoteca Ophera 6 | county: Huaural 7 | road: TUPAC AMARU 8 | town: Huacho 9 | country: Peru 10 | country_code: PE 11 | state: Lima 12 | expected: | 13 | Discoteca Ophera 14 | TUPAC AMARU 15 | Huacho 16 | Peru 17 | -------------------------------------------------------------------------------- /testcases/countries/ge.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: bar in Tbilisi 3 | components: 4 | bar: Mojito Bar 5 | city: Tbilisi 6 | country: Georgia 7 | country_code: GE 8 | house_number: 7 9 | postcode: "0114" 10 | road: Cotton Row 11 | suburb: Old Tbilisi Raion 12 | expected: | 13 | Mojito Bar 14 | Cotton Row 7 15 | 0114 Tbilisi 16 | Georgia 17 | -------------------------------------------------------------------------------- /testcases/countries/um.yaml: -------------------------------------------------------------------------------- 1 | # United States Minor Outlying Ismalds 2 | --- 3 | description: Wake Island, 19.29337,166.64899 4 | components: 5 | country: United States Minor Outlying Islands 6 | country_code: um 7 | island: Wake Island 8 | expected: | 9 | Wake Island, US Minor Outlying Islands 10 | United States of America 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /testcases/countries/pw.yaml: -------------------------------------------------------------------------------- 1 | # Palau 2 | --- 3 | description: Courthouse in Koror, 7.34122,134.47003 4 | components: 5 | country: Palau 6 | country_code: pw 7 | courthouse: Palau Supreme Court 8 | road: Main Street 9 | town: Koror 10 | expected: | 11 | Palau Supreme Court 12 | Main Street 13 | Koror 14 | Palau 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /testcases/countries/bw.yaml: -------------------------------------------------------------------------------- 1 | # Botswana 2 | --- 3 | description: "Bank in Gaborone: -24.65739,25.91755" 4 | components: 5 | bank: Bank Gaborone 6 | city: Gaborone 7 | country: Botswana 8 | country_code: bw 9 | road: Queens Road 10 | state: South-East District 11 | expected: | 12 | Bank Gaborone 13 | Queens Road 14 | Gaborone 15 | Botswana 16 | 17 | 18 | -------------------------------------------------------------------------------- /testcases/countries/tv.yaml: -------------------------------------------------------------------------------- 1 | # Tuvalu 2 | --- 3 | description: office in Funafuti, -8.52706,179.19302 4 | components: 5 | city: Funafuti 6 | country: Tuvalu 7 | country_code: tv 8 | public_building: Philatelic Office 9 | road: Vaiaku Road 10 | expected: | 11 | Philatelic Office 12 | Vaiaku Road 13 | Funafuti 14 | Tuvalu 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /testcases/countries/am.yaml: -------------------------------------------------------------------------------- 1 | # Armenia 2 | --- 3 | description: Building in Yerevan, 40.18045,44.51534 4 | components: 5 | city: Yerevan 6 | country: Armenia 7 | country_code: am 8 | house_number: 8 9 | postcode: "0010" 10 | road: Abovyan street 11 | expected: | 12 | 8 Abovyan street 13 | 0010 14 | Yerevan 15 | Armenia 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/ki.yaml: -------------------------------------------------------------------------------- 1 | # Kiribati 2 | --- 3 | description: Bank in Bairiki, 1.33010,172.97850 4 | components: 5 | bank: The ANZ Bank 6 | city: Tarawa Teinainano 7 | country: Kiribati 8 | country_code: ki 9 | road: Postplatz 10 | expected: | 11 | The ANZ Bank 12 | Postplatz 13 | Tarawa Teinainano 14 | Kiribati 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /testcases/countries/ls.yaml: -------------------------------------------------------------------------------- 1 | # Lesotho 2 | --- 3 | description: "Bank in Maseru: -29.31459, 27.48446" 4 | components: 5 | bank: Nedbank 6 | city: Maseru 7 | country: Lesotho 8 | country_code: ls 9 | postcode: 100 10 | road: Kingsway 11 | state: Maseru 12 | suburb: Cathedral Area 13 | expected: | 14 | Nedbank 15 | Kingsway 16 | Maseru 100 17 | Lesotho 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/lv.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Riga street address - 56.95095,24.13474 3 | components: 4 | city: Riga 5 | country: Latvia 6 | country_code: lv 7 | county: Rīga 8 | house_number: 81 9 | postcode: LV-1009 10 | road: Ģertrūdes iela 11 | state: Vidzeme 12 | suburb: Avoti 13 | expected: | 14 | Ģertrūdes iela 81 15 | Riga, LV-1009 16 | Latvia 17 | 18 | -------------------------------------------------------------------------------- /testcases/countries/nr.yaml: -------------------------------------------------------------------------------- 1 | # Nauru 2 | --- 3 | description: Parliment building in Yaren, -0.54741,166.91734 4 | components: 5 | country: Nauru 6 | country_code: nr 7 | public_building: Parliament 8 | road: Island Ring Road 9 | village: Yaren 10 | expected: | 11 | Parliament 12 | Island Ring Road 13 | Yaren 14 | Nauru 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /testcases/countries/ws.yaml: -------------------------------------------------------------------------------- 1 | # Samoa 2 | --- 3 | description: post office in Āpia, -13.83128,-171.76770 4 | components: 5 | city: Āpia 6 | country: Samoa 7 | country_code: ws 8 | post_office: Samoa Post Office 9 | road: Beach Road 10 | suburb: Tuanaimato 11 | expected: | 12 | Samoa Post Office 13 | Beach Road 14 | Āpia 15 | Samoa 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/at.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Salzbug street address 3 | components: 4 | city: Salzburg 5 | country: Austria 6 | country_code: AT 7 | county: Bezirk Salzburg 8 | house_number: 5 9 | postcode: 5020 10 | road: Stauffenstraße 11 | state: Salzburg (state) 12 | suburb: Elisabeth-Vorstadt 13 | expected: | 14 | Stauffenstraße 5 15 | 5020 Salzburg 16 | Austria 17 | 18 | -------------------------------------------------------------------------------- /testcases/countries/cc.yaml: -------------------------------------------------------------------------------- 1 | # Cocos (Keeling) Islands 2 | --- 3 | description: Pub on West Island, -12.18832,96.82935 4 | components: 5 | country: Cocos (Keeling) Islands 6 | country_code: cc 7 | pub: Club 8 | state: Cocos (Keeling) Islands 9 | village: West Island 10 | expected: | 11 | Club 12 | West Island 13 | Cocos (Keeling) Islands 14 | Australia 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /testcases/countries/gi.yaml: -------------------------------------------------------------------------------- 1 | # Gibraltar 2 | --- 3 | description: Museum in Gibraltar, 36.13887,-5.35441 4 | components: 5 | country: Gibraltar 6 | country_code: gi 7 | house_number: 18-20 8 | museum: Gibraltar Museum 9 | pedestrian: Bomb House Lane 10 | town: Gibraltar 11 | expected: | 12 | Gibraltar Museum 13 | 18-20 Bomb House Lane 14 | Gibraltar 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /testcases/countries/hm.yaml: -------------------------------------------------------------------------------- 1 | # Heard Island and McDonald Islands 2 | # an Australian external territory 3 | --- 4 | description: Glacier on Heard Island, -53.0571,73.4339 5 | components: 6 | country: Heard Island and McDonald Islands 7 | country_code: hm 8 | island: Heard Island 9 | expected: | 10 | Heard Island 11 | Heard Island and McDonald Islands 12 | Australia 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /testcases/countries/hr.yaml: -------------------------------------------------------------------------------- 1 | # Croatia 2 | --- 3 | description: hotel in Dubrovnik - 42.64286,18.10394 4 | components: 5 | city: Dubrovnik 6 | country: Croatia 7 | country_code: hr 8 | county: Dubrovnik-Neretva 9 | house_number: 2 10 | postcode: 20000 11 | road: Marijana Blazica 12 | suburb: Pile 13 | expected: | 14 | Marijana Blazica 2 15 | 20000 Dubrovnik 16 | Croatia 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/io.yaml: -------------------------------------------------------------------------------- 1 | # British Indian Ocean Territory (IO) 2 | --- 3 | description: Road on Diego Garcia, -7.3153,72.4268 4 | components: 5 | country: British Indian Ocean Territory 6 | country_code: io 7 | road: DG1 8 | village: Seabreeze Village 9 | expected: | 10 | DG1 11 | Seabreeze Village 12 | British Indian Ocean Territory 13 | United Kingdom 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /testcases/countries/km.yaml: -------------------------------------------------------------------------------- 1 | # Comoros 2 | --- 3 | description: court in Moroni, -11.70181,43.25485 4 | components: 5 | city: Moroni 6 | country: Comoros 7 | country_code: km 8 | courthouse: Palais de Justice 9 | road: RN2 10 | state: Grande Comore 11 | expected: | 12 | Palais de Justice 13 | RN2 14 | Moroni 15 | Comoros 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/kz.yaml: -------------------------------------------------------------------------------- 1 | # Kazakhstan 2 | --- 3 | description: 4 | components: 5 | city: Astana 6 | country: Kazakhstan 7 | country_code: KZ 8 | county: район Сарыарка 9 | name: Хива 10 | house_number: 24 11 | postcode: "010000" 12 | road: улица Конституции 13 | state: Astana 14 | expected: | 15 | Kazakhstan 16 | Astana 17 | 010000 Astana 18 | улица Конституции, 24 19 | Хива 20 | -------------------------------------------------------------------------------- /testcases/countries/bj.yaml: -------------------------------------------------------------------------------- 1 | # Benin 2 | --- 3 | description: house in Cotonou 4 | components: 5 | country: Benin 6 | country_code: bj 7 | county: 12e Arrondissement 8 | house_number: 504 9 | road: Rue 12.168 10 | state: Littoral 11 | suburb: Cadjehoun 12 | expected: | 13 | 504, Rue 12.168 14 | Cadjehoun 15 | Benin 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/ck.yaml: -------------------------------------------------------------------------------- 1 | # Cook Islands 2 | --- 3 | description: Hospital in north of Rarotonga, -21.2042,-159.7654 4 | components: 5 | city: Te-Au-O-Tonga 6 | country: Cook Islands 7 | country_code: ck 8 | hospital: Old Hospital 9 | road: Ara Tapu 10 | expected: | 11 | Old Hospital 12 | Ara Tapu 13 | Te-Au-O-Tonga 14 | Cook Islands 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /testcases/countries/mw.yaml: -------------------------------------------------------------------------------- 1 | # Malawi 2 | --- 3 | description: building in Lilongwe, -13.97910,33.76927 4 | components: 5 | building: Mpatsa House 6 | city: Lilongwe 7 | country: Malawi 8 | country_code: mw 9 | residential: Chilambula 10 | road: Paul Kagame Road 11 | state: Central 12 | expected: | 13 | Mpatsa House 14 | Paul Kagame Road 15 | Lilongwe 16 | Malawi 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/sa.yaml: -------------------------------------------------------------------------------- 1 | # Saudi Arabia 2 | --- 3 | description: museum in Saudi Arabia 4 | components: 5 | museum: National Museum of Saudi Arabia 6 | city: Riyadh 7 | country: Saudi Arabia 8 | country_code: sa 9 | postcode: 12844 10 | road: شارع الوزير 11 | region: Riyadh Region 12 | expected: | 13 | National Museum of Saudi Arabia 14 | شارع الوزير 15 | Riyadh 12844 16 | Saudi Arabia 17 | -------------------------------------------------------------------------------- /testcases/countries/si.yaml: -------------------------------------------------------------------------------- 1 | # Slovenia 2 | --- 3 | description: hotel in Piran - 45.51410,13.58819 4 | components: 5 | city: Piran / Pirano 6 | country: Slovenia 7 | country_code: si 8 | house: Casino Riviera 9 | house_number: 33 10 | postcode: 6320 11 | road: Obala 12 | suburb: Liminjan / Limignano 13 | expected: | 14 | Casino Riviera 15 | Obala 33 16 | 6320 Piran / Pirano 17 | Slovenia 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/ua.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: bar in Kiev 3 | components: 4 | city : Kyiv 5 | suburb: Solomianskyi district 6 | country: Ukraine 7 | country_code: UA 8 | house_number: 2д 9 | bar: Утка Bar 10 | postcode: "03038" 11 | road: Protasiv Yar Street 12 | expected: | 13 | Утка Bar 14 | Protasiv Yar Street, 2д 15 | Solomianskyi district 16 | Kyiv 17 | 03038 18 | Ukraine 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/vu.yaml: -------------------------------------------------------------------------------- 1 | # Vanuatu 2 | --- 3 | description: Hotel in Port Vila, -17.73112,168.31218 4 | components: 5 | city: Port Vila 6 | country: Vanuatu 7 | country_code: vu 8 | guest_house: Room with a view 9 | road: Rue de Paris Street 10 | state: Shefa Province 11 | expected: | 12 | Room with a view 13 | Rue de Paris Street 14 | Port Vila 15 | Vanuatu 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/dk.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # 54.89107, 10.40924 3 | description: 54.89107,10.40924 4 | components: 5 | country: Denmark 6 | country_code: dk 7 | county: Ærø Municipality 8 | house_number: 17A 9 | neighbourhood: Paradiset 10 | postcode: 5970 11 | road: Baggårde 12 | state: Region of Southern Denmark 13 | village: Ærøskøbing 14 | expected: | 15 | Baggårde 17A 16 | 5970 Ærøskøbing 17 | Denmark 18 | -------------------------------------------------------------------------------- /testcases/countries/md.yaml: -------------------------------------------------------------------------------- 1 | # Moldova 2 | --- 3 | description: museum in Chișinău 4 | components: 5 | city: Chișinău 6 | country: Moldova 7 | country_code: MD 8 | county: Municipiul Chișinău 9 | house_number: 121a 10 | museum: Muzeul de Istorie 11 | road: str. 31 August 1989 12 | postcode: MD-2012 13 | expected: | 14 | Muzeul de Istorie 15 | str. 31 August 1989, 121a 16 | MD-2012 Chișinău 17 | Moldova 18 | -------------------------------------------------------------------------------- /testcases/countries/gm.yaml: -------------------------------------------------------------------------------- 1 | # The Gambia 2 | --- 3 | description: Library in Banjul, 13.45956,-16.58501 4 | components: 5 | city: Banjul 6 | country: The Gambia 7 | country_code: gm 8 | library: Gambia National Library 9 | road: Reg Pye Lane 10 | state: Banjul 11 | expected: | 12 | Gambia National Library 13 | Reg Pye Lane 14 | Banjul 15 | The Gambia 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/kg.yaml: -------------------------------------------------------------------------------- 1 | # Kyrgyzstan 2 | --- 3 | description: 4 | components: 5 | city: Бишкек 6 | country: Kyrgyzstan 7 | country_code: KG 8 | county: Аламудунский район 9 | cafe: Даамдан 10 | house_number: 473 11 | postcode: 720033 12 | road: Frunze Mikhail Street 13 | state: Astana 14 | expected: | 15 | Kyrgyzstan 16 | Astana 17 | 720033 Бишкек 18 | Frunze Mikhail Street, 473 19 | Даамдан 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/lc.yaml: -------------------------------------------------------------------------------- 1 | # Saint Lucia 2 | --- 3 | description: Bank in Castries, 14.01001,-60.99186 4 | components: 5 | bank: First Caribbean International Bank 6 | country: Saint Lucia 7 | country_code: lc 8 | road: Bridge Street 9 | town: Castries 10 | expected: | 11 | First Caribbean International Bank 12 | Bridge Street 13 | Castries 14 | Saint Lucia 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /testcases/countries/ro.yaml: -------------------------------------------------------------------------------- 1 | # Romania 2 | --- 3 | description: building in Cluj - 46.77498,23.59376 4 | components: 5 | city: Cluj-Napoca 6 | country: Romania 7 | country_code: ro 8 | county: Cluj-Napoca 9 | house_number: 6 10 | postcode: 400157 11 | road: Strada Ploiești 12 | state: Cluj 13 | suburb: Gruia 14 | expected: | 15 | Strada Ploiești 6 16 | 400157 Cluj-Napoca 17 | Romania 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/ag.yaml: -------------------------------------------------------------------------------- 1 | # Antigua and Barbuda 2 | --- 3 | description: Bank in St. John's, 17.12150,-61.84405 4 | components: 5 | bank: Scotiabank 6 | country: Antigua and Barbuda 7 | country_code: ag 8 | postcode: Anu 9 | road: High Street 10 | town: St. John's 11 | expected: | 12 | Scotiabank 13 | High Street 14 | St. John's 15 | Antigua and Barbuda 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/gd.yaml: -------------------------------------------------------------------------------- 1 | # Grenada 2 | --- 3 | description: Bank in St. George's, 12.05197,-61.75459 4 | components: 5 | bank: Republic Bank Grenada 6 | city: St. George's 7 | country: Grenada 8 | country_code: gd 9 | road: Bruce Street 10 | suburb: Belmont 11 | expected: | 12 | Republic Bank Grenada 13 | Bruce Street 14 | St. George's 15 | Grenada 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/je.yaml: -------------------------------------------------------------------------------- 1 | # Jersey in Channel Islands 2 | --- 3 | description: Building in Saing Helier, 49.18619,-2.10716 4 | components: 5 | country: Jersey 6 | country_code: je 7 | house_number: 5 8 | postcode: JE2 4TN 9 | road: Le Geyt Street 10 | state: Jersey 11 | town: Saint Helier 12 | expected: | 13 | 5 Le Geyt Street 14 | Saint Helier 15 | JE2 4TN 16 | Jersey, Channel Islands 17 | -------------------------------------------------------------------------------- /testcases/countries/mt.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: pharmacy in Malta - 35.95777,14.36190 3 | components: 4 | city: Mellieha 5 | country: 1002 6 | country_code: mt 7 | pharmacy: Karizia Pharmacy 8 | residential: mELLIEHA 9 | road: Triq \u0120or\u0121 Borg Olivier 10 | state: Malta 11 | suburb: I\u010b-\u010airkewwa 12 | expected: | 13 | Karizia Pharmacy 14 | Triq \u0120or\u0121 Borg Olivier 15 | Mellieha 16 | Malta 17 | -------------------------------------------------------------------------------- /testcases/countries/py.yaml: -------------------------------------------------------------------------------- 1 | # Paraguay 2 | --- 3 | description: -25.2889244, -57.6466121 4 | components: 5 | bakery: Old Germany German Bakery 6 | city: Asuncion 7 | country: Paraguay 8 | country_code: py 9 | postcode: 1409 10 | road: Milano 11 | state: Distrito Capital de Paraguay 12 | suburb: Tacumbú 13 | expected: | 14 | Old Germany German Bakery 15 | Milano 16 | 1409 Asuncion 17 | Paraguay 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/sc.yaml: -------------------------------------------------------------------------------- 1 | # Seychelles 2 | --- 3 | description: Hotel near Victoria, -4.62549,55.44879 4 | components: 5 | city: Victoria 6 | country: Seychelles 7 | country_code: sc 8 | hotel: Bel Air Hotel 9 | island: Mahé 10 | postcode: SEZ 11 | road: Chemin Bel Air 12 | expected: | 13 | Bel Air Hotel 14 | Chemin Bel Air 15 | Victoria 16 | Mahé 17 | Seychelles 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/tr.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: hotel in Istanbul 3 | components: 4 | country: Turkey 5 | country_code: tr 6 | county: Beşiktaş 7 | house: Swissotel Bosphorus 8 | house_number: 2 9 | postcode: 34357 10 | road: Bayıldım Caddesi 11 | state: Istanbul 12 | suburb: Vişnezade 13 | town: Beşiktaş 14 | expected: | 15 | Swissotel Bosphorus 16 | Bayıldım Caddesi 2 17 | 34357 Beşiktaş 18 | Turkey 19 | -------------------------------------------------------------------------------- /testcases/countries/wf.yaml: -------------------------------------------------------------------------------- 1 | # Wallis and Futuna 2 | --- 3 | description: Building in Mata'utu 4 | components: 5 | building: Palais royal d'Uvéa 6 | country: France, Wallis-et-Futuna (eaux territoriales) 7 | country_code: wf 8 | road: RT1 9 | state: Wallis and Futuna 10 | town: Mata'utu 11 | expected: | 12 | Palais royal d'Uvéa 13 | RT1 14 | Mata'utu 15 | Wallis-et-Futuna, France 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/zm.yaml: -------------------------------------------------------------------------------- 1 | # Zambia 2 | --- 3 | description: Post Office in Lusaka, -15.41667,28.28225 4 | components: 5 | city: Lusaka 6 | country: Zambia 7 | country_code: zm 8 | post_office: Central Post Office 9 | postcode: 34681 10 | road: Church Road 11 | state: Lusaka Province 12 | suburb: Luneta 13 | expected: | 14 | Central Post Office 15 | Church Road 16 | 34681 Lusaka 17 | Zambia 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/bs.yaml: -------------------------------------------------------------------------------- 1 | # Bahamas 2 | --- 3 | description: Court in Nassau, 25.07705,-77.34052 4 | components: 5 | city: Nassau 6 | country: The Bahamas 7 | country_code: bs 8 | county: New Providence 9 | courthouse: Supreme Court 10 | road: Bank Lane 11 | expected: | 12 | Supreme Court 13 | Bank Lane 14 | Nassau 15 | New Providence 16 | The Bahamas 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/ee.yaml: -------------------------------------------------------------------------------- 1 | # 2 | # note: need to find a better way to deal with rural addresses 3 | # 4 | --- 5 | description: Tallinn street address - 59.430702, 24.714138 6 | components: 7 | city: Tallinn 8 | country: Estonia 9 | country_code: ee 10 | county: Harju maakond 11 | house_number: 15 12 | postcode: 10613 13 | road: Kasvu 14 | suburb: Kristiine linnaosa 15 | expected: | 16 | Kasvu 15 17 | 10613 Tallinn 18 | Estonia 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/fj.yaml: -------------------------------------------------------------------------------- 1 | # Fiji 2 | --- 3 | description: Library in Suva, -18.14221,178.42309 4 | components: 5 | city: Suva 6 | country: Fiji 7 | country_code: fj 8 | library: Suva City Library 9 | road: Victoria Parade 10 | state: Central 11 | suburb: The Domain 12 | expected: | 13 | Suva City Library 14 | Victoria Parade 15 | Suva 16 | Fiji 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/ke.yaml: -------------------------------------------------------------------------------- 1 | # Kenya 2 | --- 3 | description: Building in downtown Nairobi -1.28599,36.82206 4 | components: 5 | building: Jubilee Insurance Place 6 | city: Nairobi 7 | country: Kenya 8 | country_code: ke 9 | postcode: 46464 10 | road: Wabera Street 11 | state: Nairobi 12 | suburb: Madaraka Estate 13 | expected: | 14 | Jubilee Insurance Place 15 | Wabera Street 16 | Nairobi 17 | 46464 18 | Kenya 19 | -------------------------------------------------------------------------------- /testcases/countries/uz.yaml: -------------------------------------------------------------------------------- 1 | # Uzbekistan 2 | --- 3 | description: bar in Samarkand 4 | components: 5 | city: Samarkand 6 | country: Uzbekistan 7 | country_code: uz 8 | postcode: 140100 9 | pub: BLUES Cafe 10 | house_number: 66 11 | road: Amir Temur street 12 | state: Samarkand Province 13 | expected: | 14 | BLUES Cafe 15 | Amir Temur street 66 16 | Samarkand 17 | Samarkand Province 18 | Uzbekistan 19 | 140100 20 | -------------------------------------------------------------------------------- /testcases/countries/zw.yaml: -------------------------------------------------------------------------------- 1 | # Zimbabwe 2 | --- 3 | description: Embassy in Harare, -17.82107,31.04553 4 | components: 5 | building: Russian Embassy 6 | city: Harare 7 | country: Zimbabwe 8 | country_code: zw 9 | postcode: "00263" 10 | road: Colquhoun Street 11 | state: Harare Province 12 | suburb: Avondale West 13 | expected: | 14 | Russian Embassy 15 | Colquhoun Street 16 | Harare 17 | Zimbabwe 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/cf.yaml: -------------------------------------------------------------------------------- 1 | # Central African Republic 2 | --- 3 | description: Bank in Bangui, 4.36223,18.58393 4 | components: 5 | bank: Ecobank 6 | city: Bangui 7 | country: Central African Republic 8 | country_code: cf 9 | road: Rue de Navarre 10 | state: Ombella M\'Poko 11 | expected: | 12 | Ecobank 13 | Rue de Navarre 14 | Bangui 15 | Central African Republic 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/sz.yaml: -------------------------------------------------------------------------------- 1 | # Swaziland 2 | --- 3 | description: Manzini Club, -26.4943,31.3894 4 | components: 5 | country: Swaziland 6 | country_code: sz 7 | county: Inkhundla Manzini 8 | postcode: M100 9 | road: Kelly Street 10 | sports_centre: Manzini Club 11 | state: Sifundza seManzini 12 | town: Manzini 13 | expected: | 14 | Manzini Club 15 | Kelly Street 16 | Manzini 17 | M100 18 | Swaziland 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/aq.yaml: -------------------------------------------------------------------------------- 1 | # Antarctica 2 | --- 3 | description: Building at McMurdo Station, -77.8460,166.7359 4 | components: 5 | building: Oil Separator Building 6 | continent: Antarctica 7 | country: Antarctica 8 | country_code: aq 9 | house_number: 72 10 | road: McMurdo Roads 11 | town: McMurdo Station 12 | expected: | 13 | Oil Separator Building 14 | McMurdo Station 15 | Antarctica 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/bm.yaml: -------------------------------------------------------------------------------- 1 | # Bermuda 2 | --- 3 | description: Post office in Flatt's, 32.31976,-64.73605 4 | components: 5 | country: Bermuda 6 | country_code: bm 7 | county: Devonshire 8 | house_number: 65 9 | post_office: Flatt's Post Office 10 | postcode: FL 04 11 | road: Middle Road 12 | expected: | 13 | Flatt's Post Office 14 | 65 Middle Road 15 | Devonshire FL 04 16 | Bermuda 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/is.yaml: -------------------------------------------------------------------------------- 1 | # Iceland 2 | --- 3 | description: Building in Reykjavik, 64.14436,-21.93335 4 | components: 5 | city: Reykjavik 6 | country: Iceland 7 | country_code: is 8 | house_number: 15 9 | postcode: 101 10 | road: Bergstaðastræti 11 | state_district: Capital Region 12 | suburb: Austurbær 13 | expected: | 14 | Bergstaðastræti 15 15 | 101 Reykjavik 16 | Iceland 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/pr.yaml: -------------------------------------------------------------------------------- 1 | # Puerto Rico 2 | --- 3 | description: bar in San Juan 4 | components: 5 | bar: Wisos Velillas Bar 6 | house_number: 252 7 | road: Calle San Francisco 8 | city: San Juan Antiguo 9 | country: Puerto Rico 10 | country_code: PR 11 | county: San Juan 12 | postcode: "00901" 13 | expected: | 14 | Wisos Velillas Bar 15 | 252 Calle San Francisco 16 | San Juan Antiguo, PR 00901 17 | United States of America 18 | -------------------------------------------------------------------------------- /testcases/countries/rs.yaml: -------------------------------------------------------------------------------- 1 | # Serbia 2 | --- 3 | description: restaurant in Belgrade 4 | components: 5 | restaurant: Ресторан Лидо 6 | city: Belgrade 7 | country: Serbia 8 | country_code: RS 9 | neighbourhood: Donji Grad 10 | house_number: 2 11 | postcode: 11080 12 | road: Goce Delceva 13 | state: Central Serbia 14 | suburb: Zemun 15 | expected: | 16 | Ресторан Лидо 17 | Goce Delceva 2 18 | 11080 Belgrade 19 | Serbia 20 | -------------------------------------------------------------------------------- /testcases/countries/vn.yaml: -------------------------------------------------------------------------------- 1 | # Vietnam 2 | --- 3 | description: bar in Nha Trang 4 | components: 5 | road: Tran Quang Khai 6 | city: Nha Trang 7 | country: Vietnam 8 | country_code: VN 9 | postcode: 48058 10 | bar: Why Not Bar 11 | suburb: Tan Lap District 12 | state: Khanh Hoa province 13 | expected: | 14 | Why Not Bar 15 | Tran Quang Khai 16 | Tan Lap District 17 | Nha Trang 18 | Khanh Hoa province 48058 19 | Vietnam 20 | -------------------------------------------------------------------------------- /testcases/countries/aw.yaml: -------------------------------------------------------------------------------- 1 | # Aruba 2 | --- 3 | description: Parliament in Oranjestad, 12.51781,-70.03646 4 | components: 5 | name: Parliament of Aruba 6 | country: Aruba 7 | country_code: aw 8 | house_number: LSB 70 9 | road: L.G. Smith Boulevard 10 | town: Oranjestad 11 | expected: | 12 | Parliament of Aruba 13 | L.G. Smith Boulevard LSB 70 14 | Oranjestad 15 | Aruba 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/im.yaml: -------------------------------------------------------------------------------- 1 | # Isle of Man 2 | --- 3 | description: Address in Douglas, 54.14906,-4.47949 4 | components: 5 | address29: 3FM 6 | country: Isle of Man 7 | country_code: im 8 | county: Middle 9 | house_number: 45 10 | postcode: IM1 2AY 11 | road: Victoria Street 12 | town: Douglas 13 | expected: | 14 | 3FM 15 | 45 Victoria Street 16 | Douglas 17 | IM1 2AY 18 | Isle of Man 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/mv.yaml: -------------------------------------------------------------------------------- 1 | # Maldives 2 | --- 3 | description: Radio station in Malé, 4.17244,73.50311 4 | components: 5 | address29: Voice of Maledives 6 | city: Malé 7 | country: Maldives 8 | country_code: mv 9 | postcode: 20237 10 | road: Buruzu Magu 11 | state: Malé 12 | expected: | 13 | Voice of Maledives 14 | Buruzu Magu 15 | Malé 20237 16 | Maldives 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/bt.yaml: -------------------------------------------------------------------------------- 1 | # Bhutan 2 | --- 3 | description: National Bank in Thimphu, 27.47370,89.63880 4 | components: 5 | bank: Bhutan National Bank 6 | city: Thimphu 7 | country: Bhutan 8 | country_code: bt 9 | postcode: 810 10 | road: Chang Lam 11 | state: Thimphu District 12 | expected: | 13 | Bhutan National Bank 14 | Chang Lam 15 | Thimphu 810 16 | Bhutan 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/co.yaml: -------------------------------------------------------------------------------- 1 | # Colombia 2 | --- 3 | description: 4.63194, -74.06064 4 | components: 5 | house_number: 33 6 | road: Avenida de los Cerros (Circunvalar) 7 | city: Bogota 8 | neighbourhood: Mariscal Sucre 9 | country: Colombia 10 | country_code: CO 11 | postcode: 110231 12 | state: Bogota 13 | suburb: Chapinero 14 | expected: | 15 | Avenida de los Cerros (Circunvalar) 33 16 | Chapinero 17 | 110231 Bogota 18 | Colombia 19 | -------------------------------------------------------------------------------- /testcases/countries/et.yaml: -------------------------------------------------------------------------------- 1 | # Ethiopia 2 | --- 3 | description: Hotel in Swakopmund, -22.67877,14.52302 4 | components: 5 | city: Addis Abeba 6 | country: Ethiopia 7 | country_code: et 8 | library: National Library & Archives 9 | postcode: 3001 10 | road: Yared Street 11 | state: Addis Ababa 12 | suburb: Beherawi 13 | expected: | 14 | National Library & Archives 15 | Yared Street 16 | 3001 Addis Abeba 17 | Ethiopia 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/gl.yaml: -------------------------------------------------------------------------------- 1 | # Greenland 2 | --- 3 | description: Address in Nuuk, 64.17660,-51.73981 4 | components: 5 | city: Nuuk 6 | country: Greenland 7 | country_code: gl 8 | house_number: 18 9 | neighbourhood: Qernertunnguit 10 | pedestrian: Imaneq 11 | postcode: 3900 12 | suburb: Qaurunnguaq 13 | expected: | 14 | Imaneq 18 15 | 3900 Nuuk 16 | Greenland 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/gn.yaml: -------------------------------------------------------------------------------- 1 | # Guinea 2 | --- 3 | description: Restaurant in Conakry, 9.51087,-13.71186 4 | components: 5 | city: Kaloum 6 | country: Guinea 7 | country_code: gn 8 | furniture: L'Art de la Table 9 | road: 8e Avenue 10 | state: Conakry 11 | suburb: Almamiya 2 12 | expected: | 13 | L'Art de la Table 14 | 8e Avenue 15 | Kaloum 16 | Conakry 17 | Guinea 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/gs.yaml: -------------------------------------------------------------------------------- 1 | # South Georgia and the South Sandwich Islands 2 | --- 3 | description: Museum in Grytviken, -54.28012,-36.50793 4 | components: 5 | country: South Georgia and the South Sandwich Islands 6 | country_code: gs 7 | hamlet: Grytviken 8 | museum: South Georgia Museum 9 | state: South Georgia 10 | expected: | 11 | South Georgia Museum 12 | Grytviken 13 | South Georgia 14 | United Kingdom 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /testcases/countries/kn.yaml: -------------------------------------------------------------------------------- 1 | # Saint Kitts and Nevis 2 | --- 3 | description: Restaurant in Basseterre, 17.29535,-62.72366 4 | components: 5 | country: Saint Kitts and Nevis 6 | country_code: kn 7 | province: Saint Kitts 8 | restaurant: Ballahoo Restaurant 9 | road: Fort Street 10 | town: Basseterre 11 | expected: | 12 | Ballahoo Restaurant 13 | Fort Street 14 | Basseterre, Saint Kitts 15 | Saint Kitts and Nevis 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/nf.yaml: -------------------------------------------------------------------------------- 1 | # Norfolk Island, external territory of Australia 2 | --- 3 | description: Shop in Burnt Pine, -29.03214,167.94704 4 | components: 5 | country: Norfolk Island 6 | country_code: nf 7 | postcode: 2899 8 | road: Mitchells Lane 9 | supermarket: P & R Groceries 10 | town: Burnt Pine 11 | expected: | 12 | P & R Groceries 13 | Mitchells Lane 14 | Burnt Pine Norfolk Island 2899 15 | Australia 16 | 17 | -------------------------------------------------------------------------------- /testcases/countries/sb.yaml: -------------------------------------------------------------------------------- 1 | # Solomon Islands 2 | --- 3 | description: Library in Honiara, -9.43683,159.96441 4 | components: 5 | city: Honiara 6 | country: Solomon Islands 7 | country_code: sb 8 | library: Solomon Islands National Library 9 | road: Mendana Avenue 10 | state: Capital Territory 11 | expected: | 12 | Solomon Islands National Library 13 | Mendana Avenue 14 | Honiara 15 | Solomon Islands 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/bi.yaml: -------------------------------------------------------------------------------- 1 | # Burundi 2 | --- 3 | description: Office in Bujumbura, -3.38341,29.36166 4 | components: 5 | building: Bonauto s.a. 6 | city: Bujumbura 7 | country: Burundi 8 | country_code: bi 9 | house_number: 17 10 | postcode: 2730 11 | road: Avenue du Commerce 12 | state: Bujumbura Mairie 13 | suburb: Building Bata 14 | expected: | 15 | Bonauto s.a. 16 | Avenue du Commerce 17 17 | Bujumbura 18 | Burundi 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/cz.yaml: -------------------------------------------------------------------------------- 1 | # Czech Republic 2 | --- 3 | description: Pilsen street address 49.74258,13.37732 4 | components: 5 | city: Plzeň 6 | country: Czech Republic 7 | country_code: cz 8 | county: okres Plzeň-město 9 | house_number: 343/10 10 | neighbourhood: Bory 11 | postcode: 30100 12 | road: Resslova 13 | state: Jihozápad 14 | suburb: Plzeň 15 | expected: | 16 | Resslova 343/10 17 | 301 00 Plzeň 18 | Czech Republic 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/er.yaml: -------------------------------------------------------------------------------- 1 | # Eritrea 2 | --- 3 | description: Court in Asmara, 15.33621,38.94195 4 | components: 5 | city: Asmara 6 | country: Eritrea 7 | country_code: er 8 | courthouse: High Court of Eritrea 9 | postcode: 1004 10 | road: Harnet Avenue 11 | state: Maekel Region 12 | expected: | 13 | High Court of Eritrea 14 | Harnet Avenue 15 | Asmara 16 | Eritrea 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/lt.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Vilnius street address - 54.66710,25.28669 3 | components: 4 | city: Vilnius 5 | country: Lithuania 6 | country_code: lt 7 | house_number: 5 8 | postcode: "02112" 9 | road: Aduti\u0161kio g. 10 | state: Vilnius County 11 | state_district: Vilniaus m. savivaldyb\u0117 12 | suburb: Naujinink\u0173 seni\u016bnija 13 | expected: | 14 | Aduti\u0161kio g. 5 15 | 02112 Vilnius 16 | Lithuania 17 | 18 | -------------------------------------------------------------------------------- /testcases/countries/mc.yaml: -------------------------------------------------------------------------------- 1 | # Monaco 2 | --- 3 | description: Hotel in Monaco, 43.73917,7.42224 4 | components: 5 | country: Monaco 6 | country_code: mc 7 | hotel: Novotel 8 | house_number: 16 9 | postcode: 98000 10 | road: Boulevard Princesse Charlotte 11 | suburb: Monte-Carlo 12 | town: Monaco 13 | expected: | 14 | Novotel 15 | 16 Boulevard Princesse Charlotte 16 | 98000 Monaco 17 | Monaco 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/mh.yaml: -------------------------------------------------------------------------------- 1 | # Marshall Islands 2 | --- 3 | description: Hotel in Majuro, 7.08646,171.37358 4 | components: 5 | city: Majuro 6 | country: Marshall Islands 7 | country_code: mh 8 | hotel: Marshall Islands Resort 9 | neighbourhood: Delap 10 | postcode: 96060 11 | road: Lagoon Road 12 | expected: | 13 | Marshall Islands Resort 14 | Lagoon Road 15 | Majuro, MH 96060 16 | Marshall Islands 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/ng.yaml: -------------------------------------------------------------------------------- 1 | # Nigeria 2 | --- 3 | description: Hotel in Lagos, -22.67877,14.52302 4 | components: 5 | building: Maro Polo Hotel 6 | country: Nigeria 7 | country_code: ng 8 | county: Eti Osa 9 | road: Yeni Crescent 10 | state: Lagos 11 | village: Maiyegun 12 | expected: | 13 | Maro Polo Hotel 14 | Yeni Crescent 15 | Maiyegun 16 | Lagos 17 | Nigeria 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/sm.yaml: -------------------------------------------------------------------------------- 1 | # San Marino 2 | --- 3 | description: Restaurant in City of San Marino, 43.93596,12.44716 4 | components: 5 | country: San Marino 6 | country_code: sm 7 | pedestrian: Contrada Santa Croce 8 | postcode: 47893 9 | restaurant: Pier piz. rist. 10 | town: City of San Marino 11 | expected: | 12 | Pier piz. rist. 13 | Contrada Santa Croce 14 | 47893 City of San Marino 15 | San Marino 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/ch.yaml: -------------------------------------------------------------------------------- 1 | # Switzerland 2 | --- 3 | description: Building in Zurich, 47.37476,8.54393 4 | components: 5 | city: Zurich 6 | country: Switzerland 7 | country_code: ch 8 | county: Bezirk Zürich 9 | house_number: 2 10 | pedestrian: Häringstrasse 11 | postcode: 8001 12 | state: Zurich 13 | suburb: Altstadt 14 | expected: | 15 | Häringstrasse 2 16 | 8001 Zurich 17 | Switzerland 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/td.yaml: -------------------------------------------------------------------------------- 1 | # Chad 2 | --- 3 | description: Hotel in N'Djamena, 12.11417,15.03121 4 | components: 5 | city: N'Djamena 6 | country: Chad 7 | country_code: td 8 | hotel: Le Meridien - Chari 9 | postcode: 456 10 | road: Boulevard de Strasbourg 11 | state: N'Djamena Region 12 | expected: | 13 | Le Meridien - Chari 14 | Boulevard de Strasbourg 15 | N'Djamena 16 | Chad 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/ai.yaml: -------------------------------------------------------------------------------- 1 | # Anguilla 2 | --- 3 | description: building in The Valley, 18.21032,-63.05322 4 | components: 5 | building: Department Of Lands And Surveys 6 | country: Anguilla 7 | country_code: ai 8 | postcode: AI-2640 9 | road: The Valley Road 10 | town: The Valley 11 | expected: | 12 | Department Of Lands And Surveys 13 | The Valley Road 14 | The Valley 15 | AI-2640 Anguilla 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/by.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: National Art Museum in Minsk 3 | components: 4 | city : Minsk 5 | city_district: Ленинский район 6 | country: Belarus 7 | country_code: BY 8 | house_number: 20 9 | museum : Национальный художественный музей 10 | postcode : 220030 11 | road : улица Ленина 12 | expected: | 13 | Belarus 14 | 220030 Minsk 15 | улица Ленина, 20 16 | Национальный художественный музей 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /testcases/countries/il.yaml: -------------------------------------------------------------------------------- 1 | # Israel 2 | --- 3 | description: House in Tel Aviv, 32.06523,34.78793 4 | components: 5 | city: Tel Aviv-Yafo 6 | country: Israel 7 | country_code: il 8 | house_number: 29 9 | postcode: 64739 10 | residential: Tel Aviv 11 | road: Yizhak Sadeh 12 | state: Tel Aviv District 13 | suburb: Montefiore 14 | expected: | 15 | Yizhak Sadeh 29 16 | 64739 Tel Aviv-Yafo 17 | Israel 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/li.yaml: -------------------------------------------------------------------------------- 1 | # Liechtenstein 2 | --- 3 | description: Museum in Vaduz, 47.13947,9.52215 4 | components: 5 | country: Liechtenstein 6 | country_code: li 7 | county: Wahlkreis Oberland 8 | house_number: 32 9 | museum: Kunstmuseum Liechtenstein 10 | pedestrian: Städtle 11 | postcode: 9490 12 | village: Vaduz 13 | expected: | 14 | Kunstmuseum Liechtenstein 15 | Städtle 32 16 | 9490 Vaduz 17 | Liechtenstein 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/ma.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Jemaa el-Fnaa 3 | components: 4 | city: Marrakesh 5 | city_district: Marrakech-Medina 6 | country: Morocco 7 | country_code: MA 8 | county: Province Marrakech 9 | neighbourhood: Quartier des tanneurs 10 | road: Rue El Adala 11 | state: Marrakech-Tensift-El Haouz 12 | suburb: Bab Doukkala 13 | townhall: Hotel de Ville 14 | expected: | 15 | Hotel de Ville 16 | Rue El Adala 17 | Marrakesh 18 | Morocco 19 | -------------------------------------------------------------------------------- /testcases/countries/na.yaml: -------------------------------------------------------------------------------- 1 | # Namibia 2 | --- 3 | description: Hotel in Swakopmund, -22.67877,14.52302 4 | components: 5 | city: Swakopmund 6 | country: Namibia 7 | country_code: na 8 | hotel: Hotel Zum Kaiser 9 | house_number: 4 10 | road: Sam Nujoma Avenue (Kaiser Wilhelm St) 11 | state: Erongo Region 12 | suburb: Central 13 | expected: | 14 | Hotel Zum Kaiser 15 | 4 Sam Nujoma Avenue (Kaiser Wilhelm St) 16 | Swakopmund 17 | Namibia 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/tj.yaml: -------------------------------------------------------------------------------- 1 | # Tajikistan 2 | --- 3 | description: building in Душанбе, 38.55404,68.76598 4 | components: 5 | city: Dushanbe 6 | country: Tajikistan 7 | country_code: tj 8 | county: Rudaki District 9 | house_number: 160 10 | postcode: 734018 11 | road: Mushfiki Street 12 | state: Districts of Republican Subordination 13 | expected: | 14 | Mushfiki Street 160 15 | 734018 Dushanbe 16 | Tajikistan 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/uy.yaml: -------------------------------------------------------------------------------- 1 | # Uruguay 2 | --- 3 | description: -34.90338,-54.95706 4 | components: 5 | city: Maldonado 6 | country: Uruguay 7 | country_code: uy 8 | neighbourhood: Barrio Centro 9 | postcode: 20000 10 | restaurant: Classic Restaurant y Parrillada 11 | road: Román Guerra 12 | state: Maldonado 13 | suburb: Sarubbi 14 | expected: | 15 | Classic Restaurant y Parrillada 16 | Román Guerra 17 | 20000 Maldonado 18 | Uruguay 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/af.yaml: -------------------------------------------------------------------------------- 1 | # Afghanistan 2 | --- 3 | description: Government building in Kandahar, 31.6110,65.6963 4 | components: 5 | building: Kandahar Institute of Health Sciences 6 | city: Kandahar 7 | country: Afghanistan 8 | country_code: af 9 | road: Kandahar-Herat Highway 10 | state: Kandahar 11 | expected: | 12 | Kandahar Institute of Health Sciences 13 | Kandahar-Herat Highway 14 | Kandahar 15 | Afghanistan 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/az.yaml: -------------------------------------------------------------------------------- 1 | # Azerbaijan 2 | --- 3 | description: Bank in Baku, 40.37381,49.84436 4 | components: 5 | bank: Bank Avrasiya 6 | city: Baku 7 | country: Azerbaijan 8 | country_code: az 9 | house_number: 70 10 | path: Nizami küç. 11 | postcode: AZ1014 12 | state: Bakı İnzibati Ərazisi 13 | suburb: Montin 14 | expected: | 15 | Bank Avrasiya 16 | 70 Nizami küç. 17 | AZ1014 Baku 18 | Azerbaijan 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/bz.yaml: -------------------------------------------------------------------------------- 1 | # Belize 2 | --- 3 | description: Supermarket in Belmopan, 17.2547,-88.7645 4 | components: 5 | city: Belmopan 6 | country: Belize 7 | country_code: bz 8 | county: Cayo District 9 | road: Nim Li Punit Street 10 | state: Cayo 11 | supermarket: Fransico Supermarket 12 | expected: | 13 | Fransico Supermarket 14 | Nim Li Punit Street 15 | Belmopan 16 | Belize 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/fo.yaml: -------------------------------------------------------------------------------- 1 | # Faroe Islands 2 | --- 3 | description: Bank in Tórshavn, 62.01111,-6.77396 4 | components: 5 | bank: Bank Nordik 6 | country: Territorial waters of Faroe Islands 7 | country_code: fo 8 | house_number: 17 9 | postcode: 100 10 | road: Steinagøta 11 | state: Streymoy region 12 | town: Tórshavn 13 | expected: | 14 | Bank Nordik 15 | Steinagøta 17 16 | 100 Tórshavn 17 | Faroe Islands 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/re.yaml: -------------------------------------------------------------------------------- 1 | # Réunion 2 | --- 3 | description: Building in Le Port, -20.93750,55.29020 4 | components: 5 | city: Le Port 6 | country: France, La Réunion (eaux territoriales) 7 | country_code: re 8 | county: Saint-Paul 9 | house_number: 17 10 | postcode: 97420 11 | road: Rue François de Mahy 12 | state: Réunion 13 | expected: | 14 | 17 Rue François de Mahy 15 | 97420 Le Port 16 | La Réunion, France 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/to.yaml: -------------------------------------------------------------------------------- 1 | # Tonga 2 | --- 3 | description: Bank in Ma'ufanga, -21.13647,-175.19540 4 | components: 5 | bank: National Reserve Bank of Tonga 6 | country: Tonga 7 | country_code: to 8 | neighbourhood: Fongoloa 9 | road: Hala Sālote 10 | state: Vahe Kolofo'ou 11 | suburb: Kolofo'ou 12 | town: Ma'ufanga 13 | expected: | 14 | National Reserve Bank of Tonga 15 | Hala Sālote 16 | Ma'ufanga 17 | Tonga 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/tt.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: cafe in Port of Spain 3 | components: 4 | house_number: 23 5 | road: O'Connor Street 6 | neighbourhood: Ellerslie Park 7 | city: Port of Spain 8 | suburb: Woodbrook 9 | postcode: 190130 10 | restaurant: More Vino Limited 11 | country: Trinidad and Tobago 12 | country_code: TT 13 | expected: | 14 | More Vino Limited 15 | 23 O'Connor Street 16 | Woodbrook 17 | Port of Spain, 190130 18 | Trinidad and Tobago 19 | -------------------------------------------------------------------------------- /testcases/countries/ad.yaml: -------------------------------------------------------------------------------- 1 | # Andorra 2 | --- 3 | description: Building in Andorra la Vella, 42.50830,1.53014 4 | components: 5 | country: Andorra 6 | country_code: ad 7 | county: Andorra la Vella 8 | house_number: 88 9 | neighbourhood: Centre històric 10 | postcode: AD500 11 | road: Avinguda Meritxell 12 | town: Andorra la Vella 13 | expected: | 14 | 88 Avinguda Meritxell 15 | AD500 Andorra la Vella 16 | Andorra 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/bd.yaml: -------------------------------------------------------------------------------- 1 | # Bangladesh 2 | --- 3 | description: Bank in Dhaka, 23.73210,90.39546 4 | components: 5 | bank: Janata Bank 6 | city: Dhaka 7 | country: Bangladesh 8 | country_code: bd 9 | postcode: 1205 10 | road: Shahid Minar Rd 11 | state: Dhaka Division 12 | suburb: Siddikbazar 13 | expected: | 14 | Janata Bank 15 | Shahid Minar Rd 16 | Siddikbazar 17 | Dhaka - 1205 18 | Bangladesh 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /testcases/countries/dz.yaml: -------------------------------------------------------------------------------- 1 | # Algeria 2 | --- 3 | description: Hotel in Algiers, 36.77428,3.05945 4 | components: 5 | country: Algeria 6 | country_code: dz 7 | county: Alger Centre 8 | hotel: Hôtel Régina 9 | postcode: 16004 10 | road: Boulevard Mustapha Benboulaid 11 | state: Algiers 12 | town: Alger Centre 13 | expected: | 14 | Hôtel Régina 15 | Boulevard Mustapha Benboulaid 16 | 16004 Alger Centre 17 | Algeria 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/id.yaml: -------------------------------------------------------------------------------- 1 | # Indonesia 2 | --- 3 | description: bar in Jakarta 4 | components: 5 | bar: Moodz Gastro Bar 6 | city: RW 05 7 | city_district: 1. kerület 8 | country: Indonesia 9 | country_code: ID 10 | postcode: 12960 11 | road: Epicentrum Boulevard Barat 12 | state: Jakarta Special Capital Region 13 | expected: | 14 | Moodz Gastro Bar 15 | Epicentrum Boulevard Barat 16 | 1. kerület 17 | RW 05 12960 18 | Jakarta Special Capital Region 19 | Indonesia 20 | -------------------------------------------------------------------------------- /testcases/countries/mn.yaml: -------------------------------------------------------------------------------- 1 | # Mongolia 2 | --- 3 | description: Bank in Ulaanbaatar, 47.91484,106.91212 4 | components: 5 | bank: TDB картын төв 6 | city: Ulaanbaatar 7 | country: Mongolia 8 | country_code: mn 9 | postcode: "00976" 10 | road: Seoul street 11 | state: Border Ulan Bator - Töv 12 | expected: | 13 | TDB картын төв 14 | Seoul street 15 | 00976 16 | Ulaanbaatar 17 | Mongolia 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/ms.yaml: -------------------------------------------------------------------------------- 1 | # Montserrat 2 | --- 3 | description: Government building in Brades, 16.79305,-62.21082 4 | components: 5 | country: Montserrat 6 | country_code: ms 7 | county: Saint Peter 8 | public_building: Government Headquarters 9 | road: Farer Plaza 10 | suburb: Gerald's 11 | town: Brades 12 | expected: | 13 | Government Headquarters 14 | Farer Plaza 15 | Brades 16 | Montserrat 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/gu.yaml: -------------------------------------------------------------------------------- 1 | # Guam, unincorporated territory of the US 2 | --- 3 | description: House in Tamuning, 13.50294,144.77693 4 | components: 5 | country: Guam 6 | country_code: gu 7 | county: Guam 8 | house_number: 258 9 | postcode: 96913 10 | road: Father San Vitores Street 11 | state: Guam 12 | town: Tamuning 13 | expected: | 14 | 258 Father San Vitores Street 15 | Tamuning, GU 96913 16 | United States of America 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/la.yaml: -------------------------------------------------------------------------------- 1 | # Laos 2 | --- 3 | description: Govt department building in Vientiane, 17.96306,102.61438 4 | components: 5 | city: Vientiane 6 | country: Laos 7 | country_code: la 8 | postcode: "01003" 9 | public_building: Ministre de la santé 10 | road: Mahosot Road 11 | state: Vientiane Capital 12 | expected: | 13 | Ministre de la santé 14 | Mahosot Road 15 | 01003 Vientiane 16 | Laos 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/lu.yaml: -------------------------------------------------------------------------------- 1 | # Luxemburg 2 | --- 3 | description: Building in Luxemburg, 49.60484,6.12045 4 | components: 5 | address29: Comed 6 | city: Luxembourg 7 | country: Luxemburg 8 | country_code: lu 9 | county: Canton Luxembourg 10 | house_number: 13 11 | postcode: 2016 12 | road: Route d'Esch 13 | suburb: Hollerich 14 | expected: | 15 | Comed 16 | 13 Route d'Esch 17 | 2016 Luxembourg 18 | Luxemburg 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/sr.yaml: -------------------------------------------------------------------------------- 1 | # Suriname 2 | --- 3 | description: School in Paramaribo, 5.83041,-55.18020 4 | components: 5 | city: Paramaribo 6 | country: Suriname 7 | country_code: sr 8 | county: Distrikt Paramaribo 9 | house_number: 7 10 | postcode: 597 11 | road: Simonsweg 12 | school: R.D. Simonsschool 13 | expected: | 14 | R.D. Simonsschool 15 | Simonsweg 7 16 | Paramaribo 17 | Suriname 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/gg.yaml: -------------------------------------------------------------------------------- 1 | # Guernsey in Channel Islands 2 | --- 3 | description: Post office in Saint Peter Port, 49.45676,-2.53688 4 | components: 5 | country: Guernsey 6 | country_code: gg 7 | post_box: Post Office 8 | postcode: GY1 9 | road: Le Marchant Street 10 | state: Guernsey 11 | town: Saint Peter Port 12 | expected: | 13 | Post Office 14 | Le Marchant Street 15 | Saint Peter Port 16 | GY1 17 | Guernsey, Channel Islands 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/jp.yaml: -------------------------------------------------------------------------------- 1 | # Japan 2 | --- 3 | description: Restaurant in Hiroshima, 34.38227,132.44032 4 | components: 5 | city: Hiroshima 6 | country: Japan 7 | country_code: jp 8 | county: Aki County 9 | postcode: 7300846 10 | restaurant: 食辛房 11 | road: 舟入通り 12 | state: Chugoku Region 13 | suburb: Naka Ward 14 | expected: | 15 | 食辛房 16 | 舟入通り 17 | Naka Ward 18 | Hiroshima, Chugoku Region 730-0846 19 | Japan 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/ss.yaml: -------------------------------------------------------------------------------- 1 | # South Sudan 2 | --- 3 | description: Aid Organisation in Juba, 4.84927,31.59833 4 | components: 5 | address29: Diakonie Katastrophenhilfe 6 | city: Juba 7 | country: South Sudan 8 | country_code: ss 9 | road: Kokora Road 10 | state: Central Equatoria 11 | suburb: Governments Cantonment 12 | expected: | 13 | Diakonie Katastrophenhilfe 14 | Kokora Road 15 | Juba 16 | South Sudan 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/ao.yaml: -------------------------------------------------------------------------------- 1 | # Angola 2 | --- 3 | description: Embassy in Luanda, -8.81044,13.23588 4 | components: 5 | building: Embassy of the Federal Republic of Germany 6 | city: Luanda 7 | country: Angola 8 | country_code: ao 9 | house_number: 120 10 | neighbourhood: Mutamba 11 | road: Avenida 4 de Fevereiro 12 | state: Luanda 13 | expected: | 14 | Embassy of the Federal Republic of Germany 15 | Avenida 4 de Fevereiro 120 16 | Luanda 17 | Angola 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/fm.yaml: -------------------------------------------------------------------------------- 1 | # Federated States of Micronesia 2 | --- 3 | description: library in Kolonia, 6.95813,158.20911 4 | components: 5 | country: Federated States of Micronesia 6 | country_code: fm 7 | library: Pohnpei Public Library 8 | postcode: 96941 9 | road: Kaselehlia 10 | state: Pohnpei 11 | town: Kolonia 12 | expected: | 13 | Pohnpei Public Library 14 | Kaselehlia 15 | Kolonia, FM 96941 16 | United States of America 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/gh.yaml: -------------------------------------------------------------------------------- 1 | # Ghana 2 | --- 3 | description: Bank in Accra, 5.56008,-0.20236 4 | components: 5 | building: Ecobank 6 | city: Accra 7 | country: Ghana 8 | country_code: gh 9 | county: Accra Metropolitan 10 | postcode: 233 11 | road: 7th Avenue 12 | state: Greater Accra Region 13 | suburb: West Ridge 14 | expected: | 15 | Ecobank 16 | 7th Avenue 17 | Accra 18 | Ghana 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/mx.yaml: -------------------------------------------------------------------------------- 1 | # Mexico 2 | --- 3 | description: bar in Mexico City 4 | components: 5 | pub: Wallace Whisky Bar 6 | house_number: 45 7 | road: Avenida Tamaulipas 8 | city: Mexico City 9 | city_district: Cuauhtémoc 10 | country: Mexico 11 | country_code: MX 12 | state: Federal District 13 | postcode: "06100" 14 | expected: | 15 | Wallace Whisky Bar 16 | Avenida Tamaulipas 45 17 | Cuauhtémoc 18 | 06100 Mexico City, Federal District 19 | Mexico 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/so.yaml: -------------------------------------------------------------------------------- 1 | # Somalia 2 | --- 3 | description: Hotel in Mogadishu, 2.03459,45.34384 4 | components: 5 | building: Urubu Hotel 6 | city: Mogadishu 7 | city_district: Xamar Weyne 8 | country: Somalia 9 | country_code: so 10 | county: Mogadishu 11 | road: Port Road 12 | state: Banadir 13 | suburb: Xamar Weyne 14 | expected: | 15 | Urubu Hotel 16 | Port Road 17 | Xamar Weyne 18 | Mogadishu 19 | Somalia 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /testcases/countries/tm.yaml: -------------------------------------------------------------------------------- 1 | # Turkmenistan 2 | --- 3 | description: Theatre in Ashgabat, 37.9432,58.3878 4 | components: 5 | city: Ashgabat 6 | country: Turkmenistan 7 | country_code: tm 8 | postcode: 744000 9 | road: Kemine (2035) kocesi 10 | state: Ahal 11 | theatre: National Drama Theatre 12 | expected: | 13 | National Drama Theatre 14 | Kemine (2035) kocesi 15 | 744000 Ashgabat 16 | Turkmenistan 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/za.yaml: -------------------------------------------------------------------------------- 1 | # South Africa 2 | --- 3 | description: Cape Town street address -33.95345,18.47252 4 | components: 5 | city: Cape Town 6 | city_district: Cape Town Subcouncil 15 7 | country: RSA 8 | country_code: za 9 | county: City of Cape Town 10 | house_number: 3 11 | postcode: 7700 12 | road: Upper Alma Road 13 | state: Western Cape 14 | suburb: Rosebank 15 | expected: | 16 | 3 Upper Alma Road 17 | Rosebank 18 | Cape Town 19 | 7700 20 | RSA 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/cm.yaml: -------------------------------------------------------------------------------- 1 | # Cameroon 2 | --- 3 | description: UN building in Yaoundé, 3.85890,11.51580 4 | components: 5 | building: ONUDI 6 | city: Yaoundé III 7 | country: Cameroon 8 | country_code: cm 9 | county: CUY 10 | postcode: 11852 11 | road: rue 3.025 12 | state: Centre 13 | suburb: Centre Administratif 14 | expected: | 15 | ONUDI 16 | rue 3.025 17 | Yaoundé III 18 | Cameroon 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/cx.yaml: -------------------------------------------------------------------------------- 1 | # Christmas Island 2 | --- 3 | description: Supermarket on Christmas Island, -10.4230,105.6729 4 | components: 5 | country: Christmas Island 6 | country_code: cx 7 | neighbourhood: The Settlement 8 | postcode: 6798 9 | road: Gaze Road 10 | state: Christmas Island 11 | supermarket: Christmas Island Supermarket 12 | expected: | 13 | Christmas Island Supermarket 14 | Gaze Road 15 | Christmas Island 6798 16 | Australia 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/my.yaml: -------------------------------------------------------------------------------- 1 | # Malaysia 2 | --- 3 | description: Museum in Kuala Lumpur, 3.14896,101.69916 4 | components: 5 | country: Malaysia 6 | country_code: my 7 | hamlet: Pudu 8 | museum: Telekom Museum 9 | postcode: 50000 10 | road: Jalan Gereja 11 | state: Kuala Lumpur 12 | suburb: Kampung Baru 13 | expected: | 14 | Telekom Museum 15 | Jalan Gereja 16 | Kampung Baru 17 | 50000 Pudu 18 | Kuala Lumpur 19 | Malaysia 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /testcases/countries/tl.yaml: -------------------------------------------------------------------------------- 1 | # Timor-Leste / East Timor 2 | --- 3 | description: Embassy in Dili, -8.54990,125.56677 4 | components: 5 | embassy: Embaixada do Brasil 6 | country: East Timor 7 | country_code: tl 8 | hamlet: Palapasot 9 | postcode: 10 10 | road: Rua César Maria de Serpa Rosa 11 | state: Dili 12 | expected: | 13 | Embaixada do Brasil 14 | Rua César Maria de Serpa Rosa 15 | Palapasot 16 | East Timor 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI Tests 2 | 3 | on: 4 | push: 5 | pull_request: 6 | schedule: 7 | - cron: '11 22 2 * *' 8 | 9 | jobs: 10 | tests: 11 | runs-on: ubuntu-latest 12 | 13 | name: Address-Formatting 14 | 15 | steps: 16 | - uses: actions/checkout@v3 17 | 18 | - name: Set up perl 19 | uses: shogo82148/actions-setup-perl@v1 20 | with: 21 | perl-version: '5.34' 22 | install-modules-with: cpanm 23 | 24 | - name: Tests 25 | run: bin/run_tests.t 26 | -------------------------------------------------------------------------------- /testcases/countries/bl.yaml: -------------------------------------------------------------------------------- 1 | # Saint Barthélemy 2 | --- 3 | description: House in Gustavia, 17.89548,-62.85177 4 | components: 5 | country: Saint Barthélemy 6 | country_code: bl 7 | house_number: 15 8 | neighbourhood: La Pointe 9 | postcode: 97133 10 | road: Rue de Pére Irénée de Bruyn 11 | state: Saint Barthélemy 12 | town: Gustavia 13 | expected: | 14 | 15 Rue de Pére Irénée de Bruyn 15 | 97133 Gustavia 16 | Saint-Barthélemy, France 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/bn.yaml: -------------------------------------------------------------------------------- 1 | # Brunei 2 | --- 3 | description: Hotel in Bandar Seri Begawan, 4.90720,114.91566 4 | components: 5 | building: Gadong Centrepoint 6 | city: Bandar Seri Begawan 7 | country: Brunei 8 | country_code: bn 9 | county: Brunei-Muara 10 | postcode: BE4119 11 | road: Simpang 137 12 | expected: | 13 | Gadong Centrepoint 14 | Simpang 137 15 | Bandar Seri Begawan 16 | Brunei-Muara BE4119 17 | Brunei 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/cw.yaml: -------------------------------------------------------------------------------- 1 | # Curaçao 2 | --- 3 | description: Address in Willemstad, 12.11148,-68.94561 4 | components: 5 | country: Curaçao 6 | country_code: cw 7 | house_number: 14 8 | neighbourhood: Colon 9 | postcode: "0000NA" 10 | road: Jan Erasmusstraat 11 | state: Curaçao 12 | suburb: Seru Domi 13 | town: Willemstad 14 | expected: | 15 | Jan Erasmusstraat 14 16 | Willemstad 17 | Curaçao 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/gy.yaml: -------------------------------------------------------------------------------- 1 | # Guyana 2 | --- 3 | description: Bank in Georgetown, 6.81913,-58.16213 4 | components: 5 | bank: Scotiabank (Carmichael St. Branch) 6 | city: Georgetown 7 | country: Guyana 8 | country_code: gy 9 | county: Demerara-Mahaica Region 10 | postcode: 101147 11 | road: Carmichael Street 12 | expected: | 13 | Scotiabank (Carmichael St. Branch) 14 | Carmichael Street 15 | Georgetown 16 | Guyana 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/me.yaml: -------------------------------------------------------------------------------- 1 | # Montenegro 2 | --- 3 | description: Hotel in Kotor, 42.42550,18.77045 4 | components: 5 | country: Montenegro 6 | country_code: me 7 | county: Opština Kotor 8 | hotel: Hotel Maria 9 | house_number: 449 10 | pedestrian: Trg Sv. Luke 11 | postcode: 85339 12 | suburb: Škaljari 13 | town: Kotor 14 | expected: | 15 | Hotel Maria 16 | Trg Sv. Luke 449 17 | 85339 Kotor 18 | Montenegro 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/mk.yaml: -------------------------------------------------------------------------------- 1 | # Republic of North Macedonia 2 | --- 3 | description: School in Skopje, 41.9891,21.4406 4 | components: 5 | city: Skopje 6 | country: F.Y.R.O.M. 7 | country_code: mk 8 | county: Municipality of Centar 9 | postcode: 1000 10 | road: Мирче Ацев 11 | school: ОУ 11-ти Октомври 12 | state: Skopje Region 13 | suburb: Prolet 14 | expected: | 15 | ОУ 11-ти Октомври 16 | Мирче Ацев 17 | 1000 Skopje 18 | F.Y.R.O.M. 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/pn.yaml: -------------------------------------------------------------------------------- 1 | # Pitcairn Islands, legally part of UK 2 | # see: https://en.wikipedia.org/wiki/Pitcairn_Islands 3 | --- 4 | description: Health center in Adamstown, -25.06572,-130.10004 5 | components: 6 | country: Pitcairn Islands 7 | country_code: pn 8 | hospital: Pitcairn Health Centre 9 | residential: Adamstown 10 | road: Hill of Difficulty 11 | town: Adamstown 12 | expected: | 13 | Pitcairn Health Centre 14 | Adamstown 15 | Pitcairn Islands 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/tf.yaml: -------------------------------------------------------------------------------- 1 | # French Southern and Antarctic Lands 2 | --- 3 | description: Island in south Indian Ocean, -46.43266,51.85775 4 | components: 5 | country: France 6 | country_code: tf 7 | hospital: Hôpital 8 | road: Route de la Plage 9 | state: French Southern and Antarctic Lands 10 | village: Base Alfred Faure 11 | expected: | 12 | Hôpital 13 | Route de la Plage 14 | Base Alfred Faure 15 | Terres australes et antarctiques françaises, France 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /testcases/countries/yt.yaml: -------------------------------------------------------------------------------- 1 | # Mayotte 2 | --- 3 | description: Government building in Mamoudzou, -12.77958,45.23145 4 | components: 5 | building: Conseil Général de Mayotte 6 | country: France, Mayotte (eaux territoriales) 7 | country_code: yt 8 | postcode: 97600 9 | road: Rue Houmadi Bacar 10 | state: Mayotte 11 | town: Mamoudzou 12 | expected: | 13 | Conseil Général de Mayotte 14 | Rue Houmadi Bacar 15 | 97600 Mamoudzou 16 | Mayotte, France 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/ar.yaml: -------------------------------------------------------------------------------- 1 | # Argentina 2 | --- 3 | description: SotM 2014 venue -34.59358185, -58.38328315 4 | components: 5 | city: Autonomous City of Buenos Aires 6 | city_district: Retiro 7 | country: Argentina 8 | country_code: ar 9 | house: CAI 10 | house_number: 1250 11 | postcode: C1010AAZ 12 | road: Cerrito 13 | state: Autonomous City of Buenos Aires 14 | suburb: Retiro 15 | expected: | 16 | CAI 17 | Cerrito 1250 18 | Retiro 19 | C1010 AAZ Buenos Aires 20 | Argentina 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /testcases/countries/bq.yaml: -------------------------------------------------------------------------------- 1 | # Bonaire 2 | --- 3 | description: school in Kralendijk, 12.15286,-68.27238 4 | components: 5 | city: Bonaire 6 | country: Bonaire 7 | country_code: bq 8 | road: Kaya Libertador Simon Bolivar 9 | school: Parokia San Bernardo 10 | state: Caribbean Netherlands 11 | suburb: Sabana 12 | expected: | 13 | Parokia San Bernardo 14 | Kaya Libertador Simon Bolivar 15 | Bonaire 16 | Caribbean Netherlands 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/cy.yaml: -------------------------------------------------------------------------------- 1 | # Cyprus 2 | --- 3 | description: Bank in Limassol, 34.67398,33.04388 4 | components: 5 | bank: Bank of Cyprus 6 | city: Limassol 7 | country: Cyprus 8 | country_code: cy 9 | county: Limassol 10 | pedestrian: Agiou Andreou 11 | postcode: 3042 12 | state: Cyprus 13 | suburb: Mesa Geitonia 14 | expected: | 15 | Bank of Cyprus 16 | Agiou Andreou 17 | 3042 Limassol 18 | Cyprus 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/dj.yaml: -------------------------------------------------------------------------------- 1 | # Djibouti 2 | --- 3 | description: Restaurant in Djibouti (city), 11.59302,43.14587 4 | components: 5 | city: Djibouti 6 | country: Djibouti 7 | country_code: dj 8 | neighbourhood: Place Mahmoud Harbi 9 | restaurant: Blue Nile 10 | road: Ethiopia Street 11 | state: Djibouti 12 | suburb: District 1 13 | expected: | 14 | Blue Nile 15 | Ethiopia Street 16 | Djibouti-Ville 17 | Djibouti 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/dm.yaml: -------------------------------------------------------------------------------- 1 | # Dominica 2 | --- 3 | description: Post office in Roseau, 15.29811,-61.38928 4 | components: 5 | country: Dominica 6 | country_code: dm 7 | post_office: General Post Office 8 | postcode: "00109-800" 9 | road: Drury Lane 10 | state: Saint George Parish 11 | suburb: Potters Ville 12 | town: Roseau 13 | expected: | 14 | General Post Office 15 | Drury Lane 16 | Roseau 17 | Dominica 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/kh.yaml: -------------------------------------------------------------------------------- 1 | # Cambodia 2 | --- 3 | description: Hotel in Phnom Penh, 11.55983,104.93653 4 | components: 5 | city: Phnom Penh 6 | country: Cambodia 7 | country_code: kh 8 | hotel: Cambodiana 9 | postcode: 12301 10 | road: Preah Sisowath Quay 11 | state: Phnom Penh 12 | suburb: Daun Penh 13 | expected: | 14 | Cambodiana 15 | Preah Sisowath Quay 16 | Daun Penh 17 | Phnom Penh 12301 18 | Cambodia 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/ml.yaml: -------------------------------------------------------------------------------- 1 | # Mali 2 | --- 3 | description: Embassy in Bamako, 12.64230,-7.97833 4 | components: 5 | building: Ambassade de Russie 6 | city: Bamako 7 | country: Mali 8 | country_code: ml 9 | county: Bamako District 10 | postcode: E4373 11 | road: Rue 415 12 | state: Bamako District 13 | suburb: Niaréla 14 | expected: | 15 | Ambassade de Russie 16 | Rue 415 17 | Bamako 18 | Mali 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/tg.yaml: -------------------------------------------------------------------------------- 1 | # Togo 2 | --- 3 | description: Govt building in Lomé, 6.12259,1.21944 4 | components: 5 | city: Lomé 6 | country: Togo 7 | country_code: tg 8 | postcode: "BP: 353" 9 | public_building: Palais de Justice 10 | road: Aveenue de la Cooperation 11 | state: Maritime Region 12 | suburb: Hanoukopé 13 | expected: | 14 | Palais de Justice 15 | Aveenue de la Cooperation 16 | Lomé 17 | Togo 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/vc.yaml: -------------------------------------------------------------------------------- 1 | # Saint Vincent and the Grenadines 2 | --- 3 | description: Bank in Kingstown, 13.15545,-61.22592 4 | components: 5 | bank: Bank of St Vincent and the Grenadines 6 | city: Kingstown 7 | country: Saint Vincent and the Grenadines 8 | country_code: vc 9 | county: Saint George 10 | road: Grenville Street 11 | expected: | 12 | Bank of St Vincent and the Grenadines 13 | Grenville Street 14 | Kingstown 15 | Saint Vincent and the Grenadines 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /conf/abbreviations/es.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Avenida: Avda 3 | Calle de: C 4 | Carrera: Cra 5 | Carrero: Cro 6 | Colonia: Col 7 | Estación: Estcn 8 | Gran Vía: GV 9 | Mercado: Merc 10 | Plaza: Pl 11 | Parque: Pque 12 | Pasaje: Psje 13 | Paseo: Po 14 | Pueblo: Pblo 15 | Puente: Pnte 16 | Puerta: Pta 17 | Puerto: Pto 18 | Rambla: Rbla 19 | Ronda: Rda 20 | Rotonda: Rtda 21 | San: S 22 | Sector: Sect 23 | Santa: Sta 24 | Viaducto: Vcto 25 | 26 | -------------------------------------------------------------------------------- /conf/abbreviations/sk.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Armádneho generála: Arm. gen 3 | Československej: Čsl 4 | Doktora: Dr 5 | Doktorky: Dr 6 | Generála: Gen 7 | Inžiniera: Ing 8 | Inžinierky: Ing 9 | Kapitána: Kpt 10 | Majora: Mjr 11 | Nábrežie: Nábr 12 | Námestie: Nám 13 | Plukovníka: Plk 14 | Podplukovníka: Pplk 15 | Podporučíka: Ppor 16 | Poručíka: Por 17 | Profesora: Prof 18 | Profesorky: Prof 19 | Sídlisko: Sídl 20 | Svätého: Sv 21 | Svätej: Sv 22 | Ulica: Ul 23 | -------------------------------------------------------------------------------- /testcases/countries/bb.yaml: -------------------------------------------------------------------------------- 1 | # Barbados 2 | --- 3 | description: Post Office in Bridgetown, 13.09821,-59.62049 4 | components: 5 | city: Bridgetown 6 | country: Barbados 7 | country_code: bb 8 | county: Saint Michael 9 | neighbourhood: New Orleans 10 | post_office: General Post Office 11 | postcode: BB11093 12 | road: Cheapside Road 13 | expected: | 14 | General Post Office 15 | Cheapside Road 16 | Bridgetown 17 | Barbados 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/mf.yaml: -------------------------------------------------------------------------------- 1 | # Collectivité de Saint-Martin (Overseas collectivity of France) 2 | --- 3 | description: Post office in Marigot, 18.06671,-63.08566 4 | components: 5 | country: Saint-Martin 6 | country_code: mf 7 | post_office: Bureau de Poste 8 | postcode: 97150 9 | road: Rue de La Poste 10 | state: Saint-Martin 11 | suburb: Concordia 12 | town: Marigot 13 | expected: | 14 | Bureau de Poste 15 | Rue de La Poste 16 | 97150 Marigot 17 | France 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/tw.yaml: -------------------------------------------------------------------------------- 1 | # Taiwan / Republic of China 2 | --- 3 | description: Library in 新北市板橋區, 25.02511,121.46330 4 | components: 5 | city: 新北市板橋區 6 | country: 中華民國 7 | country_code: tw 8 | house_number: 168 9 | library: 新北市立圖書館板橋四維分館 10 | postcode: 220 11 | road: 陽明街 12 | state : 台中台北各種語言名稱 13 | suburb : 新北板橋土城多語言 14 | expected: | 15 | 中華民國 16 | 220 17 | 新北市板橋區 新北板橋土城多語言 陽明街 168 18 | 新北市立圖書館板橋四維分館 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /conf/abbreviations/pl.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Aleja: al. 3 | Aleje: al. 4 | Alei: al. 5 | Alejach: al. 6 | Aleją: al. 7 | Biskupa: bpa. 8 | Biskup: bp. 9 | Doktora: dr. 10 | Księcia: ks. 11 | Księdza: ks. 12 | Kardynała: kard. 13 | Marszałka: marsz. 14 | Majora: mjr. 15 | Plac: pl. 16 | Placu: pl. 17 | Placem: pl. 18 | Profesora: prof. 19 | Pułkownika: płk. 20 | Rotmistrza: rotm. 21 | Ulica: ul. 22 | Ulice: ul. 23 | Ulicą: ul. 24 | Ulicy: ul. 25 | -------------------------------------------------------------------------------- /testcases/countries/bo.yaml: -------------------------------------------------------------------------------- 1 | # Bolivia 2 | --- 3 | description: Bank in La Paz, -16.49607,-68.14860 4 | components: 5 | bank: Banco Los Andes Pro Credite 6 | city: Municipio Nuestra Senora de La Paz 7 | country: Bolivia 8 | country_code: bo 9 | county: Provincia Murillo 10 | postcode: 8686 11 | road: José María Achá 12 | state: La Paz Departament 13 | suburb: Gran Poder 14 | expected: | 15 | Banco Los Andes Pro Credite 16 | José María Achá 17 | La Paz 18 | Bolivia 19 | 20 | -------------------------------------------------------------------------------- /testcases/countries/mm.yaml: -------------------------------------------------------------------------------- 1 | # Myanmar (Burma) 2 | --- 3 | description: hotel in Yangon, 16.76945,96.16260 4 | components: 5 | country: Myanmar 6 | country_code: mm 7 | hotel: The Strand Hotel 8 | house_number: 92 9 | postcode: 11182 10 | road: ဆိပ်ကမ်းသာလမ်း - Seik Kan Tha St 11 | state: Yangon 12 | town: Kyauktada 13 | expected: | 14 | The Strand Hotel 15 | 92 ဆိပ်ကမ်းသာလမ်း - Seik Kan Tha St 16 | Kyauktada, 11182 17 | Myanmar 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/rw.yaml: -------------------------------------------------------------------------------- 1 | # Rwanda 2 | --- 3 | description: Energy office in Kigali, -1.94421,30.05806 4 | components: 5 | building: Energy Water and Sanitation Authority head office 6 | city: Kigali 7 | country: Rwanda 8 | country_code: rw 9 | county: Nyarugenge 10 | postcode: 5011 Kigali-Rwanda 11 | road: KN 82 Street 12 | state: Kigali City 13 | suburb: Nyarugenge 14 | expected: | 15 | Energy Water and Sanitation Authority head office 16 | KN 82 Street 17 | Kigali 18 | Rwanda 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/gr.yaml: -------------------------------------------------------------------------------- 1 | # Greece 2 | --- 3 | description: bank in Greece 4 | components: 5 | bank: National Bank of Greece 6 | city: Municipality of Athens 7 | country: Greece 8 | country_code: GR 9 | county: Central Athens Regional Unit 10 | house_number: 11 11 | neighbourhood: Kolonaki 12 | postcode: 10673 13 | road: Skoufa street 14 | state: Attica Administration 15 | state_district: Attica 16 | expected: | 17 | National Bank of Greece 18 | Skoufa street 11 19 | 106 73 Municipality of Athens 20 | Greece 21 | -------------------------------------------------------------------------------- /testcases/countries/mz.yaml: -------------------------------------------------------------------------------- 1 | # Mozambique 2 | --- 3 | description: Building in Maputo -25.96585,32.59418 4 | components: 5 | address29: Sturrock Shipping 6 | city: Cidade de Maputo 7 | city_district: Distrito Urbano de KaMpfumo 8 | country: Mozambique 9 | country_code: mz 10 | house_number: 362 11 | postcode: 1100 12 | road: Avenida Mao Tsé Tung 13 | state: Maputo 14 | suburb: Polana Cimento B 15 | expected: | 16 | Sturrock Shipping 17 | Avenida Mao Tsé Tung, 362 18 | 1100 Cidade de Maputo 19 | Mozambique 20 | -------------------------------------------------------------------------------- /testcases/countries/vg.yaml: -------------------------------------------------------------------------------- 1 | # British Virgin Islands 2 | --- 3 | description: Govt building in Road Town, 18.42132,-64.61601 4 | components: 5 | building: Government of the BVI 6 | country: British Virgin Islands 7 | country_code: vg 8 | house_number: 33 9 | island: Tortola 10 | postcode: VG1110 11 | road: Admin Drive 12 | town: Road Town 13 | expected: | 14 | Government of the BVI 15 | 33 Admin Drive 16 | Road Town, Tortola 17 | British Virgin Islands, VG1110 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/fi.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # http://www.central.fi/fi_FI/etusivu/ 3 | description: restaurant Helsinki 4 | components: 5 | city: Helsinki 6 | country: Finland 7 | country_code: fi 8 | county: Helsingin seutukunta 9 | house_number: 15 10 | postcode: "00140" 11 | restaurant: Ravintola Central 12 | road: Pietarinkatu 13 | state: Southern Finland 14 | state_district: Southern Finland 15 | suburb: Ullanlinna 16 | expected: | 17 | Ravintola Central 18 | Pietarinkatu 15 19 | 00140 Helsinki 20 | Finland 21 | -------------------------------------------------------------------------------- /testcases/countries/gp.yaml: -------------------------------------------------------------------------------- 1 | # Guadeloupe 2 | --- 3 | description: Museum in Pointe-à-Pitre, 16.23832,-61.53703 4 | components: 5 | country: Guadeloupe 6 | country_code: gp 7 | county: Pointe-à-Pitre 8 | museum: Musée Lherminier 9 | postcode: 97110 10 | road: Rue Sadi-Carnot 11 | state: Guadeloupe 12 | suburb: Centre-Ville 13 | town: Pointe-à-Pitre 14 | expected: | 15 | Musée Lherminier 16 | Rue Sadi-Carnot 17 | 97110 Pointe-à-Pitre 18 | Guadeloupe, France 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/hu.yaml: -------------------------------------------------------------------------------- 1 | # Hungary 2 | --- 3 | description: house in Budapest - 47.49269,19.03371 4 | components: 5 | city: Budapest 6 | city_district: 1. kerület 7 | country: Hungary 8 | country_code: hu 9 | county: Budapesti kistérség 10 | house_number: 11 11 | neighbourhood: Naphegy 12 | postcode: 1111 13 | road: Dezső utca 14 | state: Közép-Magyarország 15 | state_district: Central Hungary 16 | suburb: Krisztinaváros 17 | expected: | 18 | Budapest 19 | Dezső utca 11 20 | 1111 21 | Hungary 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /conf/abbreviations/nl.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Burgemeester: Burg 3 | Docter: Dr 4 | Dokter: Dr 5 | Gebroeders: Gebr 6 | Generaal: Gen 7 | Gracht: Gr 8 | Kardinaal: Kard 9 | Kolonel: Kol 10 | Kort: K 11 | Korte: Kte 12 | Laan: ln 13 | Lange: L 14 | Markt: mkt 15 | Minister: Min 16 | Monseigneur: Mgr 17 | Pastoor: Past 18 | Prins: Pr 19 | Prinses: Pr 20 | Professor: Prof 21 | Sint: St 22 | Straat: str 23 | Van: v 24 | Vrouwe: Vr 25 | Weg: wg 26 | Zuster: Zr 27 | -------------------------------------------------------------------------------- /testcases/countries/ec.yaml: -------------------------------------------------------------------------------- 1 | # Ecuador 2 | --- 3 | description: University building in Quito, -0.19972,-78.50708 4 | components: 5 | building: Centro de Matematica 6 | city: Quito 7 | city_district: Quito 8 | country: Ecuador 9 | country_code: ec 10 | county: Quito 11 | postcode: 170521 12 | road: Jerónimo Leiton 13 | state: Pichincha 14 | suburb: Rumipamba 15 | expected: | 16 | Centro de Matematica 17 | Jerónimo Leiton 18 | 170521 19 | Quito 20 | Ecuador 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /testcases/countries/cv.yaml: -------------------------------------------------------------------------------- 1 | # Cabo Verde 2 | --- 3 | description: Bank in Praia, 14.91887,-23.50912 4 | components: 5 | bank: Banco de Cabo Verde 6 | city: Praia 7 | country: Cape Verde 8 | country_code: cv 9 | county: Praia 10 | neighbourhood: Bela Vista 11 | postcode: 7600 12 | road: Avenida Amilcar Cabral 13 | suburb: Várzea 14 | expected: | 15 | Banco de Cabo Verde 16 | Avenida Amilcar Cabral 17 | 7600-Praia 18 | Cape Verde 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/gq.yaml: -------------------------------------------------------------------------------- 1 | # Equatorial Guinea 2 | --- 3 | description: Restaurant in Malabo, 3.75719,8.78163 4 | components: 5 | city: Malabo 6 | country: Equatorial Guinea 7 | country_code: gq 8 | neighbourhood: Los Ángeles 9 | restaurant: Treasure Island 10 | road: Av de la Independencia 11 | state: Bioko Norte 12 | suburb: Santa Isabel 13 | expected: | 14 | Treasure Island 15 | Av de la Independencia 16 | Malabo 17 | Equatorial Guinea 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/cr.yaml: -------------------------------------------------------------------------------- 1 | # Costa Rica 2 | --- 3 | description: Court in Limón, 9.99403,-83.02745 4 | components: 5 | city: Limón 6 | country: Costa Rica 7 | country_code: cr 8 | courthouse: Tribunales de Justicia 9 | neighbourhood: Barrio Hospital 10 | postcode: 70101 11 | road: Calle 2 - Romualdo Segura 12 | state: Limón 13 | expected: | 14 | Tribunales de Justicia 15 | Calle 2 - Romualdo Segura 16 | Limón, Barrio Hospital 17 | 70101 Costa Rica 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/gw.yaml: -------------------------------------------------------------------------------- 1 | # Guinea-Bissau 2 | --- 3 | description: Embassy in Bissau, 11.86213,-15.58436 4 | components: 5 | building: Embaixada d'Espanha 6 | city: Bissau 7 | country: Guinea-Bissau 8 | country_code: gw 9 | neighbourhood: Tchada 10 | road: Praça dos Herois Nacionais 11 | state: Setor autónomo de Bissau 12 | suburb: Reino 13 | expected: | 14 | Embaixada d'Espanha 15 | Praça dos Herois Nacionais 16 | Bissau 17 | Guinea-Bissau 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/ky.yaml: -------------------------------------------------------------------------------- 1 | # Cayman Islands 2 | --- 3 | description: address in George Town, 19.29619,-81.38217 4 | components: 5 | building: Butterfield Place 6 | city: George Town 7 | country: Cayman Islands 8 | country_code: ky 9 | house_number: 12 10 | postcode: KY1-1103 11 | road: Albert Panton Street 12 | suburb: Rock Hole Road 13 | expected: | 14 | Butterfield Place 15 | 12 Albert Panton Street 16 | George Town KY1-1103 17 | Cayman Islands 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/pk.yaml: -------------------------------------------------------------------------------- 1 | # Pakistan 2 | --- 3 | description: Hotel in Karachi, 24.84292,66.99589 4 | components: 5 | building: Avari Beach Luxury Hotel 6 | city: Karachi 7 | country: Pakistan 8 | country_code: pk 9 | county: Karachi District 10 | postcode: 75000 11 | road: Khan Road 12 | state: Sindh 13 | suburb: Lyari Town 14 | expected: | 15 | Avari Beach Luxury Hotel 16 | Khan Road 17 | Lyari Town 18 | Karachi 75000 19 | Pakistan 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/ci.yaml: -------------------------------------------------------------------------------- 1 | # Côte d'Ivoire 2 | --- 3 | description: post office in Abidjan 4 | components: 5 | city: Treichville 6 | country: Côte d'Ivoire 7 | country_code: ci 8 | neighbourhood: Zone Industriele de Treichville 9 | post_office: La Poste 10 | postcode: "00225" 11 | road: Boulevard de Marseille 12 | state: Abidjan 13 | suburb: Zone 2b 14 | expected: | 15 | La Poste 16 | Boulevard de Marseille 17 | Treichville 18 | Côte d'Ivoire 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/gf.yaml: -------------------------------------------------------------------------------- 1 | # French Guyana - part of France, but has its own country code 2 | --- 3 | description: House in Cayenne, 4.93802,-52.32985 4 | components: 5 | country: French Guiana 6 | country_code: gf 7 | county: Cayenne 8 | house_number: 53 9 | neighbourhood: Cité Floralies 10 | postcode: 97300 11 | road: Rue du Lieutenant Becker 12 | state: French Guiana 13 | town: Cayenne 14 | expected: | 15 | 53 Rue du Lieutenant Becker 16 | 97300 Cayenne 17 | France 18 | -------------------------------------------------------------------------------- /testcases/countries/sd.yaml: -------------------------------------------------------------------------------- 1 | # Sudan 2 | --- 3 | description: Train station in Khartoum, 15.5953,32.5285 4 | components: 5 | building: Khartoum Train Station 6 | city: Khartoum 7 | country: Sudan 8 | country_code: sd 9 | neighbourhood: Railway 10 | postcode: 11114 11 | road: Al Imam Al Mahdi Road 12 | state: al-Khartum 13 | suburb: Downtown 14 | expected: | 15 | Khartoum Train Station 16 | Al Imam Al Mahdi Road 17 | 11114 Khartoum 18 | Sudan 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/st.yaml: -------------------------------------------------------------------------------- 1 | # São Tomé and Príncipe 2 | --- 3 | description: Library in São Tomé, 0.34004,6.73701 4 | components: 5 | city: São Tomé 6 | country: São Tomé and Príncipe 7 | country_code: st 8 | county: Agua Grande 9 | library: Biblioteca Nacional 10 | road: Avenida das Naçoes Unidas 11 | state: São Tomé Province 12 | suburb: Riboque 13 | expected: | 14 | Biblioteca Nacional 15 | Avenida das Naçoes Unidas 16 | São Tomé 17 | São Tomé and Príncipe 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/jm.yaml: -------------------------------------------------------------------------------- 1 | # Jamaica 2 | --- 3 | description: building in Spanish Town, 17.99588,-76.95424 4 | components: 5 | building: Old Court House 6 | city: Spanish Town 7 | country: Jamaica 8 | country_code: jm 9 | county: Saint Catherine 10 | neighbourhood: Tawes Meadows 11 | road: Constitution Street 12 | state_district: Middlesex County 13 | expected: | 14 | Old Court House 15 | Constitution Street 16 | Tawes Meadows 17 | Spanish Town 18 | Jamaica 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/mg.yaml: -------------------------------------------------------------------------------- 1 | # Madagascar 2 | --- 3 | description: Embassy in Antananarivo, -18.90744,47.52145 4 | components: 5 | building: Ambassade de l'Inde 6 | city: Antananarivo 7 | country: Madagascar 8 | country_code: mg 9 | postcode: 1 10 | road: Làlana Rajhonson Emile 11 | state: Province d'Antananarivo 12 | suburb: Tsaralalana 13 | expected: | 14 | Ambassade de l'Inde 15 | Làlana Rajhonson Emile 16 | Tsaralalana 17 | 1 Antananarivo 18 | Madagascar 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/mp.yaml: -------------------------------------------------------------------------------- 1 | # Northern Mariana Islands (a US commonwealth) 2 | --- 3 | description: Red Cross office on Saipan, 15.12601,145.72340 4 | components: 5 | building: Red Cross 6 | country: Northern Mariana Islands 7 | country_code: mp 8 | county: Saipan Municipality 9 | postcode: 96950 10 | road: Chalan Tun Herman Pan 11 | state: Northern Mariana Islands 12 | town: Saipan 13 | expected: | 14 | Red Cross 15 | Chalan Tun Herman Pan 16 | Saipan, MP 96950 17 | United States of America 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/ve.yaml: -------------------------------------------------------------------------------- 1 | # Venezuela 2 | --- 3 | description: restaurant in Caracas 4 | components: 5 | house_number: 33 6 | road: Av. Teresa de La Parra 7 | city: Parroquia San Pedro 8 | county: Municipio Libertador 9 | neighbourhood: Los Chaguaramos 10 | country: Venezuela 11 | country_code: VE 12 | postcode: 1040 13 | restaurant: El Carretón 14 | state_district: Caracas 15 | state: Capital District 16 | expected: | 17 | El Carretón 18 | Av. Teresa de La Parra 33 19 | Parroquia San Pedro 1040, Capital District 20 | Venezuela 21 | -------------------------------------------------------------------------------- /testcases/countries/ht.yaml: -------------------------------------------------------------------------------- 1 | # Haiti 2 | --- 3 | description: Bank in Port-au-Prince, 18.55005,-72.34510 4 | components: 5 | bank: Banque de l'Union Haitienne SA 6 | city: Commune de Port-au-Prince 7 | country: Haiti 8 | country_code: ht 9 | postcode: HT6114 10 | road: Rue Bonne Foi 11 | state: Département de l'Ouest 12 | state_district: Port-au-Prince 13 | suburb: 6e Turgeau 14 | expected: | 15 | Banque de l'Union Haitienne SA 16 | Rue Bonne Foi 17 | HT6114 Port-au-Prince 18 | Haiti 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/lr.yaml: -------------------------------------------------------------------------------- 1 | # Liberia 2 | --- 3 | description: Hotel in Monrovia, 6.31756,-10.80689 4 | components: 5 | city: Monrovia 6 | country: Liberia 7 | country_code: lr 8 | county: Greater Monrovia 9 | neighbourhood: Vai Town 10 | postcode: 1000 11 | public_building: Palm Hotel 12 | road: Broad Street 13 | state: Montserrado County 14 | suburb: Crown Hill 15 | expected: | 16 | Palm Hotel 17 | Broad Street 18 | 1000 Monrovia 19 | Liberia 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/mq.yaml: -------------------------------------------------------------------------------- 1 | # Martinique 2 | --- 3 | description: Administrative building in Fort-au-France, 14.60443,-61.07770 4 | components: 5 | city: Fort-de-France 6 | country: Martinique 7 | country_code: mq 8 | county: Fort-de-France 9 | courthouse: Tribunal Administratif de Fort-de-France 10 | postcode: 97200 11 | road: Avenue Condorcet 12 | state: Martinique 13 | expected: | 14 | Tribunal Administratif de Fort-de-France 15 | Avenue Condorcet 16 | 97200 Fort-de-France 17 | Martinique, France 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/sx.yaml: -------------------------------------------------------------------------------- 1 | # Sint Maarten 2 | --- 3 | description: Resort in Sint Maarten, 18.02823,-63.09426 4 | components: 5 | city: Sint Maarten 6 | country: Sint Maarten 7 | country_code: sx 8 | hotel: La Vista Beach Resort 9 | neighbourhood: Pelican Key 10 | postcode: 46226 11 | road: Billy Folly Road 12 | state: Sint Maarten (State of) 13 | suburb: Saint John's Estate 14 | expected: | 15 | La Vista Beach Resort 16 | Billy Folly Road 17 | Sint Maarten 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/kp.yaml: -------------------------------------------------------------------------------- 1 | # Democratic People's Republic of Korea / North Korea 2 | --- 3 | description: Library in Pyongyang, 39.0203,125.7490 4 | components: 5 | city: Pyongyang 6 | country: North Korea 7 | country_code: kp 8 | library: Grand People's Study House 9 | road: Somun Street 10 | state: Pyongyang 11 | state_district: Central District 12 | suburb: 동신3동 (Tongsin 3-dong) 13 | expected: | 14 | Grand People's Study House 15 | Somun Street 16 | 동신3동 (Tongsin 3-dong) 17 | Pyongyang 18 | North Korea 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/pf.yaml: -------------------------------------------------------------------------------- 1 | # French Polynesia 2 | --- 3 | description: Office in Papeete, -17.53714,-149.56608 4 | components: 5 | building: Mairie (bureaux administratifs) 6 | city: Papeete 7 | country: Polynésie française, Îles du Vent (eaux territoriales) 8 | country_code: pf 9 | county: Îles du Vent 10 | postcode: 98714 11 | road: Rue des Remparts 12 | state: French Polynesia 13 | expected: | 14 | Mairie (bureaux administratifs) 15 | Rue des Remparts 16 | 98714 Papeete 17 | Polynésie française, France 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/pg.yaml: -------------------------------------------------------------------------------- 1 | # Papau New Guinea 2 | --- 3 | description: Hotel in Port Moresby, -9.47861,147.15138 4 | components: 5 | city: Port Moresby 6 | country: Papua New Guinea 7 | country_code: pg 8 | county: National Capital District 9 | hotel: Crowne Plaza Hotel 10 | road: Mary Street 11 | state: National Capital District 12 | suburb: Ela Beach 13 | expected: | 14 | Crowne Plaza Hotel 15 | Mary Street 16 | Port Moresby National Capital District 17 | Papua New Guinea 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/cg.yaml: -------------------------------------------------------------------------------- 1 | # Republic of the Congo / Congo-Brazzaville 2 | --- 3 | description: Embassy in Brazzaville, -4.26708,15.27797 4 | components: 5 | embassy: South Africa (Embassy) 6 | city: Brazzaville 7 | country: Congo-Brazzaville 8 | country_code: cg 9 | neighbourhood: Plateau des 15 ans 10 | road: rue de Maya-maya 11 | state: Brazzaville 12 | suburb: Poto-Poto 13 | expected: | 14 | South Africa (Embassy) 15 | rue de Maya-maya 16 | Brazzaville 17 | Congo-Brazzaville 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/ga.yaml: -------------------------------------------------------------------------------- 1 | # Gabon 2 | --- 3 | description: Embassy in Librevill, 0.38899,9.44561 4 | components: 5 | building: Consulat De France 6 | city: Libreville 7 | country: Gabon 8 | country_code: ga 9 | county: Libreville Department 10 | neighbourhood: Batavea 11 | postcode: BP13131 12 | road: Rue Ange M'ba 13 | state: Estuaire 14 | suburb: Nombakele 15 | expected: | 16 | Consulat De France 17 | Rue Ange M'ba 18 | Nombakele 19 | Libreville 20 | Gabon 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /testcases/countries/mo.yaml: -------------------------------------------------------------------------------- 1 | # Macau 2 | # note in OSM, returns country_code = cn 3 | --- 4 | description: Building in Macau, 22.16096,113.55467 5 | components: 6 | building: 第四座欣濠軒 Torre 4 7 | country: Macau 8 | country_code: mo 9 | county: 嘉模堂區 Nossa Senhora do Carmo 10 | house_number: 641 11 | road: 南京街 Rua de Nam Keng 12 | state: Macao 13 | state_district: Taipa 14 | suburb: Taipa 15 | village: Taipa Old Village 16 | expected: | 17 | 第四座欣濠軒 Torre 4 18 | 南京街 Rua de Nam Keng 641 19 | Taipa 20 | Macau 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /testcases/countries/bg.yaml: -------------------------------------------------------------------------------- 1 | # Bulgaria 2 | --- 3 | description: university in Sofia 4 | components: 5 | city: Sofia 6 | country: Bulgaria 7 | country_code: BG 8 | county: Sofia-City Region 9 | road: Georgi Sava Rakovski St. 10 | state: RJ 11 | state_district: Região Metropolitana do Rio de Janeiro 12 | suburb: Centre 13 | postcode: 1000 14 | university: Krastyo Sarafov National Academy for Theatre and Film Arts 15 | expected: | 16 | Krastyo Sarafov National Academy for Theatre and Film Arts 17 | Georgi Sava Rakovski St. 18 | Centre 19 | Sofia 1000 20 | Bulgaria 21 | -------------------------------------------------------------------------------- /testcases/countries/hn.yaml: -------------------------------------------------------------------------------- 1 | # Honduras 2 | --- 3 | description: post office in Tegucigalpa, 14.10631,-87.20813 4 | components: 5 | city: Tegucigalpa 6 | country: Honduras 7 | country_code: hn 8 | county: Tegucigalpa 9 | footway: Paseo Liquidambar 10 | post_office: Correo Nacional de Honduras 11 | postcode: 504 12 | state: Francisco Morazán 13 | suburb: El Jazmin 14 | expected: | 15 | Correo Nacional de Honduras 16 | Paseo Liquidambar 17 | 504 Tegucigalpa 18 | Honduras 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /testcases/countries/cd.yaml: -------------------------------------------------------------------------------- 1 | # Democratic Republic of the Congo 2 | --- 3 | description: Embassy in Kinshasa 4 | components: 5 | building: Embassy of the Federal Republic of Germany 6 | country: Congo-Kinshasa 7 | country_code: cd 8 | house_number: 82 9 | postcode: 243 10 | road: Avenue du Roi Baudouin 11 | state: Kinshasa 12 | suburb: Royal 13 | town: Gombe 14 | expected: | 15 | Embassy of the Federal Republic of Germany 16 | 82, Avenue du Roi Baudouin 17 | Gombe 18 | Congo-Kinshasa 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testcases/countries/cl.yaml: -------------------------------------------------------------------------------- 1 | # Chile 2 | --- 3 | description: -33.42983,-70.60620 4 | components: 5 | city: Providencia 6 | country: Chile 7 | country_code: cl 8 | county: Provincia de Santiago 9 | house_number: 920 10 | neighbourhood: Unidad Vecinal Providencia 11 | postcode: 7500000 12 | region: Región Metropolitana de Santiago 13 | road: Avenida Ricardo Lyon 14 | state: XIII Región Metropolitana de Santiago 15 | suburb: Providencia 16 | expected: | 17 | Avenida Ricardo Lyon 920 18 | 7500000 Providencia 19 | Región Metropolitana de Santiago 20 | Chile 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/lk.yaml: -------------------------------------------------------------------------------- 1 | # Sri Lanka 2 | --- 3 | description: Landmark in Colombo, 6.9269,79.8584 4 | components: 5 | address29: Colombo Lotus Tower 6 | city: Colombo 7 | country: Sri Lanka 8 | country_code: lk 9 | postcode: "00200" 10 | road: D. R. Wijewardene Mawatha 11 | state: Western Province 12 | state_district: Colombo District 13 | suburb: Suduwella 14 | expected: | 15 | Colombo Lotus Tower 16 | D. R. Wijewardene Mawatha 17 | Suduwella 18 | Colombo 00200 19 | Sri Lanka 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /testcases/countries/vi.yaml: -------------------------------------------------------------------------------- 1 | # United States Virgin Islands 2 | --- 3 | description: Library in Charlotte Amalie, 18.34119,-64.93546 4 | components: 5 | country: United States of America 6 | country_code: vi 7 | county: St. Thomas Island 8 | library: Enid M Baa Library and Archives 9 | postcode: "00803" 10 | road: Dronningens Gade 11 | state: United States Virgin Islands 12 | town: Charlotte Amalie 13 | expected: | 14 | Enid M Baa Library and Archives 15 | Dronningens Gade 16 | Charlotte Amalie, VI 00803 17 | United States of America 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/countries/do.yaml: -------------------------------------------------------------------------------- 1 | # Dominican Republic 2 | --- 3 | description: Bank in Santo Domingo 4 | components: 5 | bank: Banco de Reservas 6 | city: Santo Domingo 7 | country: Dominican Republic 8 | country_code: do 9 | neighbourhood: El Manguito 10 | postcode: 10102 11 | road: Avenida Jiménez Moya 12 | state: Distrito Nacional 13 | suburb: Ensanche Evoristo Morales 14 | expected: | 15 | Banco de Reservas 16 | Avenida Jiménez Moya 17 | Ensanche Evoristo Morales 18 | Santo Domingo, DN 19 | 10102 20 | Dominican Republic 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /testcases/countries/eh.yaml: -------------------------------------------------------------------------------- 1 | # Western Sahara 2 | # note - unclear legal status, claimed as part of Morocco 3 | # see: https://en.wikipedia.org/wiki/Western_Sahara 4 | # 5 | --- 6 | description: Hotel in Laayoune, 27.15658,-13.20123 7 | components: 8 | country: Western Sahara 9 | country_code: eh 10 | county: Pachalik de Laâyoune 11 | hotel: Hôtel Al-Massira 12 | postcode: 70036 13 | road: Boulevard de la Mecque 14 | state_district: Laayoune Province 15 | expected: | 16 | Hôtel Al-Massira 17 | Boulevard de la Mecque 18 | Pachalik de Laâyoune 19 | Western Sahara 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/ax.yaml: -------------------------------------------------------------------------------- 1 | # Åland Islands, part of Finnland 2 | --- 3 | # https://en.wikipedia.org/wiki/%C3%85land_Islands 4 | description: Post office in Mariehamn 5 | components: 6 | country: Åland Islands 7 | country_code: ax 8 | county: Åland Islands 9 | post_box: Posten Åland 10 | postcode: 22101 11 | road: Nygatan 12 | state: Åland 13 | state_district: Regional State Agency Åland 14 | suburb: Johannebo 15 | town: Mariehamn 16 | expected: | 17 | Posten Åland 18 | Nygatan 19 | 22101 Mariehamn 20 | Åland, Finland 21 | -------------------------------------------------------------------------------- /testcases/countries/sl.yaml: -------------------------------------------------------------------------------- 1 | # Sierra Leone 2 | --- 3 | description: School in Freetown, 8.48323,-13.24967 4 | components: 5 | building: St Thomas Primary School 6 | city: Freetown 7 | country: Sierra Leone 8 | country_code: sl 9 | neighbourhood: GRAYBUSH COM 10 | postcode: "00232" 11 | road: BISMARK JOHNSON ST 12 | state: Western Area 13 | state_district: Western Area Urban 14 | suburb: Kingtom 15 | expected: | 16 | St Thomas Primary School 17 | BISMARK JOHNSON ST 18 | Freetown 19 | Sierra Leone 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /testcases/countries/gt.yaml: -------------------------------------------------------------------------------- 1 | # Guatemala 2 | --- 3 | description: Bank in Guatemala City, 14.63133,-90.51752 4 | components: 5 | bank: Banco Reformador 6 | city: Guatemala City 7 | country: Guatemala 8 | country_code: gt 9 | county: Guatemala City 10 | house_number: 18 calle 3-70 Zona 1 11 | postcode: "01004" 12 | road: Transmetro Eje Sur 13 | state: Guatemala 14 | suburb: Zona 1 15 | expected: | 16 | Banco Reformador 17 | Transmetro Eje Sur 18 calle 3-70 Zona 1 18 | 01004-Guatemala City 19 | Guatemala 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /testcases/countries/ne.yaml: -------------------------------------------------------------------------------- 1 | # Niger 2 | --- 3 | description: Embassy in Niamey, 13.52012,2.09463 4 | components: 5 | address: Embassy of the Federal Republic of Germany 6 | city: Niamey 7 | country: Niger 8 | country_code: ne 9 | house_number: 71 10 | postcode: 13416 11 | road: Boulevard Général De Gaulle 12 | state: Niamey 13 | suburb: Plateau 14 | village: Néini Goungou 15 | expected: | 16 | Embassy of the Federal Republic of Germany 17 | 71 18 | Boulevard Général De Gaulle 19 | Niamey 20 | Niger 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /testcases/countries/pm.yaml: -------------------------------------------------------------------------------- 1 | # Saint Pierre and Miquelon, a territorial overseas collectivity of France 2 | --- 3 | description: Building in Miquelon, 47.10099,-56.37706 4 | components: 5 | building: Société nouvelle des pêches de Miquelon 6 | city: Miquelon-Langlade 7 | country: Saint Pierre and Miquelon 8 | country_code: pm 9 | postcode: 97500 10 | road: Rue Jacques Vigneau 11 | state: Saint Pierre and Miquelon 12 | expected: | 13 | Société nouvelle des pêches de Miquelon 14 | Rue Jacques Vigneau 15 | 97500 Miquelon-Langlade 16 | Saint-Pierre-et-Miquelon, France 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testcases/other/xx.yaml: -------------------------------------------------------------------------------- 1 | # Dummy test country to check that we fall back to the defaults 2 | --- 3 | description: generic format 4 | components: 5 | city: City 6 | country: Null Island 7 | country_code: XX 8 | county: County 9 | house_number: 123 10 | postcode: PCPCPC 11 | road: Main Street 12 | state: State 13 | suburb: The Hood 14 | expected: | 15 | Main Street 123 16 | PCPCPC City 17 | Null Island 18 | --- 19 | description: generic fallback 20 | components: 21 | city: City 22 | country: Null Island 23 | country_code: XX 24 | state: State 25 | expected: | 26 | City 27 | State 28 | Null Island 29 | -------------------------------------------------------------------------------- /conf/abbreviations/pt.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Alameda: Al 3 | Avenida: Av 4 | Azinhaga: Az 5 | Bairro: Br 6 | Beco: Bc 7 | Calçada: Cc 8 | Calçadinha: Ccnh 9 | Caminho: Cam 10 | Casal: Csl 11 | Escadas: Esc 12 | Escadinhas: Escnh 13 | Estrada: Estr 14 | Gaveto: Gav 15 | Jardim: Jrd 16 | Largo: Lg 17 | Loteamento: Loteam 18 | Parque: Pq 19 | Pátio: Pto 20 | Praça: Pc 21 | Praceta: Pct 22 | Prolongamento: Prolng 23 | Quinta: Qta 24 | Rotunda: Rot 25 | Rua: R 26 | Transversal: Transv 27 | Travessa: Tv 28 | Urbanização: Urb 29 | Vila: Vl 30 | Zona: Zn 31 | -------------------------------------------------------------------------------- /testcases/countries/as.yaml: -------------------------------------------------------------------------------- 1 | # American Samoa 2 | # unincorporated territory of the United States 3 | # 4 | --- 5 | description: Building in Pago Pago, -14.28181,-170.68354 6 | components: 7 | building: Executive Office Building (American Samoa Government) 8 | country: American Samoa 9 | country_code: as 10 | county: Eastern District 11 | municipality: Maʻopūtasi County 12 | postcode: 96799 13 | road: Route 118 14 | village: Utulei 15 | expected: | 16 | Executive Office Building (American Samoa Government) 17 | Route 118 18 | Utulei 19 | Maʻopūtasi County, AS 96799 20 | United States of America 21 | -------------------------------------------------------------------------------- /testcases/countries/ba.yaml: -------------------------------------------------------------------------------- 1 | # Bosnia and Herzegovina 2 | --- 3 | description: Post office in Sarajevo, 43.85229,18.38142 4 | components: 5 | city: Sarajevo 6 | country: Bosnia and Herzegovina 7 | country_code: ba 8 | county: New Sarajevo municipality 9 | house_number: 88 10 | post_office: BH Posta 11 | postcode: 71000 12 | road: Zmaja od Bosne 13 | state: Entity Federation of Bosnia and Herzegovina 14 | state_district: Sarajevo Canton 15 | suburb: Grbavica 16 | expected: | 17 | BH Posta 18 | Zmaja od Bosne 88 19 | 71000 Sarajevo 20 | Bosnia and Herzegovina 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /testcases/countries/np.yaml: -------------------------------------------------------------------------------- 1 | # Nepal 2 | --- 3 | description: mall in Kathmandu, 27.69410,85.31334 4 | components: 5 | city: Kathmandu 6 | country: Nepal 7 | country_code: np 8 | county: Kathmandu 9 | mall: United World Trade Centre 10 | neighbourhood: Hyumat 11 | postcode: 2243 12 | road: Tripureshwor Marg 13 | state: Central Development Region 14 | state_district: Bagmati 15 | suburb: Kuleshwor 16 | expected: | 17 | United World Trade Centre 18 | Tripureshwor Marg 19 | Kuleshwor 20 | Kathmandu 2243 21 | Nepal 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /testcases/countries/nc.yaml: -------------------------------------------------------------------------------- 1 | # New Caledonia, a special collectivity of France 2 | --- 3 | description: Building in Nouméa, -22.27039,166.44270 4 | components: 5 | building: Immeuble Maréchal Foch 6 | city: Nouméa 7 | city_district: Secteur Ouest 8 | country: France, Nouvelle-Calédonie, Grande Terre et récifs d'Entrecasteaux (eaux territoriales) 9 | country_code: nc 10 | county: Province Sud 11 | postcode: 98800 12 | road: Rue Jean Jaurès 13 | state: New Caledonia 14 | suburb: Centre-Ville 15 | expected: | 16 | Immeuble Maréchal Foch 17 | Rue Jean Jaurès 18 | 98800 Nouméa 19 | Nouvelle-Calédonie, France 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /testcases/countries/hk.yaml: -------------------------------------------------------------------------------- 1 | # Hong Kong 2 | --- 3 | description: Cinema in HK, 22.29987,114.17933 4 | components: 5 | cinema: Chinachem Golden Plaza Cinema 6 | country: Hong Kong 7 | country_code: hk 8 | county: Yau Tsim Mong District 9 | road: Science Museum Road 10 | state: Hong Kong 11 | state_district: Kowloon 12 | suburb: Tsim Sha Tsui 13 | expected: | 14 | Chinachem Golden Plaza Cinema 15 | Science Museum Road 16 | Kowloon 17 | Hong Kong 18 | --- 19 | description: just city, no state 20 | components: 21 | city: Hong Kong 22 | country: Hong Kong 23 | country_code: hk 24 | road: 211 Test Street 25 | expected: | 26 | 211 Test Street 27 | Hong Kong 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /testcases/countries/in.yaml: -------------------------------------------------------------------------------- 1 | # India 2 | --- 3 | description: Restaurant in Hyderabad 4 | components: 5 | road: uppuguda 6 | city: Hyderabad 7 | neighbourhood: Patthergatti 8 | country: India 9 | country_code: IN 10 | postcode: 500064 11 | restaurant: Anand Bhavan (vegetarian) 12 | state: Telangana 13 | suburb: Charminar 14 | expected: | 15 | Anand Bhavan (vegetarian) 16 | uppuguda 17 | Charminar 18 | Hyderabad - 500064 19 | Telangana 20 | India 21 | 22 | --- 23 | description: Indian postcode 24 | components: 25 | state: Mahārāshtra 26 | postcode: 400096 27 | country: India 28 | country_code: in 29 | expected: | 30 | 400096 31 | Mahārāshtra 32 | India 33 | -------------------------------------------------------------------------------- /testcases/countries/fk.yaml: -------------------------------------------------------------------------------- 1 | # Falkland Islands 2 | --- 3 | description: Hotel in Stanley, -51.69328,-57.86325 4 | components: 5 | building: Rose Hotel 6 | country: Falkland Islands 7 | country_code: fk 8 | house_number: 1 9 | residential: Port Stanley 10 | road: Brisbane Road 11 | town: Stanley 12 | expected: | 13 | Rose Hotel 14 | 1 Brisbane Road 15 | Stanley 16 | Falkland Islands 17 | United Kingdom 18 | --- 19 | description: middle of nowhere, -51.70,-58.62 20 | components: 21 | continent: South America 22 | country: Falkland Islands 23 | country_code: fk 24 | expected: | 25 | Falkland Islands 26 | United Kingdom 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /testcases/countries/ir.yaml: -------------------------------------------------------------------------------- 1 | # Iran 2 | --- 3 | description: Tower in Tehran, 35.699,51.33810 4 | components: 5 | attraction: Azadi Tower 6 | city: Tehran 7 | country: Iran 8 | country_code: ir 9 | postcode: 1351956118 10 | road: Azadi Square 11 | suburb: Ostad Moein 12 | expected: | 13 | Azadi Tower 14 | Tehran 15 | Ostad Moein 16 | Azadi Square 17 | 1351956118 18 | Iran 19 | --- 20 | description: district should be treated as alias of state_district 21 | components: 22 | city: Tehran 23 | country: Iran 24 | country_code: ir 25 | district: بخش مرکزی شهرستان تهران 26 | province: Tehran Province 27 | expected: | 28 | Tehran 29 | بخش مرکزی شهرستان تهران 30 | Iran 31 | -------------------------------------------------------------------------------- /testcases/countries/ug.yaml: -------------------------------------------------------------------------------- 1 | # Uganda 2 | --- 3 | description: Bank in Kampala, 0.31220, 32.58532 4 | components: 5 | building: Orient Plaza 6 | city: Kampala 7 | country: Uganda 8 | country_code: ug 9 | county: Kampala 10 | house_number: 6/6A 11 | neighbourhood: Nakivubo 12 | postcode: 7063 13 | road: Kampala Road 14 | state: Central Region 15 | suburb: Kibuli 16 | expected: | 17 | Orient Plaza 18 | 6/6A Kampala Road 19 | Kampala 20 | Uganda 21 | --- 22 | description: subcounty 23 | components: 24 | country: Uganda 25 | country_code: ug 26 | state: Arua 27 | subcounty: Ayivuni 28 | expected: | 29 | Ayivuni 30 | Arua 31 | Uganda 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /conf/abbreviations/it.yaml: -------------------------------------------------------------------------------- 1 | road: 2 | Calle: C.le 3 | Campo: C.po 4 | Cascina: C.na 5 | Corso: C.so 6 | Corte: C.te 7 | Fondamenta: F.te 8 | Largo: L.go 9 | Località: Loc. 10 | Lungomare: L.mare 11 | Piazza: P.za 12 | Piazzale: P.le 13 | Piazzetta: P.ta 14 | Ponte: P.te 15 | Porta: P.ta 16 | Salizada: S.da 17 | San: S. 18 | Santa: S. 19 | Santo: S. 20 | Santissima: SS.ma 21 | Santissime: SS.me 22 | Santissimi: SS.mi 23 | Santissimo: SS.mo 24 | Stazione: Staz 25 | Strada Comunale: SC 26 | Strada Provinciale: SP 27 | Strada Regionale: SR 28 | Strada Statale: SS 29 | Via: V 30 | Viale: V.le 31 | Vico: V.co 32 | Vicolo: V.lo 33 | -------------------------------------------------------------------------------- /testcases/countries/nz.yaml: -------------------------------------------------------------------------------- 1 | # New Zealand 2 | --- 3 | description: House in Wellington, -41.29789,174.78511 4 | components: 5 | city: Wellington 6 | country: New Zealand 7 | country_code: nz 8 | county: Wellington City 9 | house_number: 53 10 | postcode: 6011 11 | road: Pirie Street 12 | state: Wellington 13 | suburb: Mount Victoria 14 | expected: | 15 | 53 Pirie Street 16 | Mount Victoria 17 | Wellington 6011 18 | New Zealand 19 | --- 20 | description: City of Wellington 21 | components: 22 | city: Wellington 23 | country: New Zealand 24 | country_code: nz 25 | county: Wellington City 26 | state: Wellington 27 | expected: | 28 | Wellington 29 | New Zealand 30 | -------------------------------------------------------------------------------- /testcases/countries/va.yaml: -------------------------------------------------------------------------------- 1 | # Vatican City / Holy See 2 | --- 3 | description: Building in Vatican City, 41.90586,12.45105 4 | components: 5 | building: Gallinaro Tower 6 | country: Vatican City 7 | country_code: va 8 | postcode: "00120" 9 | road: Viale San Benedetto 10 | expected: | 11 | Gallinaro Tower 12 | Viale San Benedetto 13 | 00120 14 | Vatican City 15 | --- 16 | description: supermarket in Vatican City, 41.9046,12.4566 17 | components: 18 | country: Vatican City 19 | country_code: va 20 | postcode: "00120" 21 | road: Press Way 22 | supermarket: Vatican Supermarket 23 | town: Vatican City 24 | expected: | 25 | Vatican Supermarket 26 | Press Way 27 | 00120 28 | Vatican City 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /testcases/countries/th.yaml: -------------------------------------------------------------------------------- 1 | # Thailand 2 | # see https://en.wikipedia.org/wiki/Thai_addressing_system 3 | # 4 | # Plot/House number, Village 5 | # Road 6 | # Subdistrict, District 7 | # Province Postal Code 8 | # THAILAND 9 | --- 10 | description: School in Bangkok, 13.7101,100.5088 11 | components: 12 | country: Thailand 13 | country_code: th 14 | neighbourhood: Wat Phraya Krai 15 | postcode: 10120 16 | road: Thanon Charoen Krung 17 | school: Shrewsbury International School 18 | state: Bangkok 19 | suburb: Bang Kho Laem District 20 | expected: | 21 | Shrewsbury International School 22 | Thanon Charoen Krung 23 | Wat Phraya Krai, Bang Kho Laem District 24 | Bangkok 10120 25 | Thailand 26 | 27 | -------------------------------------------------------------------------------- /testcases/countries/kr.yaml: -------------------------------------------------------------------------------- 1 | # Republic of Korea (South Korea) 2 | --- 3 | description: Hotel in Gangnam, Seoul, 37.49675,127.02755 4 | components: 5 | city: Seoul 6 | city_district: 서초2동 (Seocho2-dong) 7 | country: South Korea 8 | country_code: kr 9 | hotel: Haeundae Grand Hotel 10 | postcode: 135-934 11 | road: Seocho-daero 74-gil 12 | town: Seocho-gu 13 | village: Seocho-dong 14 | expected: | 15 | South Korea 16 | Seoul, 서초2동 (Seocho2-dong), Seocho-daero 74-gil 17 | Haeundae Grand Hotel 18 | 135-934 19 | --- 20 | description: district of Seoul 21 | components: 22 | city: Seoul 23 | country: South Korea 24 | country_code: kr 25 | city_district: Gangnam-gu 26 | expected: | 27 | Gangnam-gu 28 | Seoul 29 | South Korea 30 | -------------------------------------------------------------------------------- /testcases/countries/no.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: house in Oslo 3 | components: 4 | city: Oslo 5 | city_district: Gamle Oslo 6 | country: Norway 7 | country_code: "no" 8 | county: Oslo 9 | house_number: 28 10 | neighbourhood: Arctanderbyen 11 | postcode: "0650" 12 | road: Åkebergveien 13 | state: Oslo 14 | suburb: Enerhaugen 15 | expected: | 16 | Åkebergveien 28 17 | 0650 Oslo 18 | Norway 19 | --- 20 | description: house in village with postal_city 21 | components: 22 | country: Norge 23 | country_code: "no" 24 | county: Viken 25 | house_number: 33 26 | neighbourhood: Belset 27 | postal_city: Rykkinn 28 | postcode: 1349 29 | road: Grindstuveien 30 | suburb: Angerst 31 | village: Ringvoll 32 | expected: | 33 | Grindstuveien 33 34 | 1349 Rykkinn 35 | Norge 36 | -------------------------------------------------------------------------------- /testcases/countries/cu.yaml: -------------------------------------------------------------------------------- 1 | # Cuba 2 | --- 3 | description: Embassy in Havana, 23.13763,-82.38976 4 | components: 5 | building: Embajada de Hungría 6 | city: Havana 7 | country: Cuba 8 | country_code: cu 9 | county: Plaza de la Revolución 10 | neighbourhood: Barrio El Fanguito 11 | postcode: 10400 12 | road: Calle 19 13 | state: Havana 14 | suburb: El Vedado 15 | expected: | 16 | Embajada de Hungría 17 | Calle 19 18 | Havana, 10400 19 | Cuba 20 | --- 21 | description: address in Havana / no city, 23.13895,-82.36652 22 | components: 23 | country: Cuba 24 | country_code: cu 25 | county: Centro Habana 26 | house_number: 209 27 | neighbourhood: Colón 28 | road: Perseverancia 29 | state: Havana 30 | expected: | 31 | Perseverancia 209 32 | Havana 33 | Cuba 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /conf/abbreviations/en.yaml: -------------------------------------------------------------------------------- 1 | country: 2 | Central African Republic: CAR 3 | Democratic Republic of Congo: DRC 4 | New Zealand: NZ 5 | United Arab Emitrates: UAE 6 | United Kingdom: UK 7 | United States of America: USA 8 | United States Virgin Islands: USVI 9 | road: 10 | Alley: Aly 11 | Arcade: Arc 12 | Avenue: Ave 13 | Boulevard: Blvd 14 | Circle: Cl 15 | Court: Ct 16 | Crescent: Cres 17 | Crossroad: XRD 18 | Drive: Dr 19 | Esplanade: Esp 20 | Expressway: EXPY 21 | Extention: Ext 22 | Freeway: Fwy 23 | Grove: Gr 24 | Highway: HWY 25 | Mountain: Mtn 26 | Northeast: NE 27 | Northwest: NW 28 | Place: Pl 29 | Road: Rd 30 | Southeast: SE 31 | Southwest: SW 32 | Square: Sq 33 | Street: St 34 | Terrace: Tce 35 | Throughway: TRWY 36 | -------------------------------------------------------------------------------- /testcases/countries/tc.yaml: -------------------------------------------------------------------------------- 1 | # Turks and Caicos Islands 2 | --- 3 | description: Shop in Providenciales, 21.77988,-72.26589 4 | components: 5 | country: Turks and Caicos Islands 6 | country_code: tc 7 | county: Provinciales and West Caicos 8 | neighbourhood: Five Cays 9 | road: Daffodil Close 10 | shop: Betty's market 11 | suburb: Millenium Hieghts 12 | town: Providenciales 13 | expected: | 14 | Betty's market 15 | Daffodil Close 16 | Providenciales 17 | Turks and Caicos Islands 18 | --- 19 | description: hamlet on Middle Caicos 20 | components: 21 | country: Turks and Caicos Islands 22 | country_code: tc 23 | island: Middle Caicos 24 | hamlet: Bambarra 25 | expected: | 26 | Bambarra 27 | Middle Caicos 28 | Turks and Caicos Islands 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /testcases/countries/ni.yaml: -------------------------------------------------------------------------------- 1 | # Nicaragua 2 | # note: Nicaragua has a very unique address system 3 | # see https://vianica.com/nicaragua/practical-info/14-forward.html?id=14-addresses.html 4 | # this test just tries to do the best we can with the data we have 5 | 6 | --- 7 | description: Post Office in Managua, 12.15550,-86.27209 8 | components: 9 | city: Managua 10 | city_district: District I 11 | country: Nicaragua 12 | country_code: ni 13 | county: Managua (Municipio) 14 | pedestrian: Plaza de la República 15 | postcode: 11001 16 | public_building: Antiguo Palacio de Gobierno 17 | state: Managua 18 | suburb: Centro Histórico Cultural 19 | expected: | 20 | Antiguo Palacio de Gobierno 21 | Plaza de la República 22 | Centro Histórico Cultural 23 | Managua 24 | Nicaragua 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /testcases/countries/sn.yaml: -------------------------------------------------------------------------------- 1 | # Senegal 2 | --- 3 | description: Hotel in Dakar, 14.66731,-17.43996 4 | components: 5 | city: Dakar 6 | country: Senegal 7 | country_code: sn 8 | hotel: Hotel ndjambour 9 | postcode: 24951 10 | road: Rue Carnot 11 | state: Dakar 12 | suburb: Plateau 13 | expected: | 14 | Hotel ndjambour 15 | Rue Carnot 16 | 24951 Dakar 17 | Senegal 18 | --- 19 | description: commune 20 | components: 21 | commune: Commune de Yeumbeul Nord 22 | country: Senegal 23 | country_code: sn 24 | postcode: 17000 25 | road: unnamed road 26 | state: Dakar Region 27 | state_district: Département de Keur Massar 28 | town: Arrondissement de Yeumbeul 29 | expected: | 30 | unnamed road 31 | 17000 Yeumbeul 32 | Senegal 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /testcases/countries/al.yaml: -------------------------------------------------------------------------------- 1 | # Albania 2 | --- 3 | description: Bank in Tiranë, 41.32036,19.82343 4 | components: 5 | bank: Raiffeisen Bank 6 | city: Tiranë 7 | country: Albania 8 | country_code: al 9 | county: Tiranë 10 | postcode: 1001 11 | road: Papa Gjon Pali II 12 | expected: | 13 | Raiffeisen Bank 14 | Papa Gjon Pali II 15 | 1001-Tiranë 16 | Albania 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 34 | 35 | -------------------------------------------------------------------------------- /testcases/countries/bf.yaml: -------------------------------------------------------------------------------- 1 | # Burkina Faso 2 | --- 3 | description: Bank in Ouagadougou, 12.36884,-1.52794 4 | components: 5 | bank: Ecobank 6 | city: Ouagadougou 7 | country: Burkina Faso 8 | country_code: bf 9 | postcode: 13 10 | region: Centre 11 | residential: Ouagadougou 12 | road: Avenue Nelson Mandela 13 | state_district: Kadiogo 14 | suburb: Bilbalogho 15 | expected: | 16 | Ecobank 17 | Avenue Nelson Mandela 18 | Ouagadougou 19 | Burkina Faso 20 | --- 21 | description: village, Bank in Ouagadougou, 10.5450,-4.5787 22 | components: 23 | country: Burkina Faso 24 | country_code: bf 25 | department: Tiéfora 26 | province: Comoé 27 | road: unnamed road 28 | village: Bondorola 29 | expected: | 30 | unnamed road 31 | Bondorola 32 | Tiéfora 33 | Comoé 34 | Burkina Faso 35 | 36 | 37 | -------------------------------------------------------------------------------- /testcases/countries/sk.yaml: -------------------------------------------------------------------------------- 1 | # Slovakia 2 | --- 3 | description: Bratislava - 48.14776,17.10384 4 | components: 5 | city: District of Bratislava 6 | city_district: Bratislava - mestská časť Staré Mesto 7 | country: Slovakia 8 | country_code: sk 9 | county: Bratislava 10 | house_number: 666/20 11 | postcode: 811 03 12 | road: Panenská 13 | state: Region of Bratislava 14 | suburb: Staré Mesto 15 | expected: | 16 | Panenská 666/20 17 | 811 03 Bratislava 18 | Slovakia 19 | --- 20 | description: Bratislava town and city, fix postcode 48.15744,17.10839 21 | components: 22 | city: Bratislava 23 | city_district: District of Bratislava I 24 | country: Slovakia 25 | country_code: sk 26 | house_number: 12 27 | neighbourhood: Desiatky 28 | postcode: 81105 29 | road: Železničiarska 30 | state: Region of Bratislava 31 | state_code: BL 32 | town: Old Town 33 | expected: | 34 | Železničiarska 12 35 | 811 05 Bratislava 36 | Slovakia 37 | 38 | 39 | -------------------------------------------------------------------------------- /testcases/countries/cn.yaml: -------------------------------------------------------------------------------- 1 | # China 2 | --- 3 | description: Building in Shanghai, 31.23980,121.49316 4 | components: 5 | building: 万向大厦 6 | country: China 7 | country_code: cn 8 | county: Pudong New District 9 | house_number: 99号 10 | neighbourhood: Lijuazui 11 | postcode: 200120 12 | road: West Lujiazui Road 13 | state: Shanghai 14 | expected: | 15 | 200120 China 16 | Shanghai 17 | Pudong New District 18 | Lijuazui 19 | West Lujiazui Road 99号 20 | 万向大厦 21 | --- 22 | description: Macau 23 | components: 24 | country: China 25 | country_code: cn 26 | region: Macau 27 | expected: | 28 | Macau 29 | China 30 | --- 31 | description: 32 | components: 33 | city: Nyingchi 34 | country: China 35 | country_code: cn 36 | district: Bayi District 37 | postcode: 860000 38 | region: Nyingchi Prefecture 39 | state: Tibet 40 | town: Bayi 41 | expected: | 42 | 860000 China 43 | Tibet 44 | Nyingchi 45 | 46 | 47 | -------------------------------------------------------------------------------- /testcases/countries/se.yaml: -------------------------------------------------------------------------------- 1 | # Sweden 2 | --- 3 | description: Hotel in Göteborg, 57.70012,11.96993 4 | components: 5 | city: Gothenburg 6 | city_district: Centrum 7 | country: Sweden 8 | country_code: se 9 | county: Göteborgs och Bohus län 10 | hotel: Poseidon 11 | house_number: 33 12 | postcode: 41134 13 | road: Storgatan 14 | state: Västra Götalands län 15 | suburb: Vasastaden 16 | expected: | 17 | Poseidon 18 | Storgatan 33 19 | 411 34 Gothenburg 20 | Sweden 21 | --- 22 | description: Thai House 23 | components: 24 | cafe: Restaurang Thai House 25 | country: Sweden 26 | country_code: se 27 | county: Stockholms län 28 | house_number: 7 29 | postcode: 194 61 30 | road: Kanalvägen 31 | state: Stockholms län 32 | suburb: Infra City 33 | town: Upplands Väsby 34 | expected: | 35 | Restaurang Thai House 36 | Kanalvägen 7 37 | 194 61 Upplands Väsby 38 | Sweden 39 | -------------------------------------------------------------------------------- /testcases/countries/sh.yaml: -------------------------------------------------------------------------------- 1 | # Saint Helena, Ascension and Tristan da Cunha 2 | --- 3 | description: Museum in Jamestown, Saint Helena, -15.92498,-5.71862 4 | components: 5 | country: Saint Helena, Ascension and Tristan da Cunha 6 | country_code: sh 7 | public_building: Museum of St Helena 8 | road: Castle Terrace 9 | state: Saint Helena 10 | town: Jamestown 11 | expected: | 12 | Museum of St Helena 13 | Castle Terrace 14 | Jamestown 15 | Saint Helena 16 | United Kingdom 17 | 18 | --- 19 | description: Building on Tristan de Cunha, -37.06714,-12.31022 20 | components: 21 | community_centre: Prince Philip Hall 22 | country: Saint Helena, Ascension and Tristan da Cunha 23 | country_code: sh 24 | hamlet: Edinburgh of the Seven Seas 25 | postcode: TDCU 1ZZ 26 | state: Tristan da Cunha 27 | expected: | 28 | Prince Philip Hall 29 | Edinburgh of the Seven Seas 30 | TDCU 1ZZ 31 | Tristan da Cunha 32 | United Kingdom 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /testcases/countries/mu.yaml: -------------------------------------------------------------------------------- 1 | # Mauritious 2 | --- 3 | description: Govt Building in Port Louis, -20.16189,57.50158 4 | components: 5 | building: State Bank of Mauritius 6 | city: Port Louis 7 | country: Mauritius 8 | country_code: mu 9 | house_number: 1 10 | neighbourhood: Caudan Waterfront 11 | road: Queen Elizabeth II Avenue 12 | state: Port Louis 13 | expected: | 14 | State Bank of Mauritius 15 | 1, Queen Elizabeth II Avenue 16 | Caudan Waterfront 17 | Port Louis 18 | Mauritius 19 | --- 20 | # example from https://en.wikipedia.org/wiki/Postal_codes_in_Mauritius 21 | description: example address with postcode 22 | components: 23 | city: Lallmatie 24 | country: Mauritius 25 | country_code: mu 26 | house_number: 21 27 | neighbourhood: Mission Cross 28 | postcode: 42602 29 | road: Old Trafford Road 30 | expected: | 31 | 21, Old Trafford Road 32 | Mission Cross 33 | Lallmatie 42602 34 | Mauritius 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /conf/abbreviations/ru.yaml: -------------------------------------------------------------------------------- 1 | country: 2 | Российская Федерация: РФ 3 | state: 4 | автономный округ: АО 5 | автономная область: Аобл 6 | область: обл 7 | Республика: Респ 8 | county: 9 | городской округ: г.о. 10 | сельский округ: с.о. 11 | район: р-н 12 | city: 13 | город: г 14 | сельское поселение: с.п. 15 | сельский совет: с.с. 16 | village: 17 | поселок: пос 18 | посёлок: пос 19 | дачный поселок: дп 20 | дачный посёлок: дп 21 | деревня: д 22 | курортный поселок: кп 23 | курортный посёлок: кп 24 | местечко: м 25 | село: с 26 | станица: ст-ца 27 | поселок городского типа: пгт 28 | посёлок городского типа: пгт 29 | neighbourhood: 30 | квартал: кв-л 31 | район: р-н 32 | микрорайон: мкр 33 | road: 34 | улица: ул 35 | дорога: дор 36 | переулок: пер 37 | шоссе: ш 38 | проспект: пр-кт 39 | проезд: пр 40 | площадь: пл 41 | бульвар: б-р 42 | набережная: наб 43 | корпус: корп 44 | строение: стр 45 | тупик: туп 46 | -------------------------------------------------------------------------------- /testcases/countries/qa.yaml: -------------------------------------------------------------------------------- 1 | # Qatar 2 | --- 3 | description: Bank, 25.28695,51.54133 4 | components: 5 | bank: ahlibank Merqab Branch 6 | city: Doha 7 | country: Qatar 8 | country_code: qa 9 | postcode: 22050 10 | road: Al Muthaf Street 11 | state: Doha 12 | suburb: (Sharg Zone) - Aslata (18) 13 | expected: | 14 | ahlibank Merqab Branch 15 | Al Muthaf Street 16 | Doha 17 | Qatar 18 | --- 19 | description: Supermarket, 25.7144,51.5301 20 | components: 21 | country: Qatar 22 | country_code: qa 23 | postcode: 41 24 | road: Main Al Thakira Street 25 | state: Al Khawr 26 | supermarket: Al Meera 27 | town: Al Thakira 28 | expected: | 29 | Al Meera 30 | Main Al Thakira Street 31 | Al Thakira 32 | Qatar 33 | --- 34 | description: Pharmacy, 25.16318,51.59828 35 | components: 36 | country: Qatar 37 | country_code: qa 38 | pharmacy: Al Ayaan Pharmacy, Wakra 39 | road: Abdul Rahman Bin Jasim Street 40 | state: Al Wakrah 41 | town: Al Wakrah 42 | expected: | 43 | Al Ayaan Pharmacy, Wakra 44 | Abdul Rahman Bin Jasim Street 45 | Al Wakrah 46 | Qatar 47 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Opencage GmbH - https://opencagedata.com 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /testcases/countries/ph.yaml: -------------------------------------------------------------------------------- 1 | # Philippines 2 | --- 3 | description: restaurant in Manila 4 | components: 5 | house_number: 1140 6 | road: Alhambra 7 | city: Ermita 8 | postcode: 1000 9 | county: Fifth District 10 | country: Philippines 11 | country_code: PH 12 | restaurant: Emerald Garden 13 | state: Metro Manila 14 | suburb: Ermita 15 | expected: | 16 | Emerald Garden 17 | 1140 Alhambra, Ermita 18 | 1000 Metro Manila 19 | Philippines 20 | --- 21 | description: archipelago 22 | components: 23 | archipelago: Mindanao 24 | country: Philippines 25 | country_code: ph 26 | expected: | 27 | Mindanao 28 | Philippines 29 | --- 30 | description: address 31 | components: 32 | house_number: 121 33 | road: Epifanio Delos Santos Ave. 34 | city: Mandaluyong 35 | postcode: 1550 36 | suburb: Wack-wack Greenhills 37 | county: Fifth District 38 | country: Philippines 39 | country_code: PH 40 | attention: Mr. Juan Maliksi 41 | state: Metro Manila 42 | expected: | 43 | Mr. Juan Maliksi 44 | 121 Epifanio Delos Santos Ave., Wack-wack Greenhills, Mandaluyong 45 | 1550 Metro Manila 46 | Philippines 47 | --- 48 | -------------------------------------------------------------------------------- /testcases/countries/tn.yaml: -------------------------------------------------------------------------------- 1 | # Tunisia 2 | --- 3 | description: main theatre in Tunis 36.79900,10.18083 4 | components: 5 | city: Tunis 6 | country: Tunisia 7 | country_code: tn 8 | postcode: 1000 9 | road: Rue de Grèce نهج اليونان 10 | state: Tunis 11 | state_district: Bab Bhar 12 | theatre: Théâtre Municipal de Tunis المسرح البلدي بتونس 13 | expected: | 14 | Théâtre Municipal de Tunis المسرح البلدي بتونس 15 | Rue de Grèce نهج اليونان 16 | 1000 Tunis 17 | Tunisia 18 | --- 19 | description: cinema in Sousse 35.83053,10.64063 20 | components: 21 | cinema: Cinéma Palace 22 | city: Sousse 23 | country: Tunisia 24 | country_code: tn 25 | postcode: 4000 26 | road: Rue Pasteur 27 | state: Sousse 28 | suburb: Sousse Riadh 29 | expected: | 30 | Cinéma Palace 31 | Rue Pasteur 32 | 4000 Sousse 33 | Tunisia 34 | --- 35 | description: hospital in Sfax 34.7411,10.7590 36 | components: 37 | city: صفاقس 38 | country: Tunisia 39 | country_code: tn 40 | county: Sfax Medina 41 | hospital: CNSS 42 | postcode: 3000 43 | road: RN 1 طو 44 | state: Sfax 45 | suburb: صفاقس الجديدة 46 | expected: | 47 | CNSS 48 | RN 1 طو 49 | 3000 صفاقس 50 | Tunisia 51 | -------------------------------------------------------------------------------- /testcases/countries/sv.yaml: -------------------------------------------------------------------------------- 1 | # El Salvador 2 | --- 3 | description: Government building in San Salvador, 13.69928,-89.19845 4 | components: 5 | building: Ministerio de Salud 6 | city: San Salvador 7 | country: El Salvador 8 | country_code: sv 9 | house_number: 827 10 | neighbourhood: Centro Urbano IVU 11 | postcode: 503 12 | road: Calle Arce 13 | state: Departamento de San Salvador 14 | suburb: Comunidad Tutunichapa 15 | expected: | 16 | Ministerio de Salud 17 | Calle Arce 827 18 | 503 - San Salvador 19 | Departamento de San Salvador 20 | El Salvador 21 | --- 22 | description: no floating dash if no postcode 23 | components: 24 | building: Ministerio de Salud 25 | city: San Salvador 26 | country: El Salvador 27 | country_code: sv 28 | house_number: 827 29 | neighbourhood: Centro Urbano IVU 30 | road: Calle Arce 31 | state: Departamento de San Salvador 32 | suburb: Comunidad Tutunichapa 33 | expected: | 34 | Ministerio de Salud 35 | Calle Arce 827 36 | San Salvador 37 | Departamento de San Salvador 38 | El Salvador 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /testcases/countries/ru.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Russia 3 | description: cafe near 59.9313605,30.3175201 4 | components: 5 | cafe : Efes Istambul 6 | city : Сенной округ 7 | house_number : 23 8 | postcode : 190000 9 | road : Гороховая улица 10 | # Saint Petersburg 11 | state : Санкт-Петербург 12 | state_district : Адмиралтейский район 13 | # Russian Federation 14 | country : Российская Федерация 15 | country_code : ru 16 | expected: | 17 | Efes Istambul 18 | Гороховая улица, 23 19 | Сенной округ 20 | Санкт-Петербург 21 | Российская Федерация 22 | 190000 23 | --- 24 | description: village 55.8931701, 63.7019487 25 | components: 26 | city : Батуринский сельсовет 27 | country : Россия 28 | country_code : ru 29 | county : Шадринский район 30 | hamlet : Камчатка 31 | state : Курганская область 32 | expected: | 33 | Камчатка 34 | Батуринский сельсовет 35 | Шадринский район 36 | Россия 37 | --- 38 | # island 39 | description: use island name 40 | components: 41 | city : Малиновараккское сельское поселение 42 | country : Россия 43 | country_code : ru 44 | county : Лоухский район 45 | island : Ярославль 46 | state : Республика Карелия 47 | expected: | 48 | Ярославль 49 | Малиновараккское сельское поселение 50 | Лоухский район 51 | Россия 52 | 53 | -------------------------------------------------------------------------------- /testcases/countries/ye.yaml: -------------------------------------------------------------------------------- 1 | # Yemen 2 | --- 3 | description: Shop, 15.28562,44.23028 4 | components: 5 | city: Sanʿaʾ 6 | country: Yemen 7 | country_code: ye 8 | county: Qada Sana 9 | mall: Yassin Spices 10 | road: شارع الحربي 11 | expected: | 12 | Yassin Spices 13 | شارع الحربي 14 | Sanʿaʾ 15 | Yemen 16 | --- 17 | description: Shop, language=ar, 15.28562,44.23028 18 | components: 19 | city: صنعاء 20 | country: اليمن 21 | country_code: ye 22 | county: قضاء صنعاء 23 | mall: بهارات ياسين 24 | road: شارع الحربي 25 | expected: | 26 | بهارات ياسين 27 | شارع الحربي 28 | صنعاء 29 | اليمن 30 | --- 31 | description: Central bank, 15.34924,44.20724 32 | components: 33 | bank: Centeral Bank of Yemen 34 | city: Sanʿaʾ 35 | country: Yemen 36 | country_code: ye 37 | county: Qada Sana 38 | postcode: "01" 39 | road: Al Zubayri Street 40 | expected: | 41 | Centeral Bank of Yemen 42 | Al Zubayri Street 43 | Sanʿaʾ 44 | Yemen 45 | --- 46 | description: Pizzaria, 12.77954,45.04418 47 | components: 48 | city: Aden 49 | country: Yemen 50 | country_code: ye 51 | county: Aden Directorate 52 | fast_food: Pizza 53 | residential: كريتر 54 | road: خط صيرة 55 | state: ‘Adan Governorate 56 | expected: | 57 | Pizza 58 | خط صيرة 59 | Aden 60 | Yemen 61 | -------------------------------------------------------------------------------- /testcases/countries/pa.yaml: -------------------------------------------------------------------------------- 1 | # Panama 2 | # https://www.youtube.com/watch?v=fuKDBPw8wQA 3 | # 4 | --- 5 | description: Bed & Breakfast in Panama City, 8.99337,-79.52075 6 | components: 7 | city: Panamá 8 | country: Panamá 9 | country_code: pa 10 | guest_house: Panama House Bed & Breakfast 11 | road: Avenida 1 C Norte 12 | suburb: El Cangrejo 13 | expected: | 14 | Panama House Bed & Breakfast 15 | Avenida 1 C Norte 16 | El Cangrejo 17 | Ciudad de Panamá 18 | Panamá 19 | --- 20 | description: make sure no double Panama City 21 | components: 22 | city: Panama City 23 | country: Panama 24 | country_code: pa 25 | guest_house: Panama House Bed & Breakfast 26 | road: Avenida 1 C Norte 27 | suburb: El Cangrejo 28 | expected: | 29 | Panama House Bed & Breakfast 30 | Avenida 1 C Norte 31 | El Cangrejo 32 | Panama City 33 | Panama 34 | --- 35 | description: Pharmacy in Nueva California, 8.77977,-82.64522 36 | components: 37 | country: Panama 38 | country_code: pa 39 | hamlet: Nueva California 40 | pharmacy: Celina 41 | road: Volcan-Rio Sereno 42 | state: Chiriquí 43 | expected: | 44 | Celina 45 | Volcan-Rio Sereno 46 | Nueva California 47 | Chiriquí 48 | Panama 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /testcases/countries/pt.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Lisbon 3 | description: 38.74547,-9.18519 4 | components: 5 | city: Lisbon 6 | country: Portugal 7 | country_code: pt 8 | county: Lisboa 9 | house_number: 11 10 | postcode: 1500-203 11 | road: Avenida Conselheiro Barjona de Freitas 12 | suburb: Benfica 13 | expected: | 14 | Avenida Conselheiro Barjona de Freitas 11 15 | 1500-203 Lisbon 16 | Portugal 17 | --- 18 | # fix postcode formatting 19 | description: 38.72132,-9.13017 20 | components: 21 | city: Lisbon 22 | country: Portugal 23 | country_code: pt 24 | county: Lisbon 25 | house_number: 2 26 | neighbourhood: São Vicente de Fora 27 | postcode: 1170169 28 | road: Rua da Graça 29 | suburb: São Vicente 30 | expected: | 31 | Rua da Graça 2 32 | 1170-169 Lisbon 33 | Portugal 34 | --- 35 | # Guest house in the Azores 36 | description: 37.74851,-25.60450 37 | components: 38 | archipelago: Azores 39 | city: Ponta Delgada 40 | city_district: Rosto do Cão (Livramento) 41 | country: Portugal 42 | country_code: pt 43 | guest_house: Casa Do Populo 44 | house_number: 1015 45 | neighbourhood: Livramento 46 | postcode: 9500-614 47 | road: Rua Padre Domingos da Silva Costay 48 | state_district: São Miguel 49 | expected: | 50 | Casa Do Populo 51 | Rua Padre Domingos da Silva Costay 1015 52 | 9500-614 Ponta Delgada 53 | Azores 54 | Portugal 55 | 56 | -------------------------------------------------------------------------------- /testcases/countries/be.yaml: -------------------------------------------------------------------------------- 1 | # Belgium 2 | --- 3 | description: Restaurant in Antwerp, 51.21038,4.39812 4 | components: 5 | city: Antwerp 6 | city_district: Antwerpen 7 | country: Belgium 8 | country_code: be 9 | county: Antwerp 10 | house_number: 63 11 | neighbourhood: Sint-Andries 12 | postcode: 2000 13 | restaurant: Meat & Eat 14 | road: Vrijheidstraat 15 | state: Flanders 16 | expected: | 17 | Meat & Eat 18 | Vrijheidstraat 63 19 | 2000 Antwerp 20 | Belgium 21 | --- 22 | description: prefer municipality over hamlet, 50.5689247, 5.3918483 23 | components: 24 | country: België 25 | country_code: be 26 | county: Huy 27 | hamlet: Clermont-sous-Huy 28 | house_number: 187 29 | municipality: Engis 30 | postcode: 4480 31 | region: Wallonia 32 | road: Chaussée de Liège 33 | state: Liège 34 | expected: | 35 | Chaussée de Liège 187 36 | 4480 Engis 37 | België 38 | --- 39 | description: prefer village over municipality 50.84201, 4.11871 40 | components: 41 | country: Belgium 42 | country_code: be 43 | county: Halle-Vilvoorde 44 | municipality: Roosdaal 45 | postcode: 1760 46 | region: Flanders 47 | road: Kerkveldstraat 48 | state: Flemish Brabant 49 | village: Strijtem 50 | expected: | 51 | Kerkveldstraat 52 | 1760 Strijtem 53 | Belgium 54 | 55 | 56 | -------------------------------------------------------------------------------- /testcases/countries/mr.yaml: -------------------------------------------------------------------------------- 1 | # Mauritania 2 | --- 3 | description: Health centre, 18.1174,-15.9174 4 | components: 5 | city: Nouakchott 6 | country: Mauritania 7 | country_code: mr 8 | hospital: CENTRE DE SANTE 9 | road: Route de la Résistance 10 | state: Nouakchott 11 | expected: | 12 | CENTRE DE SANTE 13 | Route de la Résistance 14 | Nouakchott 15 | Mauritania 16 | --- 17 | description: Health centre, language=ar, 18.1174,-15.9174 18 | components: 19 | city: نواكشوط 20 | country: موريتانيا 21 | country_code: mr 22 | hospital: CENTRE DE SANTE 23 | road: Route de la Résistance 24 | state: نواكشوط 25 | expected: | 26 | CENTRE DE SANTE 27 | Route de la Résistance 28 | نواكشوط 29 | موريتانيا 30 | --- 31 | description: Mosque, 18.06802,-15.98678 32 | components: 33 | city: Nouakchott 34 | country: Mauritania 35 | country_code: mr 36 | place_of_worship: Mosquée du Qatar 37 | postcode: 170 38 | road: Route Famille Dia 39 | state: Nouakchott 40 | expected: | 41 | Mosquée du Qatar 42 | Route Famille Dia 43 | Nouakchott 44 | Mauritania 45 | --- 46 | description: Hospital, 20.9565,-17.0332 47 | components: 48 | country: Mauritania 49 | country_code: mr 50 | hospital: Hôpital Régional de Nouadhibou 51 | road: N2 52 | state: Dakhlet Nouadhibou 53 | town: Nouadhibou 54 | expected: | 55 | Hôpital Régional de Nouadhibou 56 | N2 57 | Nouadhibou 58 | Mauritania 59 | -------------------------------------------------------------------------------- /testcases/countries/sg.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: SG no postcode 3 | components: 4 | country: Singapore 5 | country_code: SG 6 | house_number: 76 7 | neighbourhood: Chinatown 8 | road: Shenton Way 9 | suburb: Shenton Way 10 | expected: | 11 | 76 Shenton Way 12 | Singapore 13 | --- 14 | # see https://en.wikipedia.org/wiki/Address_(geography)#Singapore 15 | description: Chinatown Singapore 16 | components: 17 | country: Singapore 18 | country_code: SG 19 | city: Singapore 20 | postcode: 546080 21 | house_number: 16 22 | road: Sandilands Road 23 | expected: | 24 | 16 Sandilands Road 25 | Singapore 546080 26 | Singapore 27 | --- 28 | description: no city, 1.30585,103.78158 29 | components: 30 | country: Singapore 31 | country_code: sg 32 | county: Southwest 33 | house_number: 26 34 | postcode: 130026 35 | residential: Dover Gardens 36 | road: Dover Crescent 37 | suburb: Queenstown 38 | expected: | 39 | 26 Dover Crescent, Dover Gardens 40 | Singapore 130026 41 | Singapore 42 | --- 43 | description: wrong city, 1.30585,103.78158 44 | components: 45 | city: Jurong East 46 | country: Singapore 47 | country_code: sg 48 | county: Southwest 49 | house_number: 26 50 | postcode: 130026 51 | residential: Dover Gardens 52 | road: Dover Crescent 53 | suburb: Queenstown 54 | expected: | 55 | 26 Dover Crescent, Dover Gardens 56 | Singapore 130026 57 | Singapore 58 | 59 | 60 | -------------------------------------------------------------------------------- /testcases/countries/bh.yaml: -------------------------------------------------------------------------------- 1 | # Bahrain 2 | --- 3 | description: Supermarket, 26.16969,50.55565 4 | components: 5 | country: Bahrain 6 | country_code: bh 7 | postcode: 814 8 | road: Al-Doha Avenue 9 | state: Central Governorate 10 | supermarket: Ramaz 11 | town: Isa Town 12 | expected: | 13 | Ramaz 14 | Al-Doha Avenue 15 | Isa Town 814 16 | Bahrain 17 | --- 18 | description: Supermarket, language=ar, 26.16969,50.55565 19 | components: 20 | country: البحرين 21 | country_code: bh 22 | postcode: 814 23 | road: Al-Doha Avenue 24 | state: المحافظة الوسطى 25 | supermarket: Ramaz 26 | town: مدينة عيسى‎ 27 | expected: | 28 | Ramaz 29 | Al-Doha Avenue 30 | مدينة عيسى‎ 814 31 | البحرين 32 | --- 33 | description: Hair Saloon, 26.22820,50.59449 34 | components: 35 | city: Manama 36 | country: Bahrain 37 | country_code: bh 38 | hairdresser: Kerala Saloon 39 | postcode: 301 40 | road: 2115, 41 | state: Capital Governorate 42 | suburb: Gudaibiya 43 | expected: | 44 | Kerala Saloon 45 | 2115 46 | Manama 301 47 | Bahrain 48 | --- 49 | description: Health Centre, 26.23556,50.59452 50 | components: 51 | city: Manama 52 | country: Bahrain 53 | country_code: bh 54 | doctors: Al Hoora Health Centre 55 | postcode: 317 56 | road: 1910, 57 | state: Capital Governorate 58 | suburb: Al Hoora 59 | expected: | 60 | Al Hoora Health Centre 61 | 1910 62 | Manama 317 63 | Bahrain 64 | -------------------------------------------------------------------------------- /testcases/countries/es.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Barcelona 3 | components: 4 | city: Barcelona 5 | country: Spain 6 | country_code: es 7 | county: BCN 8 | state: Catalonia 9 | expected: | 10 | Barcelona 11 | Catalonia 12 | Spain 13 | --- 14 | description: 41.39266,2.19790 15 | components: 16 | city: Barcelona 17 | country: Spain 18 | country_code: es 19 | county: BCN 20 | house_number: 17 21 | pedestrian: Avinguda del Bogatell 22 | postcode: "08005" 23 | public_building: Biblioteca Xavier Benguerel 24 | state: Catalonia 25 | suburb: la Vila Olímpica del Poblenou 26 | expected: | 27 | Biblioteca Xavier Benguerel 28 | Avinguda del Bogatell, 17 29 | 08005 Barcelona 30 | Spain 31 | --- 32 | description: Donostia multipostcode, reject long postcode 33 | components: 34 | city: San Sebastián 35 | country: Spain 36 | country_code: es 37 | county: Gipuzkoa 38 | postcode: 20001;20002;20003;20004;20005;20006;20007;20008;20009;20010;20011;20012;20013;20014;20015;20016;20017;20018 39 | state: Basque Country 40 | expected: | 41 | San Sebastián 42 | Basque Country 43 | Spain 44 | --- 45 | description: Costa del Sol Occidental 46 | components: 47 | country: Spanien 48 | country_code: es 49 | county: Costa del Sol Occidental 50 | state: Andalusien 51 | expected: | 52 | Costa del Sol Occidental 53 | Andalusien 54 | Spanien 55 | 56 | 57 | -------------------------------------------------------------------------------- /testcases/countries/pl.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: road address at 51.262986,15.568984 3 | components: 4 | house_number: 1 5 | road: Adama Asnyka 6 | neighbourhood: Południe 7 | city: Bolesławiec 8 | postcode: 59-700 9 | county: Bolesławiec 10 | state: Lower Silesian Voivodeship 11 | country: Poland 12 | country_code: PL 13 | expected: | 14 | Adama Asnyka 1 15 | 59-700 Bolesławiec 16 | Poland 17 | --- 18 | description: exclude garbage input, 50.01009,20.99881 19 | components: 20 | city: Tarnów 21 | country: Poland 22 | country_code: pl 23 | county: Tarnów 24 | fuel: http://ump.waw.pl/ retrieved 11:18:52 11/17/09 (UMP-Tarnow/src/POI-paliwo.pnt-converted.txt) 25 | neighbourhood: XXVI Lecia 26 | postcode: 33-106 27 | road: Mostowa 28 | state: Lesser Poland Voivodeship 29 | expected: | 30 | Mostowa 31 | 33-106 Tarnów 32 | Poland 33 | --- 34 | description: ensure postcode well formatted, 53.43888,14.57544 35 | components: 36 | city: Szczecin 37 | city_district: Śródmieście 38 | country: Poland 39 | country_code: pl 40 | county: Szczecin 41 | house_number: 19 42 | neighbourhood: Grabowo 43 | postcode: 71637 44 | road: Teofila Firlika 45 | state: West Pomeranian Voivodeship 46 | suburb: Drzetowo-Grabowo 47 | expected: | 48 | Teofila Firlika 19 49 | 71-637 Szczecin 50 | Poland 51 | 52 | -------------------------------------------------------------------------------- /testcases/countries/tz.yaml: -------------------------------------------------------------------------------- 1 | # Tanzania 2 | # in Dar es Salaam 3 | --- 4 | description: CWE Hotel in Dar es Salaam -6.83009,39.24981 5 | components: 6 | city: Dar es Salaam 7 | city_district: Buguruni 8 | country: Tanzania 9 | country_code: tz 10 | hotel: CWE Hotel 11 | postcode: 78570 12 | road: Mivinjeni Street 13 | state: Dar es Salaam 14 | suburb: Mivinjeni 15 | expected: | 16 | CWE Hotel 17 | Mivinjeni Street 18 | 78570 Dar es Salaam 19 | Tanzania 20 | 21 | # 22 | # in another city 23 | --- 24 | description: Ruvuma Regional Hospital -10.68053,35.65144 25 | components: 26 | city: Songea 27 | country: Tanzania 28 | country_code: tz 29 | hospital: Ruvuma Regional Hospital 30 | road: Sokoine Road 31 | state: Ruvuma 32 | state_district: Songea 33 | expected: | 34 | Ruvuma Regional Hospital 35 | Sokoine Road 36 | Songea 37 | Ruvuma 38 | Tanzania 39 | 40 | # 41 | # in countryside, no town 42 | --- 43 | description: -4.22466,35.72255 44 | components: 45 | country: Tanzania 46 | country_code: tz 47 | road: T14 48 | state: Manyara 49 | state_district: Babati 50 | expected: | 51 | T14 52 | Babati 53 | Manyara 54 | Tanzania 55 | --- 56 | description: -4.29340,35.30726 57 | components: 58 | country: Tanzania 59 | country_code: tz 60 | state: Manyara 61 | state_district: Babati 62 | expected: | 63 | Babati 64 | Manyara 65 | Tanzania 66 | -------------------------------------------------------------------------------- /testcases/countries/om.yaml: -------------------------------------------------------------------------------- 1 | # Oman 2 | --- 3 | description: Supermarket, 23.6004,58.5395 4 | components: 5 | city: Muscat, Oman 6 | country: Oman 7 | country_code: om 8 | postcode: 116 9 | residential: Muscat 10 | road: Al Noor Street 11 | state: Muscat 12 | supermarket: Fathima Super Market 13 | expected: | 14 | Fathima Super Market 15 | Al Noor Street 16 | 116 17 | Muscat, Oman 18 | Muscat 19 | Oman 20 | --- 21 | description: Supermarket, language=ar, 23.6004,58.5395 22 | components: 23 | city: Muscat, Oman 24 | country: سلطنة عمان 25 | country_code: om 26 | postcode: 116 27 | residential: Muscat 28 | road: Al Noor Street 29 | state: محافظة مسقط 30 | supermarket: Fathima Super Market 31 | expected: | 32 | Fathima Super Market 33 | Al Noor Street 34 | 116 35 | Muscat, Oman 36 | محافظة مسقط 37 | سلطنة عمان 38 | --- 39 | description: Bakery, 23.59524,58.44763 40 | components: 41 | bakery: Muscat Bakery 42 | city: Muscat, Oman 43 | country: Oman 44 | country_code: om 45 | postcode: 1727 46 | road: Street 3305 47 | state: Muscat 48 | suburb: Madinat al Sultan Qaboos 49 | expected: | 50 | Muscat Bakery 51 | Street 3305 52 | 1727 53 | Muscat, Oman 54 | Muscat 55 | Oman 56 | --- 57 | description: Medical complex, 17.01483,54.09010 58 | components: 59 | city: Salalah 60 | clinic: Al Zahir Medical Complex 61 | country: Oman 62 | country_code: om 63 | road: Al Nahdah Street 64 | state: Dhofar 65 | expected: | 66 | Al Zahir Medical Complex 67 | Al Nahdah Street 68 | Salalah 69 | Dhofar 70 | Oman 71 | -------------------------------------------------------------------------------- /testcases/countries/kw.yaml: -------------------------------------------------------------------------------- 1 | # Kuwait 2 | --- 3 | description: Supermarket at 29.2612,47.9658 4 | components: 5 | city: Jaleeb Al Shoyoukh 6 | country: Kuwait 7 | country_code: kw 8 | postcode: 32018 9 | road: 79 St 10 | state: Farwaniya 11 | suburb: Al Dajeej 12 | supermarket: Sultan Center Wholesale 13 | expected: | 14 | Sultan Center Wholesale 15 | Al Dajeej 16 | 79 St 17 | 32018 Jaleeb Al Shoyoukh 18 | Kuwait 19 | --- 20 | description: Supermarket, language=ar, 29.2612,47.9658 21 | components: 22 | city: جليب الشيوخ 23 | country: الكويت 24 | country_code: kw 25 | postcode: 32018 26 | road: 79 St 27 | state: الفروانية 28 | suburb: الضجيج 29 | supermarket: Sultan Center Wholesale 30 | expected: | 31 | Sultan Center Wholesale 32 | الضجيج 33 | 79 St 34 | 32018 جليب الشيوخ 35 | الكويت 36 | --- 37 | description: Hospital, 29.33765,47.97917 38 | components: 39 | city: Shuwaikh Residential 40 | country: Kuwait 41 | country_code: kw 42 | hospital: Faiha Primary Healthcare Center 43 | postcode: 13009 44 | road: Third Ring Road 45 | state: Al Asimah 46 | suburb: Faiha 47 | expected: | 48 | Faiha Primary Healthcare Center 49 | Faiha 50 | Third Ring Road 51 | 13009 Shuwaikh Residential 52 | Kuwait 53 | --- 54 | description: National Library, 29.37496,47.96875 55 | components: 56 | building: Kuwait National Library 57 | city: Kuwait City 58 | country: Kuwait 59 | country_code: kw 60 | postcode: 13009 61 | road: Gulf Road 62 | state: Al Asimah 63 | suburb: Dasma 64 | expected: | 65 | Kuwait National Library 66 | Dasma 67 | Gulf Road 68 | 13009 Kuwait City 69 | Kuwait 70 | -------------------------------------------------------------------------------- /bin/run_tests.t: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | 3 | # copy of 4 | # https://github.com/OpenCageData/perl-Geo-Address-Formatter/blob/master/t/unit/countries.t 5 | # and runs in travis-CI (see .travis.yml) 6 | 7 | use strict; 8 | use lib 'perl/lib/perl5'; 9 | use File::Basename qw(basename dirname); 10 | use File::Find::Rule; 11 | use File::Spec; 12 | use Test::Exception; 13 | use Test::More; 14 | use YAML::XS qw(LoadFile); 15 | 16 | use utf8; 17 | # nicer output for diag and failures, see 18 | # http://perldoc.perl.org/Test/More.html#CAVEATS-and-NOTES 19 | my $builder = Test::More->builder; 20 | binmode $builder->output, ":utf8"; 21 | binmode $builder->failure_output, ":utf8"; 22 | binmode $builder->todo_output, ":utf8"; 23 | 24 | 25 | my $path = dirname(__FILE__) . '/../testcases'; 26 | 27 | my @files = File::Find::Rule->file()->name( '*.yaml' )->in( $path ); 28 | 29 | ok(scalar(@files), 'found at least one file'); 30 | 31 | my $CLASS = 'Geo::Address::Formatter'; 32 | use_ok($CLASS); 33 | 34 | my $conf_path = dirname(__FILE__) . '/../conf'; 35 | my $GAF = $CLASS->new( conf_path => $conf_path ); 36 | 37 | sub _one_testcase { 38 | my $country = shift; 39 | my $rh_testcase = shift; 40 | is( 41 | $GAF->format_address($rh_testcase->{components}), 42 | $rh_testcase->{expected}, 43 | $country . ' - ' . $rh_testcase->{description} 44 | ); 45 | } 46 | 47 | foreach my $filename (@files){ 48 | my $country = basename($filename); 49 | $country =~ s/\.\w+$//; # us.yaml => us 50 | 51 | my @a_testcases = (); 52 | lives_ok { 53 | @a_testcases = LoadFile($filename); 54 | } "parsing file $filename"; 55 | 56 | foreach my $rh_testcase (@a_testcases){ 57 | _one_testcase($country, $rh_testcase); 58 | } 59 | } 60 | 61 | 62 | done_testing(); 63 | -------------------------------------------------------------------------------- /testcases/countries/ly.yaml: -------------------------------------------------------------------------------- 1 | # Lybia 2 | --- 3 | description: Hotel, 32.88945,13.17402 4 | components: 5 | city: Tripoli 6 | country: Libya 7 | country_code: ly 8 | hotel: Capital Hotel 9 | postcode: 82510 10 | road: Arasafi 11 | state: Tripoli 12 | suburb: Old City المدينة القديمه 13 | expected: | 14 | Capital Hotel 15 | Arasafi 16 | Tripoli 17 | Libya 18 | --- 19 | description: Hotel, language=ar 32.88945,13.17402 20 | components: 21 | city: طرابلس 22 | country: ليبيا 23 | country_code: ly 24 | hotel: Capital Hotel 25 | postcode: 82510 26 | road: Arasafi 27 | state: طرابلس 28 | suburb: Old City المدينة القديمه 29 | expected: | 30 | Capital Hotel 31 | Arasafi 32 | طرابلس 33 | ليبيا 34 | --- 35 | description: Supermarket, 32.88791,13.21650 36 | components: 37 | city: Tripoli 38 | country: Libya 39 | country_code: ly 40 | postcode: 82510 41 | road: Shara Muhammad Soukny 42 | state: Tripoli 43 | suburb: Bab Tajura 44 | supermarket: Suuq Nufleen 45 | expected: | 46 | Suuq Nufleen 47 | Shara Muhammad Soukny 48 | Tripoli 49 | Libya 50 | --- 51 | description: Convenience store, 31.92505,12.24794 52 | components: 53 | city: Az zintan 54 | country: Libya 55 | country_code: ly 56 | road: طريق الصلوعة 57 | shop: محل مواد غدائية 58 | state: Jabal al Gharbi 59 | expected: | 60 | محل مواد غدائية 61 | طريق الصلوعة 62 | Az zintan 63 | Libya 64 | --- 65 | description: Convenience store, language=ar, 31.92505,12.24794 66 | components: 67 | city: الزنتان 68 | country: ليبيا 69 | country_code: ly 70 | road: طريق الصلوعة 71 | shop: محل مواد غدائية 72 | state: الجبل الغربي 73 | expected: | 74 | محل مواد غدائية 75 | طريق الصلوعة 76 | الزنتان 77 | ليبيا 78 | -------------------------------------------------------------------------------- /conf/components.yaml: -------------------------------------------------------------------------------- 1 | # ordered list, smallest to largest 2 | name: house_number 3 | aliases: 4 | - street_number 5 | - housenumber 6 | --- 7 | name: house 8 | aliases: 9 | - building 10 | - public_building 11 | - isolated_dwelling 12 | - farmland 13 | - allotments 14 | --- 15 | name: road 16 | aliases: 17 | - footway 18 | - street 19 | - street_name 20 | - residential 21 | - path 22 | - pedestrian 23 | - road_reference 24 | - road_reference_intl 25 | - square 26 | --- 27 | name: place 28 | aliases: 29 | - farmland 30 | - allotments 31 | --- 32 | name: hamlet 33 | aliases: 34 | - locality 35 | - croft 36 | --- 37 | name: village 38 | --- 39 | name: neighbourhood 40 | aliases: 41 | - suburb 42 | - city_district 43 | - commune 44 | - district 45 | - quarter 46 | - borough 47 | - city_block 48 | - residential 49 | - commercial 50 | - industrial 51 | - houses 52 | - subdistrict 53 | - subdivision 54 | - ward 55 | --- 56 | name: postal_city 57 | --- 58 | name: city 59 | aliases: 60 | - town 61 | - township 62 | --- 63 | name: municipality 64 | aliases: 65 | - local_administrative_area 66 | - subcounty 67 | --- 68 | name: county 69 | aliases: 70 | - county_code 71 | - department 72 | --- 73 | name: state_district 74 | --- 75 | name: postcode 76 | aliases: 77 | - postal_code 78 | - partial_postcode 79 | --- 80 | name: state 81 | aliases: 82 | - province 83 | - state_code 84 | --- 85 | name: region 86 | aliases: 87 | - oblast 88 | - raion 89 | --- 90 | name: island 91 | --- 92 | name: archipelago 93 | --- 94 | name: country 95 | aliases: 96 | - country_name 97 | --- 98 | name: country_code 99 | --- 100 | name: continent 101 | -------------------------------------------------------------------------------- /testcases/countries/jo.yaml: -------------------------------------------------------------------------------- 1 | # Jordan 2 | --- 3 | description: Gallery, 31.95791,35.91522 4 | components: 5 | city: Amman 6 | country: Jordan 7 | country_code: jo 8 | museum: Jordan National Gallery of Fine Arts, Building 1 9 | postcode: 11190 10 | road: Husni Fareez Street 11 | state: Amman 12 | expected: | 13 | Jordan National Gallery of Fine Arts, Building 1 14 | Husni Fareez Street 15 | 11190 Amman 16 | Jordan 17 | --- 18 | description: Supermarket, 31.95101,35.91891 19 | components: 20 | city: Amman 21 | country: Jordan 22 | country_code: jo 23 | postcode: 11183 24 | road: Abu Al Wafa Al Dajani Street 25 | state: Amman 26 | supermarket: هَبوب - Haboob 27 | expected: | 28 | هَبوب - Haboob 29 | Abu Al Wafa Al Dajani Street 30 | 11183 Amman 31 | Jordan 32 | --- 33 | description: Supermarket, language=ar, 31.95101,35.91891 34 | components: 35 | city: عمان 36 | country: الأردن 37 | country_code: jo 38 | postcode: 11183 39 | road: Abu Al Wafa Al Dajani Street 40 | state: ‏محافظة العاصمة‎ 41 | supermarket: هَبوب 42 | expected: | 43 | هَبوب 44 | Abu Al Wafa Al Dajani Street 45 | 11183 عمان 46 | الأردن 47 | --- 48 | description: Dental clinic, 31.91740,35.89150 49 | components: 50 | building: Khalifeh Mall 51 | city: Amman 52 | country: Jordan 53 | country_code: jo 54 | postcode: 11183 55 | road: جبل عرفات 56 | state: Amman 57 | suburb: Sweifieh 58 | expected: | 59 | Khalifeh Mall 60 | جبل عرفات 61 | 11183 Amman 62 | Jordan 63 | --- 64 | description: Dental clinic, language=ar, 31.91740,35.89150 65 | components: 66 | building: خليفة مول 67 | city: عمان 68 | country: الأردن 69 | country_code: jo 70 | postcode: 11183 71 | road: جبل عرفات 72 | state: ‏محافظة العاصمة‎ 73 | suburb: حي الصويفية 74 | expected: | 75 | خليفة مول 76 | جبل عرفات 77 | 11183 عمان 78 | الأردن 79 | -------------------------------------------------------------------------------- /testcases/countries/it.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Barletta street address - 41.312006,16.2704745 3 | components: 4 | city: Barletta 5 | country: Italy 6 | country_code: it 7 | county: BT 8 | house_number: 13 9 | postcode: 76121 10 | road: Via Pisacane 11 | state: Apulia 12 | suburb: Montaltino 13 | expected: | 14 | Via Pisacane 13 15 | 76121 Barletta BT 16 | Italy 17 | --- 18 | description: Milano, correcty add county_code 19 | components: 20 | city: Milano 21 | country: Italy 22 | country_code: it 23 | county: Milano 24 | postcode: 20147 25 | road: Via Giovanni Della Casa 26 | state: Lombardy 27 | suburb: Boldinasco 28 | expected: | 29 | Via Giovanni Della Casa 30 | 20147 Milano MI 31 | Italy 32 | --- 33 | description: Torino, correcty add county_code 34 | components: 35 | city: San Raffaele Cimena 36 | country: Italy 37 | country_code: it 38 | county: Torino 39 | postcode: 10032 40 | road: Via Pertengo 41 | state: Piemonte 42 | expected: | 43 | Via Pertengo 44 | 10032 San Raffaele Cimena TO 45 | Italy 46 | --- 47 | description: Provincia di Torino, correcty add county_code 48 | components: 49 | city: San Raffaele Cimena 50 | country: Italy 51 | country_code: it 52 | county: Provincia di Torino 53 | postcode: 10032 54 | road: Via Pertengo 55 | state: Piemonte 56 | expected: | 57 | Via Pertengo 58 | 10032 San Raffaele Cimena TO 59 | Italy 60 | --- 61 | description: deal with Città metropolitana di Firenze 62 | components: 63 | building: Palazzo Gondi 64 | city: Firenze 65 | country: Italia 66 | country_code: it 67 | county: Città metropolitana di Firenze 68 | pedestrian: Via dei Gondi 69 | postcode: 50122 70 | state: TOS 71 | suburb: Quartiere 1 72 | expected: | 73 | Palazzo Gondi 74 | Via dei Gondi 75 | 50122 Firenze FI 76 | Italia 77 | -------------------------------------------------------------------------------- /testcases/countries/sy.yaml: -------------------------------------------------------------------------------- 1 | # Syria 2 | --- 3 | description: Plastic surgery clinic, 33.52042,36.29148 4 | components: 5 | city: Damascus 6 | clinic: Plastic Surgery Clinic 7 | country: Syria 8 | country_code: sy 9 | neighbourhood: Baramkeh 10 | pedestrian: سوق الصالحية 11 | state: Rif Dimashq 12 | suburb: Kafar Sousseh 13 | expected: | 14 | Plastic Surgery Clinic 15 | سوق الصالحية 16 | Baramkeh 17 | Damascus 18 | Syria 19 | --- 20 | description: Plastic surgery clinic, language=ar, 33.52042,36.29148 21 | components: 22 | city: دمشق 23 | clinic: عيادة الجراحة التجميلية 24 | country: الجمهورية العربية السورية 25 | country_code: sy 26 | neighbourhood: البرامكة 27 | pedestrian: شارع جمال عبد الناصر 28 | state: ريف دمشق 29 | suburb: كفر سوسه 30 | expected: | 31 | عيادة الجراحة التجميلية 32 | شارع جمال عبد الناصر 33 | البرامكة 34 | دمشق 35 | الجمهورية العربية السورية 36 | --- 37 | description: Pharmacy, 33.51929,36.31770 38 | components: 39 | city: Damascus 40 | country: Syria 41 | country_code: sy 42 | pharmacy: Maooneh 43 | road: Albeirudi Street 44 | state: Rif Dimashq 45 | suburb: Soufanieh 46 | expected: | 47 | Maooneh 48 | Albeirudi Street 49 | Soufanieh 50 | Damascus 51 | Syria 52 | --- 53 | description: Pharmacy, language=ar, 33.51929,36.31770 54 | components: 55 | city: دمشق 56 | country: الجمهورية العربية السورية 57 | country_code: sy 58 | pharmacy: المعونة 59 | road: شارع البيرودي 60 | state: ريف دمشق 61 | suburb: Soufanieh 62 | expected: | 63 | المعونة 64 | شارع البيرودي 65 | Soufanieh 66 | دمشق 67 | الجمهورية العربية السورية 68 | --- 69 | description: Mosque, 36.19821,37.15467 70 | components: 71 | city: Aleppo 72 | country: Syria 73 | country_code: sy 74 | neighbourhood: Al Jdeida 75 | pedestrian: Souq el Attarine 76 | place_of_worship: Al Bahramiyeh Mosque 77 | state: Aleppo 78 | suburb: حي باب النيرب 79 | expected: | 80 | Al Bahramiyeh Mosque 81 | Souq el Attarine 82 | Al Jdeida 83 | Aleppo 84 | Syria 85 | -------------------------------------------------------------------------------- /testcases/countries/ae.yaml: -------------------------------------------------------------------------------- 1 | # United Arab Emirates 2 | --- 3 | description: L'Arabia Hotel, 24.37253,54.53801 4 | components: 5 | city: Abu Dhabi 6 | country: United Arab Emirates 7 | country_code: ae 8 | hotel: L'Arabia hotel 9 | postcode: 277 10 | road: 28th Street 11 | state: Abu Dhabi 12 | suburb: Police Officers City 13 | expected: | 14 | L'Arabia hotel 15 | 28th Street 16 | Police Officers City 17 | Abu Dhabi 18 | United Arab Emirates 19 | --- 20 | description: L'Arabia Hotel, language=ar, 24.37253,54.53801 21 | components: 22 | city: أبو ظبي 23 | country: الإمارات العربية المتحدة 24 | country_code: ae 25 | hotel: L'Arabia hotel 26 | postcode: 277 27 | road: 28th Street 28 | state: أبو ظبي 29 | suburb: Police Officers City 30 | expected: | 31 | L'Arabia hotel 32 | 28th Street 33 | Police Officers City 34 | أبو ظبي 35 | الإمارات العربية المتحدة 36 | --- 37 | description: Pizza hut, 24.37289,54.51820 38 | components: 39 | city: Abu Dhabi 40 | country: United Arab Emirates 41 | country_code: ae 42 | postcode: 277 43 | restaurant: Pizza Hut 44 | road: 8th Street 45 | state: Abu Dhabi 46 | suburb: Police Officers City 47 | expected: | 48 | Pizza Hut 49 | 8th Street 50 | Police Officers City 51 | Abu Dhabi 52 | United Arab Emirates 53 | --- 54 | description: Thumbay Hospital, 25.28130/55.36503 55 | components: 56 | city: Dubai 57 | country: United Arab Emirates 58 | country_code: ae 59 | hospital: Thumbay Hospital 60 | postcode: 47602 61 | residential: Al Qusais 1 62 | road: Street 4 63 | state: Dubai 64 | suburb: Al Qusais 1 65 | expected: | 66 | Thumbay Hospital 67 | Street 4 68 | Al Qusais 1 69 | Dubai 70 | United Arab Emirates 71 | --- 72 | description: International Media Production Zone, 25.0299178/55.1872123 73 | components: 74 | country: United Arab Emirates 75 | country_code: ae 76 | postcode: '0448' 77 | state: Dubai 78 | suburb: International Media Production Zone 79 | expected: | 80 | International Media Production Zone 81 | Dubai 82 | United Arab Emirates 83 | -------------------------------------------------------------------------------- /testcases/countries/lb.yaml: -------------------------------------------------------------------------------- 1 | # Lebanon 2 | --- 3 | description: Cinema, 33.88591,35.50907 4 | components: 5 | cinema: Circuit Empire Sodeco 6 | city: Beirut 7 | country: Lebanon 8 | country_code: lb 9 | postcode: 2052 6703 10 | road: Damascus Road 11 | state: Beirut Governorate 12 | suburb: Achrafieh 13 | expected: | 14 | Circuit Empire Sodeco 15 | Damascus Road 16 | Beirut 2052 6703 17 | Lebanon 18 | --- 19 | # This is a tricky case, as the postcode "2052 6703" could get displayed like 20 | # "6703 2052" in some situations, which is incorrect. The solution to this is 21 | # to replace the space character with a non-breaking space U+00A0. 22 | description: Cinema, language=ar, 33.88591,35.50907 23 | components: 24 | cinema: سيركوي امبير سوديكو 25 | city: بيروت 26 | country: الجمهورية اللبنانية 27 | country_code: lb 28 | postcode: 2052 6703 29 | road: طريق الشام 30 | state: محافظة بيروت 31 | suburb: الأشرفية 32 | expected: | 33 | سيركوي امبير سوديكو 34 | طريق الشام 35 | بيروت 2052 6703 36 | الجمهورية اللبنانية 37 | --- 38 | description: Restaurant, 33.89821,35.47893 39 | components: 40 | city: Beirut 41 | country: Lebanon 42 | country_code: lb 43 | restaurant: Kushari Society 44 | road: Rue Mahatma Gandhi 45 | state: Beirut Governorate 46 | suburb: Ras Beirut 47 | expected: | 48 | Kushari Society 49 | Rue Mahatma Gandhi 50 | Beirut 51 | Lebanon 52 | --- 53 | description: Restaurant, language=ar, 33.89821,35.47893 54 | components: 55 | city: بيروت 56 | country: الجمهورية اللبنانية 57 | country_code: lb 58 | restaurant: Kushari Society 59 | road: شارع المهتما غاندي 60 | state: محافظة بيروت 61 | suburb: رأس بيروت 62 | expected: | 63 | Kushari Society 64 | شارع المهتما غاندي 65 | بيروت 66 | الجمهورية اللبنانية 67 | --- 68 | description: Supermarket, 34.43088,35.83017 69 | components: 70 | city: Tripoli 71 | country: Lebanon 72 | country_code: lb 73 | road: شارع عشير الدايه 74 | state: Qada Tarablos 75 | supermarket: SEVEN TO TWELVE 76 | expected: | 77 | SEVEN TO TWELVE 78 | شارع عشير الدايه 79 | Tripoli 80 | Lebanon 81 | -------------------------------------------------------------------------------- /testcases/countries/br.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Rio 3 | components: 4 | city: Rio de Janeiro 5 | country: Brazil 6 | country_code: BR 7 | county: Rio de Janeiro 8 | road: Avenida Maracanã 9 | state: RJ 10 | state_district: Região Metropolitana do Rio de Janeiro 11 | suburb: Maracanã 12 | expected: | 13 | Avenida Maracanã 14 | Maracanã 15 | Rio de Janeiro - RJ 16 | Brazil 17 | --- 18 | description: format postcode correctly 19 | components: 20 | city: Belo Horizonte 21 | city_district: Regional Centro-Sul 22 | country: Brazil 23 | country_code: br 24 | county: Microrregião Belo Horizonte 25 | neighbourhood: Centro 26 | postcode: 30170011 27 | road: Rua Rio de Janiero 28 | state: Minas Gerais 29 | state_district: Mesorregião Metropolitana de Belo Horizonte 30 | suburb: Centro 31 | expected: | 32 | Rua Rio de Janiero 33 | Centro 34 | Belo Horizonte - MG 35 | 30170-011 36 | Brazil 37 | --- 38 | description: BR housenumber -22.92540,-43.17540 39 | components: 40 | city: Rio de Janeiro 41 | city_district: Zona Central do Rio de Janeiro 42 | continent: South America 43 | country: Brazil 44 | country_code: br 45 | county: Região Geográfica Imediata do Rio de Janeiro 46 | house: Condomínio Condomínio René Magritte 47 | house_number: 68 48 | postcode: 22221-000 49 | road: Rua Silveira Martins 50 | state: Rio de Janeiro 51 | state_code: RJ 52 | state_district: Região Geográfica Intermediária do Rio de Janeiro 53 | suburb: Catete 54 | expected: | 55 | Condomínio Condomínio René Magritte 56 | Rua Silveira Martins 68 57 | Catete 58 | Rio de Janeiro - RJ 59 | 22221-000 60 | Brazil 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 | 80 | -------------------------------------------------------------------------------- /testcases/countries/nl.yaml: -------------------------------------------------------------------------------- 1 | # Netherlands 2 | --- 3 | description: Address in Amsterdam, 52.36519,4.89683 4 | components: 5 | city: Amsterdam 6 | city_district: Centrum 7 | country: The Netherlands 8 | country_code: nl 9 | county: MRA 10 | house_number: 573 11 | postcode: 1017CD 12 | road: Herengracht 13 | state: North Holland 14 | suburb: Amsterdam 15 | expected: | 16 | Herengracht 573 17 | 1017 CD Amsterdam 18 | The Netherlands 19 | 20 | # Netherlands auf nederlands 21 | --- 22 | description: Address in Amsterdam in Dutch, 52.36519,4.89683 23 | components: 24 | city: Amsterdam 25 | city_district: Centrum 26 | country: Koninkrijk der Nederlanden 27 | country_code: nl 28 | county: MRA 29 | house_number: 573 30 | postcode: 1017CD 31 | road: Herengracht 32 | state: North Holland 33 | suburb: Amsterdam 34 | expected: | 35 | Herengracht 573 36 | 1017 CD Amsterdam 37 | Nederland 38 | 39 | # Curaçao 40 | # correctly use CW template not standard NL template 41 | --- 42 | description: Address in Willemstad, Curaçao 12.11148,-68.94561 43 | components: 44 | country: The Netherlands 45 | country_code: nl 46 | house_number: 14 47 | neighbourhood: Colon 48 | postcode: "0000NA" 49 | road: Jan Erasmusstraat 50 | state: Curaçao 51 | suburb: Seru Domi 52 | town: Willemstad 53 | expected: | 54 | Jan Erasmusstraat 14 55 | Willemstad 56 | Curaçao 57 | 58 | # Aruba 59 | # correctly use AW template not standard NL template 60 | --- 61 | description: Parliament in Oranjestad, Aruba, 12.51781,-70.03646 62 | components: 63 | name: Parliament of Aruba 64 | country: The Netherlands 65 | country_code: nl 66 | house_number: LSB 70 67 | road: L.G. Smith Boulevard 68 | state: Aruba 69 | town: Oranjestad 70 | expected: | 71 | Parliament of Aruba 72 | L.G. Smith Boulevard LSB 70 73 | Oranjestad 74 | Aruba 75 | 76 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /testcases/countries/iq.yaml: -------------------------------------------------------------------------------- 1 | # Iraq 2 | --- 3 | description: Supermarket, 33.3559,44.4015 4 | components: 5 | city: Baghdad 6 | city_district: Rusafa 7 | country: Iraq 8 | country_code: iq 9 | county: Al Resafa 10 | postcode: 222 11 | road: A86/N11/D383 12 | state: Baghdad 13 | suburb: Mustansiriya 14 | supermarket: al mustansriya Central Market 15 | expected: | 16 | al mustansriya Central Market 17 | Rusafa 18 | A86/N11/D383 19 | Baghdad 20 | 222 21 | Iraq 22 | --- 23 | description: Supermarket, language=ar, 33.3559,44.4015 24 | components: 25 | city: بغداد 26 | city_district: Rusafa 27 | country: العراق 28 | country_code: iq 29 | county: Al Resafa 30 | postcode: 222 31 | road: A86/N11/D383 32 | state: محافظة بغداد 33 | suburb: Mustansiriya 34 | supermarket: al mustansriya Central Market 35 | expected: | 36 | al mustansriya Central Market 37 | Rusafa 38 | A86/N11/D383 39 | بغداد 40 | 222 41 | العراق 42 | --- 43 | description: Hospital, 36.32326,43.12339 44 | components: 45 | city: Mosul 46 | country: Iraq 47 | country_code: iq 48 | county: Al Mnsul Qadha 49 | hospital: Mosul General Hospital 50 | road: الجسر الرابع 51 | state: Nineveh 52 | suburb: وادي حجر 53 | expected: | 54 | Mosul General Hospital 55 | وادي حجر 56 | الجسر الرابع 57 | Mosul 58 | Iraq 59 | --- 60 | description: Town hall, 33.23623,44.31577 61 | components: 62 | city: Baghdad 63 | city_district: Rasheed 64 | country: Iraq 65 | country_code: iq 66 | county: Karkh 67 | road: شارع قطر الندى 68 | state: Baghdad 69 | suburb: Resala 70 | townhall: Masgd 71 | expected: | 72 | Masgd 73 | Rasheed 74 | شارع قطر الندى 75 | Baghdad 76 | Iraq 77 | --- 78 | description: 36.19137, 43.97445 79 | components: 80 | city: Arbil 81 | continent: Asia 82 | country: Iraq 83 | country_code: iq 84 | county: قضاء أربيل 85 | house_number: 391 86 | neighbourhood: English Village 87 | postcode: 44001 88 | state: هەرێمی کوردستان 89 | suburb: گوندی ئینگلیزی 90 | expected: | 91 | 391 English Village 92 | Arbil 93 | 44001 94 | Iraq 95 | -------------------------------------------------------------------------------- /testcases/countries/eg.yaml: -------------------------------------------------------------------------------- 1 | # Egypt 2 | --- 3 | description: Cultural Centre in Giza, 30.04248,31.22369 4 | components: 5 | city: Giza 6 | country: Egypt 7 | country_code: eg 8 | museum: National Cultural Centre 9 | postcode: 11231 10 | road: Mahmoud Mokhtar 11 | state: Giza Governorate 12 | suburb: Dokki 13 | expected: | 14 | National Cultural Centre 15 | Mahmoud Mokhtar 16 | Dokki 17 | Giza 18 | 11231 19 | Egypt 20 | --- 21 | description: Policy academy, 30.06864,31.28709 22 | components: 23 | city: Cairo 24 | country: Egypt 25 | country_code: eg 26 | postcode: 11381 27 | road: Fakhry Abdel-Nur 28 | state: Cairo Governorate 29 | suburb: Abbasseya 30 | university: Police Academy 31 | expected: | 32 | Police Academy 33 | Fakhry Abdel-Nur 34 | Abbasseya 35 | Cairo 36 | 11381 37 | Egypt 38 | --- 39 | description: Mosque, 25.69992,32.63965 40 | components: 41 | city: Luxor 42 | country: Egypt 43 | country_code: eg 44 | pedestrian: Sphinx Alley 45 | place_of_worship: Abu Haggag Mosque 46 | state: Luxor Governate 47 | expected: | 48 | Abu Haggag Mosque 49 | Sphinx Alley 50 | Luxor 51 | Egypt 52 | --- 53 | description: University, 30.79623,30.99934 54 | components: 55 | city: Tanta 56 | college: Tanta University 57 | country: Egypt 58 | country_code: eg 59 | postcode: 31111 60 | road: Mohebb 61 | state: Gharbiyya Governorate 62 | suburb: Mahlet Marhoum 63 | expected: | 64 | Tanta University 65 | Mohebb 66 | Mahlet Marhoum 67 | Tanta 68 | 31111 69 | Egypt 70 | --- 71 | description: Same univerisity, language=ar, 30.79623,2C30.99934 72 | components: 73 | city: ‏طنطا 74 | college: جامعة طنطا 75 | country: مصر 76 | country_code: eg 77 | postcode: 31111 78 | road: شارع محب 79 | state: ‏محافظة الغربي 80 | suburb: محلة مرحوم 81 | expected: | 82 | جامعة طنطا 83 | شارع محب 84 | محلة مرحوم 85 | ‏طنطا 86 | 31111 87 | مصر 88 | 89 | -------------------------------------------------------------------------------- /testcases/countries/au.yaml: -------------------------------------------------------------------------------- 1 | # Australia (AU) 2 | --- 3 | # -37.8134921, 144.956787658113 4 | description: Melbourne Magistrates' Court, -37.8134921, 144.956787658113 5 | components: 6 | city: Melbourne 7 | country: Australia 8 | country_code: AU 9 | county: City of Melbourne 10 | courthouse: Melbourne Magistrates' Court 11 | house_number: 223 12 | postcode: 3000 13 | road: William Street 14 | state: Victoria 15 | suburb: Melbourne 16 | expected: | 17 | Melbourne Magistrates' Court 18 | 223 William Street 19 | Melbourne VIC 3000 20 | Australia 21 | # 22 | # no city 23 | # 24 | --- 25 | description: Road in suburb, -37.7319, 144.9381 26 | components: 27 | country : Australia 28 | country_code : au 29 | county : City of Moreland 30 | postcode : 3039 31 | region : Greater Melbourne 32 | road : Rainer Street 33 | state : Victoria 34 | suburb : Pascoe Vale South 35 | expected: | 36 | Rainer Street 37 | Pascoe Vale South VIC 3039 38 | Australia 39 | # 40 | # suburb should win over town 41 | # 42 | --- 43 | description: suburb over town Sans Souci, -34.000,151.124 44 | components: 45 | city: Sydney 46 | country: Australia 47 | country_code: au 48 | county: Georges River Council 49 | postcode: 2219 50 | pub: St George Motor Boat Club 51 | road: Vista Street 52 | state: New South Wales 53 | state_code: NSW 54 | suburb: Sans Souci 55 | expected: | 56 | St George Motor Boat Club 57 | Vista Street 58 | Sans Souci NSW 2219 59 | Australia 60 | # 61 | # suburb should win over town 62 | # 63 | --- 64 | description: suburb over town Ashbury, -33.9,151.1229 65 | components: 66 | city: Sydney 67 | country: Australia 68 | country_code: au 69 | county: Canterbury-Bankstown Council 70 | postcode: 2193 71 | road: Fifth Street 72 | state: New South Wales 73 | state_code: NSW 74 | suburb: Ashbury 75 | expected: | 76 | Fifth Street 77 | Ashbury NSW 2193 78 | Australia 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 108 | -------------------------------------------------------------------------------- /testcases/countries/ps.yaml: -------------------------------------------------------------------------------- 1 | # Palestine 2 | # 3 | # Note that postal addresses seem to follow Israeli format and end with "via Isreal", 4 | # according to 5 | # https://www.informatica.com/products/data-quality/data-as-a-service/address-verification/address-formats.html?code=PSE 6 | # 7 | # I removed "via Israel" since we are not using postal addresses, and followed 8 | # the more detailed Israeli format found at 9 | # https://www.informatica.com/products/data-quality/data-as-a-service/address-verification/address-formats.html?code=ISR 10 | --- 11 | description: Hostel, 31.90204,35.20281 12 | components: 13 | country: Palestine 14 | country_code: ps 15 | hostel: Hostel in Ramallah 16 | house_number: 12 17 | postcode: 700074 18 | road: Al-Nuzha Street 19 | state: Area A 20 | state_district: Ramallah and al-Bireh Governorate 21 | suburb: Ramallah Altahtah 22 | town: Ramallah 23 | expected: | 24 | Hostel in Ramallah 25 | Al-Nuzha Street 12 26 | 700074 Ramallah 27 | Palestine 28 | --- 29 | description: Hostel, language=ar, 31.90204,35.20281 30 | components: 31 | country: فلسطين 32 | country_code: ps 33 | hostel: Hostel in Ramallah 34 | house_number: 12 35 | postcode: 700074 36 | road: شارع النزهة 37 | state: منطقة A 38 | state_district: محافظة رام الله والبيرة 39 | suburb: رام الله التحتة 40 | town: رام الله 41 | expected: | 42 | Hostel in Ramallah 43 | شارع النزهة 12 44 | 700074 رام الله 45 | فلسطين 46 | --- 47 | description: Doctor's office, 32.22369,35.25941 48 | components: 49 | city: Nablus 50 | country: Palestine 51 | country_code: ps 52 | doctors: Al Adham X-ray 53 | road: Sufian Street 54 | state: Area A 55 | state_district: Nablus Governorate 56 | suburb: Old City 57 | expected: | 58 | Al Adham X-ray 59 | Sufian Street 60 | Nablus 61 | Palestine 62 | --- 63 | description: Doctor's office, language=ar, 32.22369,35.25941 64 | components: 65 | city: Nablus 66 | country: فلسطين 67 | country_code: ps 68 | doctors: الادهم للاشعه 69 | road: شارع سفيان 70 | state: منطقة A 71 | state_district: محافظة نابلس 72 | suburb: البلدة القديمة 73 | expected: | 74 | الادهم للاشعه 75 | شارع سفيان 76 | Nablus 77 | فلسطين 78 | --- 79 | description: Optician, 31.50804,34.45912 80 | components: 81 | city: Gaza 82 | country: Palestine 83 | country_code: ps 84 | doctors: Khorsheed Optician 85 | postcode: "00972" 86 | region: Gaza Strip 87 | road: Omar Al-Mukhtar St. 88 | state_district: Gaza Governorate 89 | suburb: Saknat az Zarqa 90 | expected: | 91 | Khorsheed Optician 92 | Omar Al-Mukhtar St. 93 | 00972 Gaza 94 | Palestine 95 | --- 96 | description: Optician, language=ar, 31.50804,34.45912 97 | components: 98 | city: غزة 99 | country: فلسطين 100 | country_code: ps 101 | doctors: خورشيد للبصريات 102 | postcode: "00972" 103 | region: ‏قطاع غزّة‎ 104 | road: شارع عمر المختار 105 | state_district: غزة 106 | suburb: ثكنة الزرقاء 107 | expected: | 108 | خورشيد للبصريات 109 | شارع عمر المختار 110 | 00972 غزة 111 | فلسطين 112 | 113 | -------------------------------------------------------------------------------- /testcases/countries/ca.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # 43.6666,-79.7482 3 | description: Brampton Centennial Secondary School 4 | components: 5 | city: Brampton 6 | country: Canada 7 | country_code: ca 8 | house_number: 251 9 | postcode: L6Y 1Z4 10 | road: McMurchy Avenue South 11 | school: Brampton Centennial Secondary School 12 | state: Ontario 13 | suburb: Ridgehill 14 | expected: | 15 | Brampton Centennial Secondary School 16 | 251 McMurchy Avenue South 17 | Brampton, ON L6Y 1Z4 18 | Canada 19 | # 20 | # 21 | # 22 | --- 23 | description: postcode and suburb 24 | components: 25 | city: Toronto 26 | country: Canada 27 | country_code: ca 28 | postcode: M6K1V2 29 | state: Ontario 30 | suburb: Parkdale 31 | expected: | 32 | Parkdale 33 | Toronto, ON M6K 1V2 34 | Canada 35 | # 36 | # London, Ontario 37 | # 38 | --- 39 | description: city, state 40 | components: 41 | city: London 42 | country: Canada 43 | country_code: ca 44 | county: Middlesex County 45 | state: Ontario 46 | state_code: "ON" 47 | expected: | 48 | London, ON 49 | Canada 50 | --- 51 | # London treated as county 52 | description: London treated as county - 42.95608,-81.23792 53 | components: 54 | country: Canada 55 | country_code: ca 56 | county: London 57 | house_number: 6 58 | neighbourhood: Lockwood Park 59 | postcode: N6C 2W9 60 | road: Cowan Avenue 61 | state: Ontario 62 | state_code: "ON" 63 | state_district: Southwestern Ontario 64 | expected: | 65 | 6 Cowan Avenue 66 | London, ON N6C 2W9 67 | Canada 68 | --- 69 | # 43.6666,-79.7482 70 | description: no housenumber 71 | components: 72 | city: Brampton 73 | country: Canada 74 | country_code: ca 75 | postcode: L6Y 1Z4 76 | road: McMurchy Avenue South 77 | school: Brampton Centennial Secondary School 78 | state: Ontario 79 | suburb: Ridgehill 80 | expected: | 81 | Brampton Centennial Secondary School 82 | McMurchy Avenue South 83 | Brampton, ON L6Y 1Z4 84 | Canada 85 | --- 86 | # 43.6666,-79.7482 87 | description: just county 88 | components: 89 | country: Canada 90 | country_code: ca 91 | county: Springfield 92 | state: Manitoba 93 | expected: | 94 | Springfield, MB 95 | Canada 96 | --- 97 | # 43.60242, -79.80113 98 | description: locality 99 | components: 100 | country: Canada 101 | country_code: ca 102 | county: Halton Region 103 | house_number: 7931 104 | locality: Halton Hills 105 | municipality: Halton Hills 106 | postcode: L5N 8P7 107 | road: Tenth Line 108 | state: Ontario 109 | state_district: Golden Horseshoe 110 | expected: | 111 | 7931 Tenth Line 112 | Halton Hills, ON L5N 8P7 113 | Canada 114 | --- 115 | # postformat_replace applied to abbreviated street type 116 | description: postformat_replace applied to abbreviated street type 117 | components: 118 | country: Canada 119 | country_code: ca 120 | house_number: 12345 121 | locality: St-Hyancinth 122 | postcode: J2T 3T5 123 | road: Av Demars 124 | expected: | 125 | 12345 Av Demars 126 | St-Hyancinth, J2T 3T5 127 | Canada 128 | -------------------------------------------------------------------------------- /conf/country2lang.yaml: -------------------------------------------------------------------------------- 1 | # mapping of countrycode to language codes 2 | # ISO-3166 Country Codes 3 | # http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 4 | # ISO-639-1 Language Codes 5 | # https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes 6 | # 7 | # countries with multiple languages should be a comma separated list 8 | # Example: ES: ca,es,eu,gl 9 | # 10 | AD: ca 11 | AE: ar,en 12 | AF: fa,ps 13 | AG: en 14 | AI: en 15 | AL: sq 16 | AM: hy 17 | AO: pt 18 | AQ: en 19 | AR: es 20 | AS: en 21 | AT: de 22 | AU: en 23 | AW: nl 24 | AX: fi,se 25 | AZ: az 26 | BA: bs,hr,sr 27 | BB: en 28 | BD: bn 29 | BE: fr,nl,de 30 | BF: fr 31 | BG: bg 32 | BH: ar,en 33 | BI: en 34 | BJ: fr 35 | BL: fr 36 | BM: en 37 | BN: en,ms 38 | BO: es 39 | BQ: nl,en 40 | BR: pt 41 | BS: en 42 | BT: dz 43 | BV: "no" 44 | BW: en 45 | BY: by,ru 46 | BZ: en,es 47 | CA: en,fr 48 | CC: en 49 | CD: fr 50 | CF: fr 51 | CG: fr 52 | CH: de,fr,it 53 | CI: fr 54 | CK: en 55 | CL: es 56 | CM: en 57 | CN: zh 58 | CO: es 59 | CR: es 60 | CU: es 61 | CV: pt 62 | CW: en,nl 63 | CX: en 64 | CY: he 65 | CZ: cs 66 | DE: de 67 | DJ: ar,fr 68 | DK: da 69 | DM: en 70 | DO: es 71 | DZ: ar,fr 72 | EC: es 73 | EE: et 74 | EG: ar 75 | EH: ar 76 | ER: ar,it,ti 77 | ES: ca,es,eu,gl 78 | ET: am,om,so,ti 79 | FI: fi,se 80 | FJ: en 81 | FK: en 82 | FM: en 83 | FO: da 84 | FR: fr 85 | GA: fr 86 | GB: en 87 | GD: en 88 | GE: ka 89 | GG: en 90 | GF: fr 91 | GH: en 92 | GI: en 93 | GL: da,kl 94 | GM: en 95 | GN: fr 96 | GP: fr 97 | GQ: es,fr,pt 98 | GR: el 99 | GS: en 100 | GT: es 101 | GU: en 102 | GW: pt 103 | GY: en 104 | HK: en,zh 105 | HM: en 106 | HN: es 107 | HR: hr 108 | HT: fr,ht 109 | HU: hu 110 | ID: id 111 | IE: en 112 | IL: ar,he 113 | IM: en 114 | IN: en 115 | IO: en 116 | IQ: ar 117 | IR: fa 118 | IS: is 119 | IT: it 120 | JE: en 121 | JM: en 122 | JO: ar 123 | JP: jp 124 | KE: en 125 | KG: ky,ru 126 | KH: km 127 | KI: en 128 | KM: ar,fr 129 | KN: en 130 | KP: ko 131 | KR: ko 132 | KW: ar 133 | KY: en 134 | KZ: kk,ru 135 | LA: lo 136 | LB: ar 137 | LC: en 138 | LI: de 139 | LK: en,si,ta 140 | LR: en 141 | LS: en,st 142 | LT: lt 143 | LU: de,fr 144 | LV: lv 145 | LY: ar 146 | MA: ar,fr 147 | MC: fr 148 | MD: ro 149 | ME: sr 150 | MF: fr 151 | MG: fr,mg 152 | MH: en 153 | MK: mk 154 | ML: fr 155 | MM: my 156 | MN: mn 157 | MO: pt,zh 158 | MP: en 159 | MQ: fr 160 | MR: ar,fr 161 | MS: en 162 | MT: en,mt 163 | MU: en,fr 164 | MV: dv 165 | MW: en,ny 166 | MX: es 167 | MY: ms 168 | MZ: pt 169 | NA: en 170 | NC: fr 171 | NE: fr 172 | NF: en 173 | NG: es 174 | NI: es 175 | NL: nl 176 | "NO": "no" 177 | NP: en 178 | NR: en 179 | NU: en 180 | NZ: en 181 | OM: ar,en 182 | PA: es 183 | PE: es 184 | PF: fr 185 | PG: en 186 | PH: en,tl 187 | PK: en 188 | PL: pl 189 | PM: fr 190 | PN: en 191 | PR: en,es 192 | PS: ar 193 | PT: pt 194 | PW: en 195 | PY: es 196 | QA: ar,en 197 | RE: fr 198 | RO: ro 199 | RS: sr 200 | RU: ru 201 | RW: en,fr,rw 202 | SA: ar 203 | SB: en 204 | SC: en,fr 205 | SD: ar,en 206 | SE: se 207 | SG: en 208 | SH: en 209 | SI: sl 210 | SJ: "no" 211 | SK: sk 212 | SL: en 213 | SM: it 214 | SN: fr 215 | SO: so 216 | SR: nl 217 | SS: en 218 | ST: pt 219 | SV: es 220 | SX: en,nl 221 | SY: ar 222 | SZ: en,ss 223 | TC: en 224 | TD: fr 225 | TF: fr 226 | TG: fr 227 | TH: th 228 | TJ: ru,tg 229 | TK: en 230 | TL: en,id,pt 231 | TN: ar,fr 232 | TM: ru,tk 233 | TO: en,to 234 | TR: tr 235 | TT: en 236 | TV: en 237 | TW: zh 238 | TZ: en,sw 239 | UA: uk 240 | UG: en,sw 241 | UM: en 242 | US: en 243 | UY: es 244 | UZ: uz 245 | VA: it 246 | VC: en 247 | VE: es 248 | VG: en 249 | VI: en 250 | VN: vn 251 | VU: en 252 | WF: fr 253 | WS: en 254 | YE: ar 255 | YT: fr 256 | ZA: en 257 | ZM: en 258 | ZW: en 259 | --------------------------------------------------------------------------------