]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/SearchContext.php
PHP code style: use long array syntax
[nominatim.git] / lib / SearchContext.php
index b0ff38d85c05e70a003968571cfa207445ebd8f8..c0ae903295073b237bb44e19bc30b440ba48f46c 100644 (file)
@@ -267,4 +267,18 @@ class SearchContext
 
         return '';
     }
+
+    public function debugInfo()
+    {
+        return array(
+                'Near radius' => $this->fNearRadius,
+                'Near point (SQL)' => $this->sqlNear,
+                'Bounded viewbox' => $this->bViewboxBounded,
+                'Viewbox (SQL, small)' => $this->sqlViewboxSmall,
+                'Viewbox (SQL, large)' => $this->sqlViewboxLarge,
+                'Viewbox (SQL, centre)' => $this->sqlViewboxCentre,
+                'Countries (SQL)' => $this->sqlCountryList,
+                'Excluded IDs (SQL)' => $this->sqlExcludeList
+               );
+    }
 }