X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ff2a40b109f7431c810610c2c350881d07e358e4..49dc62201c1960f0d4279a440c1c29919b3d21b8:/lib/SearchContext.php?ds=sidebyside diff --git a/lib/SearchContext.php b/lib/SearchContext.php index b0ff38d8..c0ae9032 100644 --- a/lib/SearchContext.php +++ b/lib/SearchContext.php @@ -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 + ); + } }