mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
penalize housenumber after the postcode
This commit is contained in:
@@ -247,7 +247,10 @@ class SearchDescription
|
|||||||
$oSearch->iSearchRank++;
|
$oSearch->iSearchRank++;
|
||||||
}
|
}
|
||||||
// also must not appear in the middle of the address
|
// 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++;
|
$oSearch->iSearchRank++;
|
||||||
}
|
}
|
||||||
$aNewSearches[] = $oSearch;
|
$aNewSearches[] = $oSearch;
|
||||||
|
|||||||
Reference in New Issue
Block a user