]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/details.php
aux properties, memory leaks, tweaks to search order
[nominatim.git] / website / details.php
index caccd503a39edd04b3b5fcf1626eed0f5d81959a..ea0d41b33a33b4615980cc6f2908836e4640d658 100755 (executable)
 
        $iPlaceID = (int)$_GET['place_id'];
 
+       $iParentPlaceID = $oDB->getOne('select parent_place_id from location_property_tiger where place_id = '.$iPlaceID);
+       if ($iParentPlaceID) $iPlaceID = $iParentPlaceID;
+       $iParentPlaceID = $oDB->getOne('select parent_place_id from location_property_aux where place_id = '.$iPlaceID);
+       if ($iParentPlaceID) $iPlaceID = $iParentPlaceID;
+
        $aLangPrefOrder = getPrefferedLangauges();
        $sLanguagePrefArraySQL = "ARRAY[".join(',',array_map("getDBQuoted",$aLangPrefOrder))."]";