diff options
author | Evan Prodromou <evan@status.net> | 2009-11-10 16:15:05 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-11-10 16:15:05 -0500 |
commit | cb64cfb44c7bf08f113444ccdde4b9a4b7fa6808 (patch) | |
tree | dba89e5372a57166a8788ad4e3f65ea25fcb212d /classes/Notice.php | |
parent | 27e6a3f36fb9a41d316bdd4fccd5e98c7a3e9ddc (diff) |
add geo output to statuses in json, xml, atom, rss in API
Diffstat (limited to 'classes/Notice.php')
-rw-r--r-- | classes/Notice.php | 6 |
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(); |