mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-27 10:43:02 +03:00
fix bug in Geocode.php
This commit is contained in:
parent
db719d489f
commit
2ba9c11dd0
@ -1335,7 +1335,7 @@
|
||||
$aOrder[0] .= " and transliteration(housenumber) ~* E'".$sHouseNumberRegex."' limit 1) ";
|
||||
// also housenumbers from interpolation lines table are needed
|
||||
$aOrder[0] .= " or exists(select place_id from location_property_osmline where parent_place_id = search_name.place_id";
|
||||
$aOrder[0] .= " and ".$aSearch['sHouseNumber'].">=startnumber and ".$aSearch['sHouseNumber']."<=endnumber limit 1)";
|
||||
$aOrder[0] .= " and ".intval($aSearch['sHouseNumber']).">=startnumber and ".intval($aSearch['sHouseNumber'])."<=endnumber limit 1)";
|
||||
$aOrder[0] .= " desc";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user