X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5ccb499a6f389913fe8c8c745a31dff40907b98c..d01d0c13f4d51ddcff2be065f330278516c0c458:/website/hierarchy.php?ds=sidebyside diff --git a/website/hierarchy.php b/website/hierarchy.php index 5e3d7299..6a281aa8 100755 --- a/website/hierarchy.php +++ b/website/hierarchy.php @@ -47,13 +47,13 @@ $iPlaceID = (int)$_GET['place_id']; - $sAuxHouseNumber = false; - $iParentPlaceID = $oDB->getOne('select parent_place_id from location_property_tiger where place_id = '.$iPlaceID); - if ($iParentPlaceID) + if (CONST_Use_US_Tiger_Data) { - $iPlaceID = $iParentPlaceID; + $iParentPlaceID = $oDB->getOne('select parent_place_id from location_property_tiger where place_id = '.$iPlaceID); + if ($iParentPlaceID) $iPlaceID = $iParentPlaceID; } - else + + if (CONST_Use_Aux_Location_data) { $iParentPlaceID = $oDB->getOne('select parent_place_id from location_property_aux where place_id = '.$iPlaceID); if ($iParentPlaceID) $iPlaceID = $iParentPlaceID;