X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0c714f12b4137017e842a10cda0f47839a84dfb9..9c0ca064b833ad39eac8ffc2447331d732d1a7d0:/lib/template/address-jsonv2.php?ds=sidebyside diff --git a/lib/template/address-jsonv2.php b/lib/template/address-jsonv2.php index 32fe0f13..4e751a0d 100644 --- a/lib/template/address-jsonv2.php +++ b/lib/template/address-jsonv2.php @@ -11,7 +11,7 @@ else { if ($aPlace['place_id']) $aFilteredPlaces['place_id'] = $aPlace['place_id']; - $aFilteredPlaces['licence'] = "Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0."; + $aFilteredPlaces['licence'] = "Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright"; $sOSMType = ($aPlace['osm_type'] == 'N'?'node':($aPlace['osm_type'] == 'W'?'way':($aPlace['osm_type'] == 'R'?'relation':''))); if ($sOSMType) { @@ -26,7 +26,7 @@ $aFilteredPlaces['display_name'] = $aPlace['langaddress']; $aFilteredPlaces['name'] = $aPlace['placename']; - if ($bShowAddressDetails) $aFilteredPlaces['address'] = $aAddress; + if ($bShowAddressDetails && $aAddress && sizeof($aAddress)) $aFilteredPlaces['address'] = $aAddress; } javascript_renderData($aFilteredPlaces);