]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/lib.php
add new class for searches
[nominatim.git] / lib / lib.php
index 8f353a4d84980ee3e0d7608d2278d15bbe0992aa..48ed0ffb416dea16e53dba02b8e56a6133e50bd0 100644 (file)
@@ -545,9 +545,13 @@ function _debugDumpGroupedSearches($aData, $aTokens)
             echo "<td>".$aRow['sPostcode']."</td>";
             echo "<td>".$aRow['sHouseNumber']."</td>";
 
-            echo "<td>".$aRow['fLat']."</td>";
-            echo "<td>".$aRow['fLon']."</td>";
-            echo "<td>".$aRow['fRadius']."</td>";
+            if ($aRow['oNear']) {
+                echo "<td>".$aRow['oNear']->lat()."</td>";
+                echo "<td>".$aRow['oNear']->lon()."</td>";
+                echo "<td>".$aRow['oNear']->radius()."</td>";
+            } else {
+                echo "<td></td><td></td><td></td>";
+            }
 
             echo "</tr>";
         }