X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c36fd72f99ce6489b29fa846ec9af650747ab959..504922ffbecd42eed01dfb9da6bbf2c7aae9a094:/lib/output.php diff --git a/lib/output.php b/lib/output.php index 4a15ecde..8de81576 100644 --- a/lib/output.php +++ b/lib/output.php @@ -12,60 +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 ''; -} + // not handled: P, L -function wikipediaLink($aFeature) -{ - if ($aFeature['wikipedia']) { - list($sLanguage, $sArticle) = explode(':', $aFeature['wikipedia']); - return ''.$aFeature['wikipedia'].''; - } return ''; } - -function detailsLink($aFeature, $sTitle = false, $sExtraProperties = false) -{ - if (!$aFeature['place_id']) return ''; - - $sHtml = ''.($sTitle?$sTitle:$aFeature['place_id']).''; - - return $sHtml; -} - -function detailsPermaLink($aFeature, $sRefText = false, $sExtraProperties = false) -{ - $sOSMType = formatOSMType($aFeature['osm_type'], false); - - if ($sOSMType) { - $sHtml = ''; - - if ($sRefText) { - $sHtml .= $sRefText.''; - } else { - $sHtml .= $sOSMType.' '.$aFeature['osm_id'].''; - } - - return $sHtml; - } - return detailsLink($aFeature, $sRefText, $sExtraProperties); -}