]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/query.php
details page: differentiate between spheric distance and distance in meters
[nominatim.git] / utils / query.php
index 9694bbb95618f17641bda3f4f4cc81c24ab776c4..f8047ffcf2ec84f2ed36877f90238b424db630fa 100644 (file)
@@ -25,7 +25,9 @@ $aCMDOptions
   );
 getCmdOpt($_SERVER['argv'], $aCMDOptions, $aCMDResult, true, true);
 
-$oDB =& getDB();
+$oDB = new Nominatim\DB;
+$oDB->connect();
+
 $oParams = new Nominatim\ParameterParser($aCMDResult);
 
 if ($oParams->getBool('search')) {