]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/hierarchy.php
Update Installation.md
[nominatim.git] / website / hierarchy.php
index b14422fa6a80e7ff8a409ecbc8a8dca940b2c4c4..28a56f00938bda7b2382000bf8bfaa9dec761690 100755 (executable)
@@ -57,9 +57,8 @@
        $oPlaceLookup = new PlaceLookup($oDB);
        $oPlaceLookup->setLanguagePreference($aLangPrefOrder);
        $oPlaceLookup->setIncludeAddressDetails(true);
-       $oPlaceLookup->setPlaceId($iPlaceID);
 
-       $aPlaceAddress = array_reverse($oPlaceLookup->getAddressDetails());
+       $aPlaceAddress = array_reverse($oPlaceLookup->getAddressDetails($iPlaceID));
 
        if (!sizeof($aPlaceAddress)) userError("Unknown place id.");