mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-15 15:34:07 +00:00
adapt to code style conventions
This commit is contained in:
@@ -467,7 +467,7 @@
|
||||
if (!$this->bDeDupe) $sSQL .= ", place_id ";
|
||||
|
||||
$sSQL .= " union ";
|
||||
$sSQL .= "select 'L' as osm_type,place_id as osm_id,'place' as class,'house' as type,null as admin_level,30 as rank_search,30 as rank_address,min(place_id) as place_id, min(parent_place_id) as parent_place_id,'us' as country_code,";
|
||||
$sSQL .= "select 'L' as osm_type, place_id as osm_id, 'place' as class, 'house' as type, null as admin_level, 0 as rank_search, 0 as rank_address, min(place_id) as place_id, min(parent_place_id) as parent_place_id, 'us' as country_code, ";
|
||||
$sSQL .= "get_address_by_language(place_id, -1, $sLanguagePrefArraySQL) as langaddress, ";
|
||||
$sSQL .= "null as placename, ";
|
||||
$sSQL .= "null as ref, ";
|
||||
@@ -1446,7 +1446,6 @@
|
||||
$searchedHousenumber = intval($aSearch['sHouseNumber']);
|
||||
if (!sizeof($aPlaceIDs))
|
||||
{
|
||||
//$sSQL = "select place_id from location_property_tiger where parent_place_id in (".$sPlaceIDs.") and housenumber = '".pg_escape_string($aSearch['sHouseNumber'])."'";
|
||||
//new query for lines, not housenumbers anymore
|
||||
if($searchedHousenumber%2==0){
|
||||
//if housenumber is even, look for housenumber in streets with interpolationtype even or all
|
||||
@@ -1480,7 +1479,7 @@
|
||||
|
||||
if ($aSearch['sClass'] && sizeof($aPlaceIDs))
|
||||
{
|
||||
$sPlaceIDs = join(',',$aPlaceIDs);
|
||||
$sPlaceIDs = join(',', aPlaceIDs);
|
||||
$aClassPlaceIDs = array();
|
||||
|
||||
if (!$aSearch['sOperator'] || $aSearch['sOperator'] == 'name')
|
||||
|
||||
Reference in New Issue
Block a user