]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-xml.php
return actual centroid lat,lon of reverse geocoding result
[nominatim.git] / lib / template / address-xml.php
index dc9f054855354e10ec556a301403978950f35752..d6061e3df4fff930595df754eb8b4edd045b0958 100644 (file)
@@ -25,6 +25,8 @@
                if ($aPlace['place_id']) echo ' place_id="'.$aPlace['place_id'].'"';\r
                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'].'"';\r
                if ($aPlace['ref']) echo ' ref="'.htmlspecialchars($aPlace['ref']).'"';\r
+               if (isset($aPlace['lat'])) echo ' lat="'.htmlspecialchars($aPlace['lat']).'"';\r
+               if (isset($aPlace['lon'])) echo ' lon="'.htmlspecialchars($aPlace['lon']).'"';\r
                echo ">".htmlspecialchars($aPlace['langaddress'])."</result>";\r
 \r
                echo "<addressparts>";\r