]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/details.php
cleanup of SQL for readability. No logic change
[nominatim.git] / website / details.php
index 0b21123dd2f83c97ec234ed01d73eea34f97b92d..0dc3397aa42e6864ef89e6325253eaa53472b34a 100755 (executable)
@@ -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;