X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6a7e0d652b1d40a397e1c1386d500101796676c4..82dbcbb12a1285e7b345e232196b02b9cae35f9a:/lib-php/template/search-geocodejson.php?ds=sidebyside diff --git a/lib-php/template/search-geocodejson.php b/lib-php/template/search-geocodejson.php index 3e3a31c4..b8727719 100644 --- a/lib-php/template/search-geocodejson.php +++ b/lib-php/template/search-geocodejson.php @@ -1,4 +1,12 @@ $aPointDetails) { @@ -9,7 +17,9 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) { ) ); - if (isset($aPointDetails['place_id'])) $aPlace['properties']['geocoding']['place_id'] = $aPointDetails['place_id']; + if (isset($aPointDetails['place_id'])) { + $aPlace['properties']['geocoding']['place_id'] = $aPointDetails['place_id']; + } $sOSMType = formatOSMType($aPointDetails['osm_type']); if ($sOSMType) { $aPlace['properties']['geocoding']['osm_type'] = $sOSMType;