<?php
header("content-type: text/xml; charset=UTF-8");
- header("Access-Control-Allow-Origin: *");
echo "<";
echo "?xml version=\"1.0\" encoding=\"UTF-8\" ?";
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)."'";
if (isset($aResult['askml']))
{
- echo "\n";
+ echo "\n<geokml>";
echo $aResult['askml'];
+ echo "</geokml>";
}
if (isset($aResult['address']))