mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
create proper token array for unknown housenumbers
This commit is contained in:
@@ -379,7 +379,7 @@
|
|||||||
// Unknown single word token with a number - assume it is a house number
|
// Unknown single word token with a number - assume it is a house number
|
||||||
if (!isset($aValidTokens[' '.$sToken]) && strpos($sToken,' ') === false && preg_match('/[0-9]/', $sToken))
|
if (!isset($aValidTokens[' '.$sToken]) && strpos($sToken,' ') === false && preg_match('/[0-9]/', $sToken))
|
||||||
{
|
{
|
||||||
$aValidTokens[' '.$sToken] = array('class'=>'place','type'=>'house');
|
$aValidTokens[' '.$sToken] = array(array('class'=>'place','type'=>'house'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user