]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
fix structured and batch mode. Add constant to disable batch mode by default
[nominatim.git] / website / search.php
index 22a1c7c0605e7713fb3834d2fe6f4515de7ffad0..b87f60e071aa8674cd46252b59e65576da35c377 100755 (executable)
                        }
                        exit;
                }
-               $oGeocode->setIncludePolygonAsText($bAsPoints);
+               $oGeocode->setIncludePolygonAsPoints($bAsPoints);
                $oGeocode->setIncludePolygonAsText($bAsText);
                $oGeocode->setIncludePolygonAsGeoJSON($bAsGeoJSON);
                $oGeocode->setIncludePolygonAsKML($bAsKML);
 
        loadParamsToGeocode($oGeocode, $_GET, false);
 
-       if (isset($_GET['batch']))
+       if (CONST_Search_BatchMode && isset($_GET['batch']))
        {
                $aBatch = json_decode($_GET['batch'], true);
                $aBatchResults = array();