]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-json.php
Merge pull request #910 from mtmail/shorten-line-in-update-php
[nominatim.git] / lib / template / search-json.php
index ee2b4bd280b99e0d6df1dd9e45ee27226dde9202..846d654c5e3b5fb5da8b317ccb5cf9319d03a268 100644 (file)
@@ -6,7 +6,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://www.openstreetmap.org/copyright",
         );
     
     $sOSMType = formatOSMType($aPointDetails['osm_type']);
@@ -20,7 +20,7 @@ foreach($aSearchResults as $iResNum => $aPointDetails)
     {
         $aPlace['boundingbox'] = $aPointDetails['aBoundingBox'];
 
-        if (isset($aPointDetails['aPolyPoints']) && $bShowPolygons)
+        if (isset($aPointDetails['aPolyPoints']))
         {
             $aPlace['polygonpoints'] = $aPointDetails['aPolyPoints'];
         }