<?php
-function formatOSMType($sType, $bIncludeExternal=true)
+function formatOSMType($sType, $bIncludeExternal = true)
{
if ($sType == 'N') return 'node';
if ($sType == 'W') return 'way';
return '';
}
-function osmLink($aFeature, $sRefText=false)
+function osmLink($aFeature, $sRefText = false)
{
$sOSMType = formatOSMType($aFeature['osm_type'], false);
if ($sOSMType) {
function wikipediaLink($aFeature)
{
if ($aFeature['wikipedia']) {
- list($sLanguage, $sArticle) = explode(':',$aFeature['wikipedia']);
+ list($sLanguage, $sArticle) = explode(':', $aFeature['wikipedia']);
return '<a href="https://'.$sLanguage.'.wikipedia.org/wiki/'.urlencode($sArticle).'" target="_blank">'.$aFeature['wikipedia'].'</a>';
}
return '';
}
-function detailsLink($aFeature, $sTitle=false)
+function detailsLink($aFeature, $sTitle = false)
{
if (!$aFeature['place_id']) return '';