mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 10:27:57 +00:00
do not use artificial housenumbers as names
If they are artificial they cannot have a search_name entry.
This commit is contained in:
@@ -249,7 +249,10 @@ class SearchDescription
|
||||
$aNewSearches[] = $oSearch;
|
||||
// Housenumbers may appear in the name when the place has its own
|
||||
// address terms.
|
||||
if (($this->iNamePhrase >= 0 || empty($this->aName)) && empty($this->aAddress)) {
|
||||
if ($oSearchTerm->iId !== null
|
||||
&& ($this->iNamePhrase >= 0 || empty($this->aName))
|
||||
&& empty($this->aAddress)
|
||||
) {
|
||||
$oSearch = clone $this;
|
||||
$oSearch->iSearchRank++;
|
||||
$oSearch->aAddress = $this->aName;
|
||||
|
||||
Reference in New Issue
Block a user