From: Sarah Hoffmann Date: Tue, 24 Oct 2017 21:30:41 +0000 (+0200) Subject: penalize housenumber after the postcode X-Git-Tag: v3.1.0~32 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/7caa67d8ecb622c6f6fe300156a820f71101e61a penalize housenumber after the postcode --- diff --git a/lib/SearchDescription.php b/lib/SearchDescription.php index e9495852..702e7dea 100644 --- a/lib/SearchDescription.php +++ b/lib/SearchDescription.php @@ -247,7 +247,10 @@ class SearchDescription $oSearch->iSearchRank++; } // also must not appear in the middle of the address - if (sizeof($this->aAddress) || sizeof($this->aAddressNonSearch)) { + if (sizeof($this->aAddress) + || sizeof($this->aAddressNonSearch) + || $this->sPostcode + ) { $oSearch->iSearchRank++; } $aNewSearches[] = $oSearch;