]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-xml.php
update osm2pgsql to latest version
[nominatim.git] / lib / template / search-xml.php
index 6ceb53cd3be6e25ece4baa1087838f918dd7bdd6..bdf1eab53ae93b19a8f04eca3b7ac83d6e8e4be1 100644 (file)
@@ -8,9 +8,9 @@
 
        echo "<searchresults";
        echo " timestamp='".date(DATE_RFC822)."'";
-       echo " attribution='Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0.'";
+       echo " attribution='Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright'";
        echo " querystring='".htmlspecialchars($sQuery, ENT_QUOTES)."'";
-       if ($sViewBox) echo " viewbox='".htmlspecialchars($sViewBox, ENT_QUOTES)."'";
+       if (isset($sViewBox)) echo " viewbox='".htmlspecialchars($sViewBox, ENT_QUOTES)."'";
        echo " polygon='".($bShowPolygons?'true':'false')."'";
        if (sizeof($aExcludePlaceIDs))
        {
@@ -45,7 +45,7 @@
                        if ($bShowPolygons && isset($aResult['aPolyPoints']))
                        {
                                echo ' polygonpoints=\'';
-                               echo javascript_renderData($aResult['aPolyPoints']);
+                               echo json_encode($aResult['aPolyPoints']);
                                echo '\'';
                        }
                }