summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-10 16:15:05 -0500
committerEvan Prodromou <evan@status.net>2009-11-10 16:15:05 -0500
commitcb64cfb44c7bf08f113444ccdde4b9a4b7fa6808 (patch)
treedba89e5372a57166a8788ad4e3f65ea25fcb212d /classes
parent27e6a3f36fb9a41d316bdd4fccd5e98c7a3e9ddc (diff)
add geo output to statuses in json, xml, atom, rss in API
Diffstat (limited to 'classes')
-rw-r--r--classes/Notice.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 9886875cb..291e6202b 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -1254,6 +1254,12 @@ class Notice extends Memcached_DataObject
}
}
+ if (!empty($this->lat) && !empty($this->lon)) {
+ $xs->elementStart('geo', array('xmlns:georss' => 'http://www.georss.org/georss'));
+ $xs->element('georss:point', null, $this->lat . ' ' . $this->lon);
+ $xs->elementEnd('geo');
+ }
+
$xs->elementEnd('entry');
return $xs->getString();