X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/27406c8daa514a6b03480972f393d32b709cb315..797c2d1e74a14d8d52d963f1efad9be53fca5f5f:/lib/template/details-html.php?ds=inline
diff --git a/lib/template/details-html.php b/lib/template/details-html.php
index 404450c0..71fcc7b3 100644
--- a/lib/template/details-html.php
+++ b/lib/template/details-html.php
@@ -7,7 +7,6 @@
-
".$sTitle." | \n";
}
- function osm_link($aFeature)
- {
- $sOSMType = ($aFeature['osm_type'] == 'N'?'node':($aFeature['osm_type'] == 'W'?'way':($aFeature['osm_type'] == 'R'?'relation':'')));
- if ($sOSMType)
- {
- return ''.$sOSMType.' '.$aFeature['osm_id'].'';
- }
- return '';
- }
-
- function wikipedia_link($aFeature)
- {
- if ($aFeature['wikipedia'])
- {
- list($sWikipediaLanguage,$sWikipediaArticle) = explode(':',$aFeature['wikipedia']);
- return ''.$aFeature['wikipedia'].'';
- }
- return '';
- }
-
- function nominatim_link($aFeature, $sTitle)
- {
- return ''.$sTitle.'';
- }
function format_distance($fDistance)
{
@@ -78,18 +53,6 @@
return $sHTML;
}
- // function hash_to_subtable($aAssociatedList)
- // {
- // $sHTML = '';
- // foreach($aAssociatedList as $sKey => $sValue)
- // {
- // $sHTML = $sHTML . ''.$sKey.' | '.$sValue.' |
'."\n";
- // }
- // $sHTML = $sHTML . '
';
- // return $sHTML;
- // }
-
-
function map_icon($sIcon)
{
if ($sIcon){
@@ -104,12 +67,10 @@
echo ''."\n";
echo ' '.(trim($aAddressLine['localname'])?$aAddressLine['localname']:'No Name')." | \n";
echo ' ' . $aAddressLine['class'].':'.$aAddressLine['type'] . " | \n";
- echo ' ' . osm_link($aAddressLine) . " | \n";
+ echo ' ' . osmLink($aAddressLine) . " | \n";
echo ' ' . (isset($aAddressLine['admin_level']) ? $aAddressLine['admin_level'] : '') . " | \n";
- // echo '' . (isset($aAddressLine['rank_search_label']) ? $aAddressLine['rank_search_label'] : '') ." | \n";
- // echo ', '.($aAddressLine['fromarea']=='t'?'Polygon':'Point').'';
echo ' ' . format_distance($aAddressLine['distance'])." | \n";
- echo ' ' . nominatim_link($aAddressLine,'details >') . " | \n";
+ echo ' ' . detailsLink($aAddressLine,'details >') . " | \n";
echo "
\n";
}
@@ -121,7 +82,7 @@
echo $keyword_token;
if (isset($word_id))
{
- echo '('.$word_id.')';
+ echo ' | word id: '.$word_id;
}
echo " | \n";
}
@@ -157,10 +118,10 @@
}
kv('Coverage' , ($aPointDetails['isarea']=='t'?'Polygon':'Point') );
kv('Centre Point' , $aPointDetails['lat'].','.$aPointDetails['lon'] );
- kv('OSM' , osm_link($aPointDetails) );
+ kv('OSM' , osmLink($aPointDetails) );
if ($aPointDetails['wikipedia'])
{
- kv('Wikipedia Calculated' , wikipedia_link($aPointDetails) );
+ kv('Wikipedia Calculated' , wikipediaLink($aPointDetails) );
}
kv('Extra Tags' , hash_to_subtable($aPointDetails['aExtraTags']) );
@@ -187,7 +148,6 @@
Type |
OSM |
Admin level |
-
Distance |
|
@@ -222,7 +182,7 @@
headline('Name Keywords');
foreach($aPlaceSearchNameKeywords as $aRow)
{
- _one_keyword_row($aRow['word_token']);
+ _one_keyword_row($aRow['word_token'], $aRow['word_id']);
}
}
@@ -264,9 +224,6 @@
}
}
- // headline('Other Parts');
- // headline('Linked To');
-
echo "\n";
?>
@@ -277,17 +234,17 @@