Michael Laukner wrote:
Peter Saint-Andre wrote:Michael Laukner wrote:In case of XMPP:<message to="[EMAIL PROTECTED]/balcony" from="[EMAIL PROTECTED]" type="chat"> <body>Juliet, I am at geo:47.123,9.3 and feeling kind of dizzy! </body> <data xmlns='http:://www.xmpp.org/extensions/xep-xxxx.html#ns' alt='A spot' cid='[EMAIL PROTECTED]' uri='geo'> FIXME,FIXME,FIXME </data> </message>Er, don't you really want this...? <message to="[EMAIL PROTECTED]/balcony" from="[EMAIL PROTECTED]/orchard" type="chat"> <body> Juliet, I am at 47.8N,9.3E and feeling kind of dizzy! </body> <html xmlns='http://jabber.org/protocol/xhtml-im'> <body xmlns='http://www.w3.org/1999/xhtml'> <p> Juliet, I am at <a href='geo:some-geo-uri'>47.8N,9.3E</a> and feeling kind of dizzy! </p> </body> </html> </message>This message supports the consumer side. We can render the URI nicely as an image button and load the map application, but our end-nodes may also be producer. In this case we want to attach the geo-data directly (as gml, kml, geopriv) to a message, store them in the database on the server and send the URI to the MUC participants.
Right. So you want something like this:
<message
to="[EMAIL PROTECTED]/balcony"
from="[EMAIL PROTECTED]/orchard"
type="chat">
<body>
Juliet, I am at 47.8N,9.3E and feeling kind of dizzy!
</body>
<html xmlns='http://jabber.org/protocol/xhtml-im'>
<body xmlns='http://www.w3.org/1999/xhtml'>
<p>
Juliet, I am at <a href='geo:some-geo-uri'>47.8N,9.3E</a>
and feeling kind of dizzy!
</p>
</body>
</html>
<geoloc xmlns='http://jabber.org/protocol/geoloc' xml:lang='en'>
<country>Italy</country>
<lat>47.8</lat>
<locality>Venice</locality>
<lon>9.3</lon>
</geoloc>
</message>
(Or instead of using XEP-0080 format you can embed some Geography Markup
Language XML or whatever you like for your application.)
Peter -- Peter Saint-Andre https://stpeter.im/
smime.p7s
Description: S/MIME Cryptographic Signature
