X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/eb0b3bfa4cd74ee9e425c54868a30d8859e694cd..9e35e5c2b02887e361972ffbb20e65bbba0d02c7:/lib/output.php 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 ''; +}