mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-24 10:12:19 -05:00
Added example with IP address. Corrected closing </iq> tags in examples.
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@2828 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
1cb2f5cbe8
commit
c57b38cb4b
67
xep-0255.xml
67
xep-0255.xml
@ -38,6 +38,17 @@
|
|||||||
<email>ross@buddycloud.com</email>
|
<email>ross@buddycloud.com</email>
|
||||||
<jid>ross@buddycloud.com</jid>
|
<jid>ross@buddycloud.com</jid>
|
||||||
</author>
|
</author>
|
||||||
|
<revision>
|
||||||
|
<version>0.5</version>
|
||||||
|
<date>2009-03-06</date>
|
||||||
|
<initials>ht</initials>
|
||||||
|
<remark>
|
||||||
|
<ul>
|
||||||
|
<li>Added example with IP address</li>
|
||||||
|
<li>Corrected closing </iq> tags in examples</li>
|
||||||
|
</ul>
|
||||||
|
</remark>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<version>0.4</version>
|
<version>0.4</version>
|
||||||
<date>2009-02-17</date>
|
<date>2009-02-17</date>
|
||||||
@ -149,7 +160,7 @@
|
|||||||
<lon>9.9188746</lon>
|
<lon>9.9188746</lon>
|
||||||
<accuracy>35.6</accuracy>
|
<accuracy>35.6</accuracy>
|
||||||
</locationquery>
|
</locationquery>
|
||||||
<iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
|
|
||||||
<example caption='Server responds with location info'><![CDATA[
|
<example caption='Server responds with location info'><![CDATA[
|
||||||
@ -169,12 +180,44 @@
|
|||||||
<uri>http://shakespeare.lit/places/kings_head_pub_aalborg</uri>
|
<uri>http://shakespeare.lit/places/kings_head_pub_aalborg</uri>
|
||||||
<text>Near King's Head Pub</text>
|
<text>Near King's Head Pub</text>
|
||||||
</geoloc>
|
</geoloc>
|
||||||
<iq>
|
</iq>
|
||||||
|
]]></example>
|
||||||
|
|
||||||
|
<example caption='Entity queries server with IP address'><![CDATA[
|
||||||
|
<iq from='hamlet@shakespeare.lit/phone'
|
||||||
|
id='q02'
|
||||||
|
to='location.shakespear.lit'
|
||||||
|
type='get'
|
||||||
|
xml:lang='en-US'>
|
||||||
|
<locationquery xmlns='urn:xmpp:locationquery:0'>
|
||||||
|
<reference>
|
||||||
|
<id>80.2.47.198</id>
|
||||||
|
<type>ip</type>
|
||||||
|
</reference>
|
||||||
|
</locationquery>
|
||||||
|
</iq>
|
||||||
|
]]></example>
|
||||||
|
|
||||||
|
<example caption='Server responds with location info'><![CDATA[
|
||||||
|
<iq from='location.shakespeare.lit'
|
||||||
|
id='q02'
|
||||||
|
to='hamlet@shakespeare.lit/phone'
|
||||||
|
type='result'
|
||||||
|
xml:lang='en-US'>
|
||||||
|
<geoloc xmlns='http://jabber.org/protocol/geoloc' xml:lang='en'>
|
||||||
|
<timestamp>1599-10-23T01:56:05Z</timestamp>
|
||||||
|
<lat>56.8</lat>
|
||||||
|
<lon>9.9</lon>
|
||||||
|
<accuracy>100000</accuracy>
|
||||||
|
<locality>Aalborg</locality>
|
||||||
|
<country>Denmark</country>
|
||||||
|
</geoloc>
|
||||||
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
|
|
||||||
<example caption='Entity queries server with cell tower and wifi access point IDs'><![CDATA[
|
<example caption='Entity queries server with cell tower and wifi access point IDs'><![CDATA[
|
||||||
<iq from='hamlet@shakespeare.lit/phone'
|
<iq from='hamlet@shakespeare.lit/phone'
|
||||||
id='q02'
|
id='q03'
|
||||||
to='location.shakespear.lit'
|
to='location.shakespear.lit'
|
||||||
type='get'
|
type='get'
|
||||||
xml:lang='en-US'>
|
xml:lang='en-US'>
|
||||||
@ -192,12 +235,12 @@
|
|||||||
<type>wifi</type>
|
<type>wifi</type>
|
||||||
</reference>
|
</reference>
|
||||||
</locationquery>
|
</locationquery>
|
||||||
<iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
|
|
||||||
<example caption='Server responds with location info'><![CDATA[
|
<example caption='Server responds with location info'><![CDATA[
|
||||||
<iq from='location.shakespeare.lit'
|
<iq from='location.shakespeare.lit'
|
||||||
id='q02'
|
id='q03'
|
||||||
to='hamlet@shakespeare.lit/phone'
|
to='hamlet@shakespeare.lit/phone'
|
||||||
type='result'
|
type='result'
|
||||||
xml:lang='en-US'>
|
xml:lang='en-US'>
|
||||||
@ -212,12 +255,12 @@
|
|||||||
<uri>http://shakespeare.lit/places/kings_head_pub_aalborg</uri>
|
<uri>http://shakespeare.lit/places/kings_head_pub_aalborg</uri>
|
||||||
<text>King's Head Pub</text>
|
<text>King's Head Pub</text>
|
||||||
</geoloc>
|
</geoloc>
|
||||||
<iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
|
|
||||||
<example caption='Entity queries server with reference info from multiple scans and specifies that results should be published'><![CDATA[
|
<example caption='Entity queries server with reference info from multiple cell tower and wifi accespoint scans and specifies that results should be published'><![CDATA[
|
||||||
<iq from='hamlet@shakespeare.lit/phone'
|
<iq from='hamlet@shakespeare.lit/phone'
|
||||||
id='q03'
|
id='q04'
|
||||||
to='location.shakespear.lit'
|
to='location.shakespear.lit'
|
||||||
type='get'
|
type='get'
|
||||||
xml:lang='en-US'>
|
xml:lang='en-US'>
|
||||||
@ -262,12 +305,12 @@
|
|||||||
<type>bluetooth</type>
|
<type>bluetooth</type>
|
||||||
</reference>
|
</reference>
|
||||||
</locationquery>
|
</locationquery>
|
||||||
<iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
|
|
||||||
<example caption='Server responds with empty IQ-result...'><![CDATA[
|
<example caption='Server responds with empty IQ-result...'><![CDATA[
|
||||||
<iq from='location.shakespeare.lit'
|
<iq from='location.shakespeare.lit'
|
||||||
id='q03'
|
id='q04'
|
||||||
to='hamlet@shakespeare.lit/phone'
|
to='hamlet@shakespeare.lit/phone'
|
||||||
type='result'
|
type='result'
|
||||||
xml:lang='en-US' />
|
xml:lang='en-US' />
|
||||||
@ -275,7 +318,7 @@
|
|||||||
|
|
||||||
<example caption='...and publishes result to the entity's geoloc pubsub node...'><![CDATA[
|
<example caption='...and publishes result to the entity's geoloc pubsub node...'><![CDATA[
|
||||||
<iq from='hamlet@shakespeare.lit/phone'
|
<iq from='hamlet@shakespeare.lit/phone'
|
||||||
id='q03'
|
id='q04'
|
||||||
to='hamlet@shakespeare.lit/phone'
|
to='hamlet@shakespeare.lit/phone'
|
||||||
type='set'
|
type='set'
|
||||||
xml:lang='en-US'>
|
xml:lang='en-US'>
|
||||||
@ -298,7 +341,7 @@
|
|||||||
</node>
|
</node>
|
||||||
</publish>
|
</publish>
|
||||||
</pubsub>
|
</pubsub>
|
||||||
<iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
|
|
||||||
<example caption='...which is delivered to everyone subscribing to it'><![CDATA[
|
<example caption='...which is delivered to everyone subscribing to it'><![CDATA[
|
||||||
|
Loading…
Reference in New Issue
Block a user