mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 22:04:07 +00:00
adapt to code style conventions
This commit is contained in:
@@ -465,7 +465,7 @@
|
|||||||
if (!$this->bDeDupe) $sSQL .= ", place_id ";
|
if (!$this->bDeDupe) $sSQL .= ", place_id ";
|
||||||
|
|
||||||
$sSQL .= " union ";
|
$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 .= "get_address_by_language(place_id, -1, $sLanguagePrefArraySQL) as langaddress, ";
|
||||||
$sSQL .= "null as placename, ";
|
$sSQL .= "null as placename, ";
|
||||||
$sSQL .= "null as ref, ";
|
$sSQL .= "null as ref, ";
|
||||||
@@ -1444,7 +1444,6 @@
|
|||||||
$searchedHousenumber = intval($aSearch['sHouseNumber']);
|
$searchedHousenumber = intval($aSearch['sHouseNumber']);
|
||||||
if (!sizeof($aPlaceIDs))
|
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
|
//new query for lines, not housenumbers anymore
|
||||||
if($searchedHousenumber%2==0){
|
if($searchedHousenumber%2==0){
|
||||||
//if housenumber is even, look for housenumber in streets with interpolationtype even or all
|
//if housenumber is even, look for housenumber in streets with interpolationtype even or all
|
||||||
@@ -1478,7 +1477,7 @@
|
|||||||
|
|
||||||
if ($aSearch['sClass'] && sizeof($aPlaceIDs))
|
if ($aSearch['sClass'] && sizeof($aPlaceIDs))
|
||||||
{
|
{
|
||||||
$sPlaceIDs = join(',',$aPlaceIDs);
|
$sPlaceIDs = join(',', aPlaceIDs);
|
||||||
$aClassPlaceIDs = array();
|
$aClassPlaceIDs = array();
|
||||||
|
|
||||||
if (!$aSearch['sOperator'] || $aSearch['sOperator'] == 'name')
|
if (!$aSearch['sOperator'] || $aSearch['sOperator'] == 'name')
|
||||||
|
|||||||
Reference in New Issue
Block a user