]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
refactor ReverseGeocode
[nominatim.git] / website / reverse.php
index 0e0f2ff84965962998a9804c20e05e8e74d0fbfd..07ef2d745b1d9517def19a83068068d964983c31 100755 (executable)
        else if ($fLat !== false && $fLon !==false)
        {
                $oReverseGeocode = new ReverseGeocode($oDB);
        else if ($fLat !== false && $fLon !==false)
        {
                $oReverseGeocode = new ReverseGeocode($oDB);
-               $oReverseGeocode->setLanguagePreference($aLangPrefOrder);
-
-               $oReverseGeocode->setLatLon($fLat, $fLon);
                $oReverseGeocode->setZoom(getParamInt('zoom', 18));
 
                $oReverseGeocode->setZoom(getParamInt('zoom', 18));
 
-               $aLookup = $oReverseGeocode->lookup();
+               $aLookup = $oReverseGeocode->lookup($fLat, $fLon);
                if (CONST_Debug) var_dump($aLookup);
        }
        else if ($sOutputFormat != 'html')
                if (CONST_Debug) var_dump($aLookup);
        }
        else if ($sOutputFormat != 'html')