mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 05:18:00 +00:00
penalize housenumber after the postcode
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user