X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/320d488627b1a5674458cbef644c6731882b2a23..414e6f089fc361ac22e28227be2d34a256226505:/website/hierarchy.php?ds=sidebyside diff --git a/website/hierarchy.php b/website/hierarchy.php old mode 100755 new mode 100644 index bfc0eebb..419a0474 --- a/website/hierarchy.php +++ b/website/hierarchy.php @@ -1,10 +1,8 @@ setLanguagePreference($aLangPrefOrder); -$oPlaceLookup->setIncludeAddressDetails(true); -$aPlaceAddress = array_reverse($oPlaceLookup->getAddressDetails($iPlaceID)); +$oAddressLookup = new AddressDetails($oDB, $iPlaceID, -1, $aLangPrefOrder); +$aPlaceAddress = array_reverse($oAddressLookup->getAddressDetails()); if (empty($aPlaceAddress)) userError('Unknown place id.'); @@ -106,7 +102,7 @@ if (!empty($aParentOfLines)) { foreach ($aParentOfLines as $aAddressLine) { $aAddressLine['label'] = Nominatim\ClassTypes\getProperty($aAddressLine, 'label'); if (!$aAddressLine['label']) { - $aAddressLine['label'] = ucwords($aAddressLine['type']); + $aAddressLine['label'] = ucwords($aAddressLine['type']); } if (!isset($aGroupedAddressLines[$aAddressLine['label']])) $aGroupedAddressLines[$aAddressLine['label']] = array();