+ if ($aLookup)
+ {
+ $oPlaceLookup = new PlaceLookup($oDB);
+ $oPlaceLookup->setLanguagePreference($aLangPrefOrder);
+ $oPlaceLookup->setIncludeAddressDetails(getParamBool('addressdetails', true));
+ $oPlaceLookup->setIncludeExtraTags(getParamBool('extratags', false));
+ $oPlaceLookup->setIncludeNameDetails(getParamBool('namedetails', false));
+
+ $aPlace = $oPlaceLookup->lookupPlace($aLookup);
+ }
+ else
+ {
+ $aPlace = null;
+ }
+
+ logEnd($oDB, $hLog, sizeof($aPlace)?1:0);
+
+ if (CONST_Debug)
+ {
+ var_dump($aPlace);
+ exit;
+ }