X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/d42aa0870592b36ba9c64eae05a0ceafd2467f4c..14aca11dcd4c9778cac78f14c9c51c6bbe00bf96:/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) {