X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/832547f192904a9ec92e173c27a91e0874fcc757..87f68937540b406f35feaa3435f951e7dc6d70ec:/lib/template/search-jsonv2.php diff --git a/lib/template/search-jsonv2.php b/lib/template/search-jsonv2.php index 35538797..5d2802af 100644 --- a/lib/template/search-jsonv2.php +++ b/lib/template/search-jsonv2.php @@ -5,7 +5,7 @@ foreach($aSearchResults as $iResNum => $aPointDetails) { $aPlace = array( 'place_id'=>$aPointDetails['place_id'], - 'licence'=>"Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright", + 'licence'=>"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", ); $sOSMType = formatOSMType($aPointDetails['osm_type']); @@ -19,7 +19,7 @@ foreach($aSearchResults as $iResNum => $aPointDetails) { $aPlace['boundingbox'] = $aPointDetails['aBoundingBox']; - if (isset($aPointDetails['aPolyPoints']) && $bShowPolygons) + if (isset($aPointDetails['aPolyPoints'])) { $aPlace['polygonpoints'] = $aPointDetails['aPolyPoints']; }