cleanup of SQL for readability. No logic change

This commit is contained in:
marc tobias
2016-10-30 13:57:48 +01:00
committed by Sarah Hoffmann
parent 4f3074e538
commit eb79e655e6
3 changed files with 27 additions and 2 deletions

View File

@@ -69,6 +69,11 @@ if (CONST_Use_US_Tiger_Data) {
if ($iParentPlaceID) $iPlaceID = $iParentPlaceID;
}
// interpolated house numbers
$iParentPlaceID = chksql($oDB->getOne('SELECT parent_place_id FROM location_property_osmline WHERE place_id = '.$iPlaceID));
if ($iParentPlaceID) $iPlaceID = $iParentPlaceID;
if (CONST_Use_Aux_Location_data) {
$iParentPlaceID = chksql($oDB->getOne('SELECT parent_place_id FROM location_property_aux WHERE place_id = '.$iPlaceID));
if ($iParentPlaceID) $iPlaceID = $iParentPlaceID;