X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2a784fa3d4533d11e3227f868085dcee5a9870c6..f45b3fa3f243de8894c03d8c9377157d01092c8c:/lib/output.php?ds=sidebyside diff --git a/lib/output.php b/lib/output.php index 983e3440..9d4b7502 100644 --- a/lib/output.php +++ b/lib/output.php @@ -1,5 +1,6 @@ '.($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 ''; +}