mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 10:27:57 +00:00
fix inconsistency between getNearestNamendRoadFeature() and house number search
This commit is contained in:
@@ -941,7 +941,7 @@
|
||||
}
|
||||
}
|
||||
if ($aSearch['sCountryCode']) $aTerms[] = "country_code = '".pg_escape_string($aSearch['sCountryCode'])."'";
|
||||
if ($aSearch['sHouseNumber']) $aTerms[] = "address_rank in (26,27)";
|
||||
if ($aSearch['sHouseNumber']) $aTerms[] = "address_rank between 22 and 27";
|
||||
if ($aSearch['fLon'] && $aSearch['fLat'])
|
||||
{
|
||||
$aTerms[] = "ST_DWithin(centroid, ST_SetSRID(ST_Point(".$aSearch['fLon'].",".$aSearch['fLat']."),4326), ".$aSearch['fRadius'].")";
|
||||
|
||||
Reference in New Issue
Block a user