X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/86ca377b1a1505c7a599746c095bc83156e3997d..e4963256e1769cf56187d12c0b26b8be61e69b75:/lib/template/address-xml.php
diff --git a/lib/template/address-xml.php b/lib/template/address-xml.php
index ba085eea..109e66a1 100644
--- a/lib/template/address-xml.php
+++ b/lib/template/address-xml.php
@@ -27,6 +27,40 @@
if ($aPlace['ref']) echo ' ref="'.htmlspecialchars($aPlace['ref']).'"';
if (isset($aPlace['lat'])) echo ' lat="'.htmlspecialchars($aPlace['lat']).'"';
if (isset($aPlace['lon'])) echo ' lon="'.htmlspecialchars($aPlace['lon']).'"';
+ if (isset($aPlace['aBoundingBox']))
+ {
+ echo ' boundingbox="';
+ echo join(',', $aPlace['aBoundingBox']);
+ echo '"';
+
+ if ($bAsPoints && isset($aPlace['aPolyPoints']))
+ {
+ echo ' polygonpoints=\'';
+ echo json_encode($aPlace['aPolyPoints']);
+ echo '\'';
+ }
+ }
+
+ if (isset($aPlace['asgeojson']))
+ {
+ echo ' geojson=\'';
+ echo $aPlace['asgeojson'];
+ echo '\'';
+ }
+
+ if (isset($aPlace['assvg']))
+ {
+ echo ' geosvg=\'';
+ echo $aPlace['assvg'];
+ echo '\'';
+ }
+
+ if (isset($aPlace['astext']))
+ {
+ echo ' geotext=\'';
+ echo $aPlace['astext'];
+ echo '\'';
+ }
echo ">".htmlspecialchars($aPlace['langaddress'])."";
if (isset($aPlace['aAddress']))
@@ -47,9 +81,7 @@
echo "";
foreach ($aPlace['sExtraTags'] as $sKey => $sValue)
{
- echo '';
- echo htmlspecialchars($sValue);
- echo "";
+ echo '';
}
echo "";
}
@@ -59,12 +91,20 @@
echo "";
foreach ($aPlace['sNameDetails'] as $sKey => $sValue)
{
- echo '';
+ echo '';
echo htmlspecialchars($sValue);
echo "";
}
echo "";
}
+
+ if (isset($aPlace['askml']))
+ {
+ echo "\n";
+ echo $aPlace['askml'];
+ echo "";
+ }
+
}
echo "";