'.$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, $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);
}