make sure step is taken into account for interpolations

This commit is contained in:
Sarah Hoffmann
2022-02-09 21:42:28 +01:00
parent 474418f03c
commit fd38dd02ce

View File

@@ -651,6 +651,7 @@ class SearchDescription
$sIpolHnr = 'WHERE parent_place_id = sin.place_id '; $sIpolHnr = 'WHERE parent_place_id = sin.place_id ';
$sIpolHnr .= ' AND startnumber is not NULL AND sin.address_rank < 30'; $sIpolHnr .= ' AND startnumber is not NULL AND sin.address_rank < 30';
$sIpolHnr .= ' AND '.$this->sHouseNumber.' between startnumber and endnumber'; $sIpolHnr .= ' AND '.$this->sHouseNumber.' between startnumber and endnumber';
$sIpolHnr .= ' AND ('.$this->sHouseNumber.' - startnumber) % step = 0';
$sInterpolSql = 'SELECT array_agg(place_id) FROM location_property_osmline '.$sIpolHnr; $sInterpolSql = 'SELECT array_agg(place_id) FROM location_property_osmline '.$sIpolHnr;
if (CONST_Use_US_Tiger_Data) { if (CONST_Use_US_Tiger_Data) {