mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 05:44:06 +00:00
respect exclude_place_ids for housenumber search
This commit is contained in:
@@ -642,6 +642,7 @@ class SearchDescription
|
|||||||
// Housenumbers on streets and places.
|
// Housenumbers on streets and places.
|
||||||
$sPlacexSql = 'SELECT array_agg(place_id) FROM placex';
|
$sPlacexSql = 'SELECT array_agg(place_id) FROM placex';
|
||||||
$sPlacexSql .= ' WHERE parent_place_id = sin.place_id AND sin.address_rank < 30';
|
$sPlacexSql .= ' WHERE parent_place_id = sin.place_id AND sin.address_rank < 30';
|
||||||
|
$sPlacexSql .= $this->oContext->excludeSQL(' AND place_id');
|
||||||
$sPlacexSql .= ' and housenumber ~* E'.$sHouseNumberRegex;
|
$sPlacexSql .= ' and housenumber ~* E'.$sHouseNumberRegex;
|
||||||
|
|
||||||
// Interpolations on streets and places.
|
// Interpolations on streets and places.
|
||||||
|
|||||||
Reference in New Issue
Block a user