X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/42f079c35582f95381eee8f7406d3b2054204c51..a0dbeabed1a18e9bedb6cb2a6eed4c2b5fbf45cc:/lib/Result.php diff --git a/lib/Result.php b/lib/Result.php index 30c59854..d69ac62f 100644 --- a/lib/Result.php +++ b/lib/Result.php @@ -27,6 +27,17 @@ class Result /// Subranking within the results (the higher the worse). public $iResultRank = 0; + public function debugInfo() + { + return array( + 'Table' => $this->iTable, + 'ID' => $this->iId, + 'House number' => $this->iHouseNumber, + 'Exact Matches' => $this->iExactMatches, + 'Result rank' => $this->iResultRank + ); + } + public function __construct($sId, $iTable = Result::TABLE_PLACEX) {