aboutsummaryrefslogtreecommitdiff
path: root/views/rss/object/georss.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/rss/object/georss.php')
-rw-r--r--views/rss/object/georss.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/views/rss/object/georss.php b/views/rss/object/georss.php
new file mode 100644
index 000000000..8aa027519
--- /dev/null
+++ b/views/rss/object/georss.php
@@ -0,0 +1,10 @@
+<?php
+/**
+ *
+ */
+
+if (($vars['entity'] instanceof Locatable) &&
+ ($latitude = $vars['entity']->getLongitude()) && ($longitude = $vars['entity']->getLatitude())
+) {
+ echo "<georss:point>$latitude $longitude</georss:point>";
+} \ No newline at end of file