forked from hans/Nominatim
cleanup interface of PlaceLookup
Move lookup parameters (place id, type, frac etc.) from members to parameters for lookup().
This commit is contained in:
@@ -41,7 +41,8 @@
|
||||
$aLookup = $oReverseGeocode->lookup($fLat, $fLon);
|
||||
if ($aLookup && $aLookup['place_id'])
|
||||
{
|
||||
$aDetails = $oPlaceLookup->lookupPlace($aLookup);
|
||||
$aDetails = $oPlaceLookup->lookup((int)$aLookup['place_id'],
|
||||
$aLookup['type'], $aLookup['fraction']);
|
||||
if ($bVerbose) echo $aDetails['langaddress']."\n";
|
||||
}
|
||||
else echo ".";
|
||||
|
||||
Reference in New Issue
Block a user