X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8286abbeb479a18df7b560daccad7673e3f77297..e4963256e1769cf56187d12c0b26b8be61e69b75:/lib/template/address-xml.php
diff --git a/lib/template/address-xml.php b/lib/template/address-xml.php
index 9eeb3b77..109e66a1 100644
--- a/lib/template/address-xml.php
+++ b/lib/template/address-xml.php
@@ -27,9 +27,44 @@
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 ($bShowAddressDetails) {
+ if (isset($aPlace['aAddress']))
+ {
echo "";
foreach($aPlace['aAddress'] as $sKey => $sValue)
{
@@ -40,6 +75,36 @@
}
echo "";
}
+
+ if (isset($aPlace['sExtraTags']))
+ {
+ echo "";
+ foreach ($aPlace['sExtraTags'] as $sKey => $sValue)
+ {
+ echo '';
+ }
+ echo "";
+ }
+
+ if (isset($aPlace['sNameDetails']))
+ {
+ echo "";
+ foreach ($aPlace['sNameDetails'] as $sKey => $sValue)
+ {
+ echo '';
+ echo htmlspecialchars($sValue);
+ echo "";
+ }
+ echo "";
+ }
+
+ if (isset($aPlace['askml']))
+ {
+ echo "\n";
+ echo $aPlace['askml'];
+ echo "";
+ }
+
}
echo "";