]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
FAQ: more answers regarding nominatim.so file permissions
[nominatim.git] / lib / Geocode.php
index 948cc0a65c7dfadaf2bd6891dc0d4d30e9da1a17..a991914eb11662445745794b9495fecfd0cb8d54 100644 (file)
@@ -250,8 +250,9 @@ class Geocode
         $this->oPlaceLookup->setIncludeAddressDetails(false);
         $this->oPlaceLookup->setIncludePolygonAsPoints($oParams->getBool('polygon'));
 
-        if ($oParams->getString('format', '') == 'geocodejson') {
-            $this->oPlaceLookup->setAddressDetails(true);
+        if ($this->bIncludeAddressDetails
+            && $oParams->getString('format', '') == 'geocodejson'
+           ) {
             $this->oPlaceLookup->setAddressAdminLevels(true);
         }
     }