From 5416322650c54cf982aa4fe44b2ceac5a110bc2f Mon Sep 17 00:00:00 2001 From: missinglink Date: Thu, 19 Mar 2020 15:54:06 +0100 Subject: [PATCH 1/2] fix(de): add -kanal as seperable street suffix --- .../libpostal/de/concatenated_suffixes_separable.txt | 3 ++- test/address.deu.test.js | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/pelias/dictionaries/libpostal/de/concatenated_suffixes_separable.txt b/resources/pelias/dictionaries/libpostal/de/concatenated_suffixes_separable.txt index 86abf105..70ab2752 100644 --- a/resources/pelias/dictionaries/libpostal/de/concatenated_suffixes_separable.txt +++ b/resources/pelias/dictionaries/libpostal/de/concatenated_suffixes_separable.txt @@ -1,2 +1,3 @@ str -park \ No newline at end of file +park +kanal diff --git a/test/address.deu.test.js b/test/address.deu.test.js index bd663e3b..6cd2e14a 100644 --- a/test/address.deu.test.js +++ b/test/address.deu.test.js @@ -6,6 +6,11 @@ const testcase = (test, common) => { { postcode: '10437' }, { locality: 'Berlin' } ]) + assert('Am Nordkanal 11, 47877 Willich', [ + { street: 'Am Nordkanal' }, { housenumber: '11' }, + { postcode: '47877' }, { locality: 'Willich' } + ]) + assert('Am Bürgerpark 15-18, 13156, Berlin', [ { street: 'Am Bürgerpark' }, { housenumber: '15-18' }, { postcode: '13156' }, { locality: 'Berlin' } From 662ed6fa63ef56619adcbddf9a39cf87116a5ae8 Mon Sep 17 00:00:00 2001 From: missinglink Date: Thu, 19 Mar 2020 18:48:37 +0100 Subject: [PATCH 2/2] test(de): add additional seperable street suffix tests --- test/address.deu.test.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/address.deu.test.js b/test/address.deu.test.js index 6cd2e14a..8d74f194 100644 --- a/test/address.deu.test.js +++ b/test/address.deu.test.js @@ -27,6 +27,15 @@ const testcase = (test, common) => { { locality: 'Munich' }, { country: 'Germany' } ]) + assert('Königsallee Düsseldorf', [ + { street: 'Königsallee' }, + { locality: 'Düsseldorf' } + ]) + + assert('Rathausplatz', [{ street: 'Rathausplatz' }]) + assert('Plutoweg', [{ street: 'Plutoweg' }]) + assert('Dorfstrasse', [{ street: 'Dorfstrasse' }]) + // autocomplete-style query includes partial postcode assert('Eberswalder Straße 100 104', [ { street: 'Eberswalder Straße' }, { housenumber: '100' }