]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-xml.php
update osm2pgsql (conscription number patch)
[nominatim.git] / lib / template / search-xml.php
index 84e177750b020b7c919126517b1fdab4dfb8485f..be05cb40c85b336b44bb241f9b80fac39a0c0c09 100644 (file)
@@ -1,6 +1,5 @@
 <?php
        header("content-type: text/xml; charset=UTF-8");
-       header("Access-Control-Allow-Origin: *");
 
        echo "<";
        echo "?xml version=\"1.0\" encoding=\"UTF-8\" ?";
@@ -82,6 +81,7 @@
 
                echo " class='".htmlspecialchars($aResult['class'])."'";
                echo " type='".htmlspecialchars($aResult['type'])."'";
+               echo " importance='".htmlspecialchars($aResult['importance'])."'";
                if (isset($aResult['icon']) && $aResult['icon'])
                {
                        echo " icon='".htmlspecialchars($aResult['icon'], ENT_QUOTES)."'";
@@ -94,8 +94,9 @@
 
                if (isset($aResult['askml']))
                {
-                       echo "\n";
+                       echo "\n<geokml>";
                        echo $aResult['askml'];
+                       echo "</geokml>";
                }
 
                if (isset($aResult['address']))