]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Result.php
move checkModilePresence to class, delete own debug echo
[nominatim.git] / lib / Result.php
index 30c5985444b9cf7c0239e57e1d8557bf3b63a4f5..d69ac62f1f7b28cc731a49146b830a59f0323f05 100644 (file)
@@ -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)
     {