X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8a615ad96996fb685bf6a45317450ae891bda459..054ea58df11dc3f82563b44d9e1f3a46198b1de7:/lib/template/search-batch-json.php diff --git a/lib/template/search-batch-json.php b/lib/template/search-batch-json.php index 09ea48b6..c4bc29cb 100644 --- a/lib/template/search-batch-json.php +++ b/lib/template/search-batch-json.php @@ -25,10 +25,6 @@ foreach ($aBatchResults as $aSearchResults) { $aPointDetails['aBoundingBox'][2], $aPointDetails['aBoundingBox'][3] ); - - if (isset($aPointDetails['aPolyPoints']) && $bShowPolygons) { - $aPlace['polygonpoints'] = $aPointDetails['aPolyPoints']; - } } if (isset($aPointDetails['zoom'])) { @@ -49,8 +45,8 @@ foreach ($aBatchResults as $aSearchResults) { $aPlace['icon'] = $aPointDetails['icon']; } - if (isset($aPointDetails['address']) && sizeof($aPointDetails['address'])>0) { - $aPlace['address'] = $aPointDetails['address']; + if (isset($aPointDetails['address'])) { + $aPlace['address'] = $aPointDetails['address']->getAddressNames(); } if (isset($aPointDetails['asgeojson'])) {