X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6c1977b448e8b195bf96b6144674ffe0527e79de..1d8e2961f0527a548989c1e38bb062f2f9e5877e:/lib/SearchContext.php diff --git a/lib/SearchContext.php b/lib/SearchContext.php index 3e722d87..c0ae9032 100644 --- a/lib/SearchContext.php +++ b/lib/SearchContext.php @@ -47,7 +47,7 @@ class SearchContext /** * Get radius around reference point. * - * @return float Search radius around refernce point. + * @return float Search radius around reference point. */ public function nearRadius() { @@ -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 + ); + } }