From 940f568f666f56c41a5662e153366356a95d25db Mon Sep 17 00:00:00 2001 From: missinglink Date: Thu, 19 Mar 2020 15:54:06 +0100 Subject: [PATCH] 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' }