nicer formatting for Geocode debug output

This commit is contained in:
Sarah Hoffmann
2018-03-24 17:44:13 +01:00
parent 1787892d32
commit 2c42bda9ce
10 changed files with 305 additions and 48 deletions

View 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
);
}
}