]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
move ClassTypes into own namespace
[nominatim.git] / website / reverse.php
index 3c3824eb1526355d96fa5db040bb2629fda4352f..2e03acaedec04cf02b5e8b71359cb729898b5f9a 100755 (executable)
@@ -24,7 +24,7 @@ $hLog = logStart($oDB, 'reverse', $_SERVER['QUERY_STRING'], $aLangPrefOrder);
 $oPlaceLookup = new Nominatim\PlaceLookup($oDB);
 $oPlaceLookup->loadParamArray($oParams);
 if ($sOutputFormat == 'geocodejson') {
-    $oPlaceLookup->setAddressDetails(true);
+    $oPlaceLookup->setIncludeAddressDetails(true);
     $oPlaceLookup->setAddressAdminLevels(true);
 }
 
@@ -54,12 +54,13 @@ if ($sOsmType && $iOsmId > 0) {
 }
 
 if (isset($aPlace)) {
-    $fRadius = $fDiameter = getResultDiameter($aPlace);
     $aOutlineResult = $oPlaceLookup->getOutlines(
         $aPlace['place_id'],
         $aPlace['lon'],
         $aPlace['lat'],
-        $fRadius
+        Nominatim\ClassTypes\getProperty($aPlace, 'defdiameter', 0.0001),
+        $fLat,
+        $fLon
     );
 
     if ($aOutlineResult) {