X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/80f6aca0c22984b79e24a19bc602258dd3caeb34..f2b2b2b92ca87fdf6ae8fcd7062db76ff4c42f51:/lib-php/template/address-json.php?ds=sidebyside 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'])) {