X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1787892d32351988231a60b71900c6a623609c54..aed9d9c85e30b45f3e0ce4d9e3639b8ab0875e77:/lib/template/search-batch-json.php?ds=sidebyside diff --git a/lib/template/search-batch-json.php b/lib/template/search-batch-json.php index 513f3c2b..40b27a72 100644 --- a/lib/template/search-batch-json.php +++ b/lib/template/search-batch-json.php @@ -49,8 +49,8 @@ foreach ($aBatchResults as $aSearchResults) { $aPlace['icon'] = $aPointDetails['icon']; } - if (isset($aPointDetails['address']) && !empty($aPointDetails['address'])) { - $aPlace['address'] = $aPointDetails['address']; + if (isset($aPointDetails['address'])) { + $aPlace['address'] = $aPointDetails['address']->getAddressNames(); } if (isset($aPointDetails['asgeojson'])) {