X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e686ce868062a70acfbdddc68c8f4384789f0a40..f9c43137c91f8e782b5667bc83f7a9af1f755ca2:/lib/output.php
diff --git a/lib/output.php b/lib/output.php
index 58f00091..8de81576 100644
--- a/lib/output.php
+++ b/lib/output.php
@@ -9,33 +9,10 @@ function formatOSMType($sType, $bIncludeExternal = true)
if (!$bIncludeExternal) return '';
- if ($sType == 'T') return 'tiger';
+ if ($sType == 'T') return 'way';
if ($sType == 'I') return 'way';
- return '';
-}
+ // not handled: P, L
-function osmLink($aFeature, $sRefText = false)
-{
- $sOSMType = formatOSMType($aFeature['osm_type'], false);
- if ($sOSMType) {
- return ''.$sOSMType.' '.($sRefText?$sRefText:$aFeature['osm_id']).'';
- }
return '';
}
-
-function wikipediaLink($aFeature)
-{
- if ($aFeature['wikipedia']) {
- list($sLanguage, $sArticle) = explode(':', $aFeature['wikipedia']);
- return ''.$aFeature['wikipedia'].'';
- }
- return '';
-}
-
-function detailsLink($aFeature, $sTitle = false)
-{
- if (!$aFeature['place_id']) return '';
-
- return ''.($sTitle?$sTitle:$aFeature['place_id']).'';
-}