From 66aee0fffa48dcf31c5e96c1a4a8947d004bc046 Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 7 Jan 2018 01:39:10 -0500 Subject: [PATCH] [expand] make street type dictionaries ignorable for venue names as well (many company names mention their address, so sort of have to apply the same rules) --- src/expand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expand.c b/src/expand.c index a6296ffc..e17256b7 100644 --- a/src/expand.c +++ b/src/expand.c @@ -540,7 +540,7 @@ static inline uint32_t gazetteer_ignorable_components(uint16_t dictionary_id) { case DICTIONARY_STOPWORD: return LIBPOSTAL_ADDRESS_NAME | LIBPOSTAL_ADDRESS_STREET | LIBPOSTAL_ADDRESS_CATEGORY | LIBPOSTAL_ADDRESS_NEAR | LIBPOSTAL_ADDRESS_TOPONYM; case DICTIONARY_STREET_TYPE: - return LIBPOSTAL_ADDRESS_STREET; + return LIBPOSTAL_ADDRESS_NAME | LIBPOSTAL_ADDRESS_STREET; case DICTIONARY_UNIT_NUMBERED: return LIBPOSTAL_ADDRESS_UNIT; case DICTIONARY_UNIT_STANDALONE: