X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1787892d32351988231a60b71900c6a623609c54..15a1666f8a1e19c338015fccd502be6cfd5c24df:/lib/template/address-xml.php diff --git a/lib/template/address-xml.php b/lib/template/address-xml.php index 5eddfa3e..ab0bc72c 100644 --- a/lib/template/address-xml.php +++ b/lib/template/address-xml.php @@ -28,6 +28,9 @@ if (empty($aPlace)) { echo join(',', $aPlace['aBoundingBox']); echo '"'; } + echo " place_rank='".$aPlace['rank_search']."'"; + echo " address_rank='".$aPlace['rank_address']."'"; + if (isset($aPlace['asgeojson'])) { echo ' geojson=\''; @@ -48,9 +51,9 @@ if (empty($aPlace)) { } echo '>'.htmlspecialchars($aPlace['langaddress']).''; - if (isset($aPlace['aAddress'])) { + if (isset($aPlace['address'])) { echo ''; - foreach ($aPlace['aAddress'] as $sKey => $sValue) { + foreach ($aPlace['address']->getAddressNames() as $sKey => $sValue) { $sKey = str_replace(' ', '_', $sKey); echo "<$sKey>"; echo htmlspecialchars($sValue);