]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-jsonv2.php
do not allow importance to become 0
[nominatim.git] / lib / template / search-jsonv2.php
index 35538797184808477ae7b96d9f33e7a69bac66bd..5d2802afe60b36f8d5351410832adaf5a9feb4bf 100644 (file)
@@ -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'];
         }