X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c9d51fe7b8c915e898d95af57dc2c013b9cf84a0..d396505786ce3be105249c740e0d3365beb4ef10:/lib/template/details-html.php
diff --git a/lib/template/details-html.php b/lib/template/details-html.php
index eca76c7e..c54c3c22 100644
--- a/lib/template/details-html.php
+++ b/lib/template/details-html.php
@@ -74,9 +74,12 @@ body {
var proj_map = map.getProjectionObject();
var latlon;
var linearRing = new OpenLayers.Geometry.LinearRing(pointList).transform(proj_EPSG4326, proj_map);;
@@ -111,6 +114,11 @@ foreach($aPolyPoints as $aPolyPoint)
echo '
Coverage: '.($aPointDetails['isarea']=='t'?'Polygon':'Point').'
';
$sOSMType = ($aPointDetails['osm_type'] == 'N'?'node':($aPointDetails['osm_type'] == 'W'?'way':($aPointDetails['osm_type'] == 'R'?'relation':'')));
if ($sOSMType) echo ' ';
+ if ($aPointDetails['wikipedia'])
+ {
+ list($sWikipediaLanguage,$sWikipediaArticle) = explode(':',$aPointDetails['wikipedia']);
+ echo ' ';
+ }
echo ' Extra Tags: ';
foreach($aPointDetails['aExtraTags'] as $sKey => $sValue)
{
@@ -139,7 +147,7 @@ foreach($aPolyPoints as $aPolyPoint)
if ($sOSMType) echo ',
'.$sOSMType.' '.$aAddressLine['osm_id'].'';
echo ',
'.$aAddressLine['admin_level'].'';
echo ',
'.$aAddressLine['rank_search_label'].'';
- echo ',
'.($aAddressLine['fromarea']=='t'?'Polygon':'Point').'';
+// echo ',
'.($aAddressLine['fromarea']=='t'?'Polygon':'Point').'';
echo ',
'.$aAddressLine['distance'].'';
echo '
GOTO';
echo ')';
@@ -147,6 +155,30 @@ foreach($aPolyPoints as $aPolyPoint)
}
echo '
';
+ if ($aLinkedLines)
+ {
+ echo 'Linked Places
';
+ echo '';
+ foreach($aLinkedLines as $aAddressLine)
+ {
+ $sOSMType = ($aAddressLine['osm_type'] == 'N'?'node':($aAddressLine['osm_type'] == 'W'?'way':($aAddressLine['osm_type'] == 'R'?'relation':'')));
+
+ echo '
';
+ echo '
'.(trim($aAddressLine['localname'])?$aAddressLine['localname']:'No Name').'';
+ echo ' (';
+ echo '
Type: '.$aAddressLine['class'].':'.$aAddressLine['type'].'';
+ if ($sOSMType) echo ',
'.$sOSMType.' '.$aAddressLine['osm_id'].'';
+ echo ',
'.$aAddressLine['admin_level'].'';
+ echo ',
'.$aAddressLine['rank_search_label'].'';
+// echo ',
'.($aAddressLine['fromarea']=='t'?'Polygon':'Point').'';
+ echo ',
'.$aAddressLine['distance'].'';
+ echo '
GOTO';
+ echo ')';
+ echo '
';
+ }
+ echo '
';
+ }
+
if ($aPlaceSearchNameKeywords)
{
echo 'Name Keywords
';