X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/c8359181237a3b145ac48b5e58098b36674cd89f..14cef94e615c3ae9b128a115c7d770f0f075b694:/lib/template/search-batch-json.php diff --git a/lib/template/search-batch-json.php b/lib/template/search-batch-json.php index 09ea48b6..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']) && sizeof($aPointDetails['address'])>0) { - $aPlace['address'] = $aPointDetails['address']; + if (isset($aPointDetails['address'])) { + $aPlace['address'] = $aPointDetails['address']->getAddressNames(); } if (isset($aPointDetails['asgeojson'])) {