X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6a7e0d652b1d40a397e1c1386d500101796676c4..3734f1d0b84c642ba89b5a4c39bac845f5627be7:/lib-php/template/address-json.php diff --git a/lib-php/template/address-json.php b/lib-php/template/address-json.php index 691d6a74..0766eaf4 100644 --- a/lib-php/template/address-json.php +++ b/lib-php/template/address-json.php @@ -1,21 +1,37 @@ getAddressNames(); } - if (isset($aPlace['sExtraTags'])) $aFilteredPlaces['extratags'] = $aPlace['sExtraTags']; - if (isset($aPlace['sNameDetails'])) $aFilteredPlaces['namedetails'] = $aPlace['sNameDetails']; + if (isset($aPlace['sExtraTags'])) { + $aFilteredPlaces['extratags'] = $aPlace['sExtraTags']; + } + if (isset($aPlace['sNameDetails'])) { + $aFilteredPlaces['namedetails'] = $aPlace['sNameDetails']; + } if (isset($aPlace['aBoundingBox'])) { $aFilteredPlaces['boundingbox'] = $aPlace['aBoundingBox']; } if (isset($aPlace['asgeojson'])) { - $aFilteredPlaces['geojson'] = json_decode($aPlace['asgeojson']); + $aFilteredPlaces['geojson'] = json_decode($aPlace['asgeojson'], true); } if (isset($aPlace['assvg'])) {