]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
refactor ReverseGeocode
[nominatim.git] / lib / Geocode.php
index 2d246d98ae16b8209596de6ed470e88a95890c99..ce77862b8004086520b55f738d0756c252cd9c59 100644 (file)
                        {
                                // Just interpret as a reverse geocode
                                $oReverse = new ReverseGeocode($this->oDB);
-                               $oReverse->setLatLon((float)$this->aNearPoint[0], (float)$this->aNearPoint[1]);
                                $oReverse->setZoom(18);
 
-                               $aLookup = $oReverse->lookup(false);
+                               $aLookup = $oReverse->lookup((float)$this->aNearPoint[0],
+                                                            (float)$this->aNearPoint[1],
+                                                            false);
 
                                if (CONST_Debug) var_dump("Reverse search", $aLookup);