mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-25 10:42:19 -05:00
29bee13867
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@320 4b5297f7-1745-476d-ba37-a9c6900126ab
313 lines
15 KiB
XML
313 lines
15 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!DOCTYPE xep SYSTEM 'xep.dtd' [
|
|
<!ENTITY % ents SYSTEM 'xep.ent'>
|
|
%ents;
|
|
]>
|
|
<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
|
|
<xep>
|
|
<header>
|
|
<title>User Physical Location</title>
|
|
<abstract>This document defines a protocol for communicating information about the current physical location of a Jabber entity. NOTE WELL: The protocol defined herein has been folded into XEP-0080.</abstract>
|
|
&LEGALNOTICE;
|
|
<number>0112</number>
|
|
<status>Obsolete</status>
|
|
<type>Standards Track</type>
|
|
<sig>Standards</sig>
|
|
<dependencies>
|
|
<spec>XMPP Core</spec>
|
|
<spec>XEP-0060</spec>
|
|
</dependencies>
|
|
<supersedes/>
|
|
<supersededby>
|
|
<spec>XEP-0080</spec>
|
|
</supersededby>
|
|
<shortname>physloc</shortname>
|
|
&stpeter;
|
|
<revision>
|
|
<version>1.0</version>
|
|
<date>2004-10-12</date>
|
|
<initials>psa</initials>
|
|
<remark>Per a vote of the Jabber Council, advanced status to Draft.</remark>
|
|
</revision>
|
|
<revision>
|
|
<version>0.8</version>
|
|
<date>2004-10-12</date>
|
|
<initials>psa</initials>
|
|
<remark>Added internationalization considerations.</remark>
|
|
</revision>
|
|
<revision>
|
|
<version>0.7</version>
|
|
<date>2004-10-10</date>
|
|
<initials>psa</initials>
|
|
<remark>Added <postalcode/> element; removed <url/> element (unnecessary given the existence of jabber:x:oob); defined mapping to vCard.</remark>
|
|
</revision>
|
|
<revision>
|
|
<version>0.6</version>
|
|
<date>2004-10-05</date>
|
|
<initials>psa</initials>
|
|
<remark>Defined mappings to Wireless Village and SIMPLE.</remark>
|
|
</revision>
|
|
<revision>
|
|
<version>0.5</version>
|
|
<date>2004-05-11</date>
|
|
<initials>psa</initials>
|
|
<remark>Changed root element, namespace, and shortname to physloc to prevent conflict with XEP-0033.</remark>
|
|
</revision>
|
|
<revision>
|
|
<version>0.4</version>
|
|
<date>2004-04-25</date>
|
|
<initials>psa</initials>
|
|
<remark>Corrected several errors; added reference to XEP-0033.</remark>
|
|
</revision>
|
|
<revision>
|
|
<version>0.3</version>
|
|
<date>2004-02-19</date>
|
|
<initials>psa</initials>
|
|
<remark>Revived document upon modifications to XEP-0080; changed root element, namespace, and shortname to 'address'.</remark>
|
|
</revision>
|
|
<revision>
|
|
<version>0.2</version>
|
|
<date>2003-08-21</date>
|
|
<initials>psa</initials>
|
|
<remark>Removed 'current' from title; changed shortname to 'location'; changed 'freetext' to 'text'; made several other small fixes.</remark>
|
|
</revision>
|
|
<revision>
|
|
<version>0.1</version>
|
|
<date>2003-08-20</date>
|
|
<initials>psa</initials>
|
|
<remark>Initial version.</remark>
|
|
</revision>
|
|
</header>
|
|
<section1 topic='Introduction' anchor='intro'>
|
|
<p><em>NOTE WELL: The protocol defined herein has been folded into &xep0080;.</em></p>
|
|
<p>This document defines an extension mechanism for capturing "extended presence" information about a user's current physical location. The information structures defined herein are intended to provide a format for describing a location or address that may change fairly frequently (e.g., one's location on a campus or in a large building) in situations where the user or application does not possess, or does not wish to communicate, detailed latitude/longitude data of the type defined in <cite>XEP-0080</cite>.</p>
|
|
</section1>
|
|
<section1 topic='Protocol' anchor='protocol'>
|
|
<p>Information about the user's location is provided by the user and propagated on the network by the user's client. The information is structured by means of an <physloc/> element that is qualified by the 'http://jabber.org/protocol/physloc' namespace. The location information itself is provided as the XML character data of the following children of the <physloc/> element:</p>
|
|
<table caption='Child Elements'>
|
|
<tr><th>Element</th><th>Description</th><th>Example</th></tr>
|
|
<tr><td><country/></td><td>The nation where the user is located</td><td>USA</td></tr>
|
|
<tr><td><region/></td><td>An administrative region of the nation, such as a state or province</td><td>New York</td></tr>
|
|
<tr><td><locality/></td><td>A locality within the administrative region, such as a town or city</td><td>New York City</td></tr>
|
|
<tr><td><area/></td><td>A named area such as a campus or neighborhood</td><td>Central Park</td></tr>
|
|
<tr><td><street/></td><td>A thoroughfare within the locality, or a crossing of two thoroughfares</td><td>34th and Broadway</td></tr>
|
|
<tr><td><building/></td><td>A specific building on a street or in an area</td><td>The Empire State Building</td></tr>
|
|
<tr><td><floor/></td><td>A particular floor in a building</td><td>102</td></tr>
|
|
<tr><td><room/></td><td>A particular room in a building</td><td>Observatory</td></tr>
|
|
<tr><td><postalcode/></td><td>A code used for postal delivery</td><td>10027</td></tr>
|
|
<tr><td><text/></td><td>A catch-all element that captures any other information about the user's location</td><td>Northwest corner of the lobby</td></tr>
|
|
</table>
|
|
</section1>
|
|
<section1 topic='Usage' anchor='usage'>
|
|
<p>The <physloc/> information SHOULD be communicated by means of &xep0060;. Because physical location information is not pure presence information and can change independently of the user's availability, it SHOULD NOT be provided as an extension to &PRESENCE;.</p>
|
|
<example caption='User Publishes Address'><![CDATA[
|
|
<iq type='set'
|
|
from='stpeter@jabber.org/laptop'
|
|
to='pubsub.jabber.org'
|
|
id='publish1'>
|
|
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
|
|
<publish node='generic/stpeter-loc'>
|
|
<item id='current'>
|
|
<physloc xmlns='http://jabber.org/protocol/physloc'
|
|
xml:lang='en'>
|
|
<country>Austria</country>
|
|
<locality>Vienna</locality>
|
|
<building>Vienna International Centre</building>
|
|
<text>At IETF 57</text>
|
|
</physloc>
|
|
</item>
|
|
</publish>
|
|
</pubsub>
|
|
</iq>
|
|
]]></example>
|
|
<p>The location information is then delivered to all subscribers:</p>
|
|
<example caption='Address is Delivered to All Subscribers'><![CDATA[
|
|
<message
|
|
from='pubsub.jabber.org'
|
|
to='jer@jabber.org/silver'>
|
|
<event xmlns='http://jabber.org/protocol/pubsub#event'>
|
|
<items node='generic/stpeter-physloc'>
|
|
<item id='current'>
|
|
<physloc xmlns='http://jabber.org/protocol/physloc'
|
|
xml:lang='en'>
|
|
<country>Austria</country>
|
|
<locality>Vienna</locality>
|
|
<building>Vienna International Centre</building>
|
|
<text>At IETF 57</text>
|
|
</physloc>
|
|
</item>
|
|
</items>
|
|
</event>
|
|
</message>
|
|
.
|
|
.
|
|
.
|
|
]]></example>
|
|
<p>As mentioned in XEP-0060, the stanza containing the event notification or payload MAY also include 'replyto' data (as specified by the &xep0033; protocol) to provide an explicit association between the published data and the user:</p>
|
|
<example caption='Event notification with extended stanza addressing'><![CDATA[
|
|
<message
|
|
from='pubsub.jabber.org'
|
|
to='jer@jabber.org/silver'>
|
|
<event xmlns='http://jabber.org/protocol/pubsub#event'>
|
|
<items node='generic/stpeter-physloc'>
|
|
<item id='current'>
|
|
<physloc xmlns='http://jabber.org/protocol/physloc'
|
|
xml:lang='en'>
|
|
<country>Austria</country>
|
|
<locality>Vienna</locality>
|
|
<building>Vienna International Centre</building>
|
|
<text>At IETF 57</text>
|
|
</physloc>
|
|
</item>
|
|
</items>
|
|
</event>
|
|
<addresses xmlns='http://jabber.org/protocol/address'>
|
|
<address type='replyto' jid='stpeter@jabber.org'/>
|
|
</addresses>
|
|
</message>
|
|
]]></example>
|
|
</section1>
|
|
<section1 topic='Mapping to Other Formats' anchor='mapping'>
|
|
<p>There are many XML data formats for physical location or address information. It is beyond the scope of this document to provide a mapping from the extension defined herein to every such format. However, it would be valuable to provide a mapping from the Jabber/XMPP format to the formats used in other presence or extended presence protocols. The two main protocols of interest are:</p>
|
|
<ol>
|
|
<li><p>The Wireless Village (now "IMPS") specifications for mobile instant messaging; these specifications define a presence attribute for address information as encapsulated in the IMPS "Address" element <note>The Wireless Village Initiative: Presence Attributes v1.1 (WV-029); for further information, visit <<link url='http://www.openmobilealliance.org/tech/affiliates/wv/wvindex.html'>http://www.openmobilealliance.org/tech/affiliates/wv/wvindex.html</link>>.</note>.</p></li>
|
|
<li><p>The SIP-based SIMPLE specifications; in particular, the IETF's GEOPRIV Working Group has defined an extension to the IETF's &pidf; for location information, as specified in &rfc4119; (also known as "PIDF-LO").</p></li>
|
|
</ol>
|
|
<p>The following table also maps the format defined herein to the vCard XML format specified in &xep0054;.</p>
|
|
<table caption='Mapping Jabber Physical Location to IMPS, PIDF-LO, and vCard'>
|
|
<tr>
|
|
<th>Jabber/XMPP</th>
|
|
<th>Wireless Village / IMPS</th>
|
|
<th>SIMPLE (PIDF-LO)</th>
|
|
<th>vCard XML</th>
|
|
</tr>
|
|
<tr>
|
|
<td align='center'><country/></td>
|
|
<td align='center'><Country/></td>
|
|
<td align='center'><country/></td>
|
|
<td align='center'><CTRY/>
|
|
<note>As noted in XEP-0054, the XML vCard format defined in draft-dawson-vcard-xml-dtd-01 specified a <COUNTRY/> element rather than a <CTRY/> element; refer to XEP-0054 for details.</note>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='center'><region/></td>
|
|
<td align='center'>--</td>
|
|
<td align='center'><A1/> and/or <A2/></td>
|
|
<td align='center'><REGION/></td>
|
|
</tr>
|
|
<tr>
|
|
<td align='center'><locality/></td>
|
|
<td align='center'><City/></td>
|
|
<td align='center'><A3/></td>
|
|
<td align='center'><LOCALITY/></td>
|
|
</tr>
|
|
<tr>
|
|
<td align='center'><area/></td>
|
|
<td align='center'><NamedArea/></td>
|
|
<td align='center'><A4/> and/or <A5/></td>
|
|
<td align='center'>--</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='center'><street/></td>
|
|
<td align='center'><Street/>
|
|
<note>The IMPS specification also enables one to define an intersection (e.g., "Broadway and 34th Street") as the combination of a <Crossing1/> element (e.g., "Broadway") and a <Crossing2/> element (e.g., "34th Street"). To map from IMPS to Jabber, an application SHOULD map such a combination to one Jabber/XMPP <street/> element.</note>
|
|
</td>
|
|
<td align='center'><A6/>
|
|
<note>The PIDF-LO format provides information elements for much more granular control over a traditional street address; in PIDF-LO the <A6/> element is the street name only, and further information is provided in distinct elements for a leading street direction (e.g., "N"), trailing street suffix (e.g., "SW"), street suffix (e.g., "Avenue"), house number (e.g., "909"), and house number suffix (e.g., "1/2"). To map from PIDF-LO to Jabber, an application SHOULD construct the complete street address from the PIDF-LO elements (<A6/>, <PRD/>, <POD/>, <STS/>, <HNO/>, and <HNS/>) and map the result to one Jabber/XMPP <street/> element.</note>
|
|
</td>
|
|
<td align='center'><STREET/></td>
|
|
</tr>
|
|
<tr>
|
|
<td align='center'><building/></td>
|
|
<td align='center'><Building/></td>
|
|
<td align='center'><LMK/></td>
|
|
<td align='center'>--</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='center'><floor/></td>
|
|
<td align='center'>--</td>
|
|
<td align='center'><FLR/></td>
|
|
<td align='center'>--</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='center'><room/></td>
|
|
<td align='center'>--</td>
|
|
<td align='center'>--</td>
|
|
<td align='center'>--</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='center'><postalcode/></td>
|
|
<td align='center'>--</td>
|
|
<td align='center'><PC/></td>
|
|
<td align='center'><PCODE/></td>
|
|
</tr>
|
|
<tr>
|
|
<td align='center'><text/></td>
|
|
<td align='center'><FreeTextLocation/></td>
|
|
<td align='center'><LOC/></td>
|
|
<td align='center'><EXTADR/></td>
|
|
</tr>
|
|
<tr>
|
|
<td align='center'>--</td>
|
|
<td align='center'><Accuracy/>
|
|
<note>This element provides accuracy in meters. The geolocation protocol defined in XEP-0080 specifies such an element for Jabber/XMPP, which SHOULD be used when mapping from IMPS to Jabber.</note>
|
|
</td>
|
|
<td align='center'>--</td>
|
|
<td align='center'>--</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='center'>--</td>
|
|
<td align='center'>--</td>
|
|
<td align='center'><NAM/>
|
|
<note>This element provides a name for the location, e.g., a certain store in a building. This SHOULD be mapped to the Jabber/XMPP <text/> element.</note>
|
|
</td>
|
|
<td align='center'>--</td>
|
|
</tr>
|
|
</table>
|
|
</section1>
|
|
<section1 topic='Internationalization Considerations' anchor='i18n'>
|
|
<p>Because the character data contained in most <physloc/> child elements is intended to be readable by humans, the <physloc/> element SHOULD possess an 'xml:lang' attribute specifying the natural language of such character data.</p>
|
|
</section1>
|
|
<section1 topic='Security Considerations' anchor='security'>
|
|
<p>It is imperative to control access to location information, at least by default. Imagine that a stalker got unauthorized access to this information, with enough accuracy and timeliness to be able to find the target person. This scenario could lead to loss of life, so please take access control checks seriously. A user SHOULD take care in approving subscribers and in characterizing his or her current physical location.</p>
|
|
</section1>
|
|
<section1 topic='IANA Considerations' anchor='iana'>
|
|
<p>This document requires no interaction with &IANA;.</p>
|
|
</section1>
|
|
<section1 topic='XMPP Registrar Considerations' anchor='registrar'>
|
|
<section2 topic='Protocol Namespaces' anchor='registrar-ns'>
|
|
<p>The ®ISTRAR; includes 'http://jabber.org/protocol/physloc' in its registry of protocol namespaces, but the namespace is deprecated.</p>
|
|
</section2>
|
|
</section1>
|
|
<section1 topic='XML Schema' anchor='schema'>
|
|
<code><![CDATA[
|
|
<?xml version='1.0' encoding='UTF-8'?>
|
|
|
|
<xs:schema
|
|
xmlns:xs='http://www.w3.org/2001/XMLSchema'
|
|
targetNamespace='http://jabber.org/protocol/physloc'
|
|
xmlns='http://jabber.org/protocol/physloc'
|
|
elementFormDefault='qualified'>
|
|
|
|
<xs:element name='physloc'>
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element name='country' minOccurs='0' type='xs:string'/>
|
|
<xs:element name='region' minOccurs='0' type='xs:string'/>
|
|
<xs:element name='locality' minOccurs='0' type='xs:string'/>
|
|
<xs:element name='area' minOccurs='0' type='xs:string'/>
|
|
<xs:element name='street' minOccurs='0' type='xs:string'/>
|
|
<xs:element name='building' minOccurs='0' type='xs:string'/>
|
|
<xs:element name='floor' minOccurs='0' type='xs:string'/>
|
|
<xs:element name='room' minOccurs='0' type='xs:string'/>
|
|
<xs:element name='postalcode' minOccurs='0' type='xs:string'/>
|
|
<xs:element name='text' minOccurs='0' type='xs:string'/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
|
|
</xs:schema>
|
|
]]></code>
|
|
</section1>
|
|
</xep>
|