'.$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);
if ($sOSMType) {
$sLabel = $sRefText ? $sRefText : $sOSMType.' '.$aFeature['osm_id'];
return ''.$sLabel.'';
}
return detailsLink($aFeature, $sRefText);
}