".$sTitle."\n"; } function osm_link($aFeature) { $sOSMType = ($aFeature['osm_type'] == 'N'?'node':($aFeature['osm_type'] == 'W'?'way':($aFeature['osm_type'] == 'R'?'relation':''))); if ($sOSMType) { return ''.$sOSMType.' '.$aFeature['osm_id'].''; } return ''; } function wikipedia_link($aFeature) { if ($aFeature['wikipedia']) { list($sWikipediaLanguage,$sWikipediaArticle) = explode(':',$aFeature['wikipedia']); return ''.$aFeature['wikipedia'].''; } return ''; } function nominatim_link($aFeature, $sTitle) { return ''.$sTitle.''; } function format_distance($fDistance) { // $fDistance is in meters if ($fDistance < 1) { return '0'; } elseif ($fDistance < 1000) { return'~'.(round($fDistance,0)).' m'; } else { return'~'.(round($fDistance/1000,1)).' km'; } } function kv($sKey,$sValue) { echo '
'.$sKey.' | '.$sValue.' |
Local name | Type | OSM | Admin level | Distance |
There are more child objects which are not shown.
'; } } // headline('Other Parts'); // headline('Linked To'); ?>