X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f05ea577f42c5ad4a62ff25ec62fbb60c550ee26..62b60c70e6eb6b5752df621bf07ef016eb7d994a:/lib/output.php
diff --git a/lib/output.php b/lib/output.php
index 0a548500..9d4b7502 100644
--- a/lib/output.php
+++ b/lib/output.php
@@ -1,6 +1,7 @@
'.$aFeature['wikipedia'].'';
}
return '';
}
-function detailsLink($aFeature, $sTitle=false)
+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 '';
+}