]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/lib.php
Merge pull request #802 from mtmail/coordinate-extract-missing-first-minus-sign
[nominatim.git] / lib / lib.php
index 8f353a4d84980ee3e0d7608d2278d15bbe0992aa..fb89c48bfe433d12ab7f3db936dee15758927ace 100644 (file)
@@ -545,8 +545,12 @@ function _debugDumpGroupedSearches($aData, $aTokens)
             echo "<td>".$aRow['sPostcode']."</td>";
             echo "<td>".$aRow['sHouseNumber']."</td>";
 
-            echo "<td>".$aRow['fLat']."</td>";
-            echo "<td>".$aRow['fLon']."</td>";
+            if ($aRow['oNear']) {
+                echo "<td>".$aRow['oNear']->lat()."</td>";
+                echo "<td>".$aRow['oNear']->lon()."</td>";
+            } else {
+                echo "<td></td><td></td>";
+            }
             echo "<td>".$aRow['fRadius']."</td>";
 
             echo "</tr>";