X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2613ebfa0143cdd1e3220577d48d9aa8341dbf38..b2f8fb620175157d97254a4163f6c5bba62199db:/lib/output.php diff --git a/lib/output.php b/lib/output.php index 9d4b7502..8de81576 100644 --- a/lib/output.php +++ b/lib/output.php @@ -12,41 +12,7 @@ function formatOSMType($sType, $bIncludeExternal = true) if ($sType == 'T') return 'way'; if ($sType == 'I') return 'way'; - return ''; -} - -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']).''; -} - -function detailsPermaLink($aFeature, $sRefText = false) -{ - $sOSMType = formatOSMType($aFeature['osm_type'], false); + // not handled: P, L - if ($sOSMType) { - $sLabel = $sRefText ? $sRefText : $sOSMType.' '.$aFeature['osm_id']; - return ''.$sLabel.''; - } return ''; }