X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1028c2444cd5789860de283cc77eae914daae503..2eccb0e69dd4e443ec534fb9baa374b76ee7e57f:/lib/template/address-xml.php diff --git a/lib/template/address-xml.php b/lib/template/address-xml.php index dc9f0548..d6061e3d 100644 --- a/lib/template/address-xml.php +++ b/lib/template/address-xml.php @@ -25,6 +25,8 @@ if ($aPlace['place_id']) echo ' place_id="'.$aPlace['place_id'].'"'; if ($aPlace['osm_type'] && $aPlace['osm_id']) echo ' osm_type="'.($aPlace['osm_type']=='N'?'node':($aPlace['osm_type']=='W'?'way':'relation')).'"'.' osm_id="'.$aPlace['osm_id'].'"'; 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']).'"'; echo ">".htmlspecialchars($aPlace['langaddress']).""; echo "";