diff --git a/xep-0255.xml b/xep-0255.xml index 285e7130..b29cbac2 100644 --- a/xep-0255.xml +++ b/xep-0255.xml @@ -10,12 +10,14 @@ This specification defines an XMPP protocol extension for querying a compliant server for information about the geographical or physical location of an entity." &LEGALNOTICE; 0255 + Experimental Standards Track Standards Council XMPP Core + @@ -23,6 +25,7 @@ Helge Timenes + helge@buddycloud.com helge@buddycloud.com @@ -30,6 +33,7 @@ Simon Tennant simon@buddycloud.com + simon@buddycloud.com @@ -37,7 +41,30 @@ Savage ross@buddycloud.com ross@buddycloud.com + + + 0.4 + 2008-12-13 + ht +

+ Updated examples to be conform with XEP-0080 (use lat and lon instead of latitude and longitude)
+ Fixed wrong closing tag for <type> in examples.
+ Added signal strength to beacon data. +

+
+ + 0.3 + 2008-11-07 + ht +

Removed <error/> child of geoloc element (arc minutes).
Added <accuracy/> (meters).
Updated notes on GPS data submitted in location query.
Replaced language encoding 'en-UK' with 'en-US' to avoid UK/GB confusion

+
+ + 0.2 + 2008-11-03 + ht +

Corrected XML namespace
Added country code reference.

+
0.1 2008-11-13 @@ -45,23 +72,12 @@

Initial published version.

- 0.0.3 - 2008-11-07 - ht -

Removed <error/> child of geoloc element (arc minutes).
Added <accuracy/> (meters).
Updated notes on GPS data submitted in location query.
replaced language encoding 'en-UK' with 'en-US' to avoid UK/GB confusion

-
- - 0.0.2 - 2008-11-03 - ht -

Corrected XML namespace; added country code reference.

-
- - 0.0.1 + 0.0 2008-10-28 ht/st/rs

First draft.

+ @@ -72,12 +88,14 @@

The format defined herein was designed to address the following requirements:

    +
  • It shall be usable on devices with no support for GPS or other geodetic positioning systems
  • It shall be usable on devices with support for GPS or other geodetic positioning systems
  • It shall be compatible with place-referencing systems
  • It shall support self-learning location servers
  • The result format shall be expressed as natural language location description
  • The result format shall be compatible with XEP-0080
  • +
@@ -106,8 +124,8 @@ xml:lang='en-US'> 1599-10-23T01:55:21Z - 57.0501862 - 9.9188746 + 57.0501862 + 9.9188746 35.6 Jomfru Ane Gade 13 Aalborg @@ -127,15 +145,15 @@ 238:02:34775:50880 - cell + cell 00:0F:3D:42:92:2A - wifi + wifi 00:19:CB:45:50:4A - wifi + wifi @@ -149,8 +167,8 @@ xml:lang='en-US'> 1599-10-23T01:55:21Z - 57.050122 - 9.918833 + 57.050122 + 9.918833 Aalborg Jomfru Ane Gade 13 Denmark @@ -169,25 +187,28 @@ xml:lang='en-US'> 1599-10-23T01:55:21Z - 57.0501862 - 9.918874 + 57.0501862 + 9.918874 33.56 true 238:02:34775:50880 - cell + cell + -88 00:0F:3D:42:92:2A - wifi + wifi + -64 00:19:CB:45:50:4A - wifi + wifi + -82 00:18:42:E6:71:51 - bluetooth + bluetooth @@ -213,8 +234,8 @@ 1599-10-23T01:55:21Z - 57.0501862 - 9.918874 + 57.0501862 + 9.918874 Jomfru Ane Gade 13 Aalborg Denmark @@ -236,8 +257,8 @@ 1599-10-23T01:55:21Z - 57.0501862 - 9.918874 + 57.0501862 + 9.918874 Jomfru Ane Gade 13 Aalborg Denmark @@ -256,8 +277,8 @@ 1599-10-23T01:55:21Z - 57.0501862 - 9.918874 + 57.0501862 + 9.918874 Jomfru Ane Gade 13 Aalborg Denmark @@ -282,12 +303,14 @@ Datatype Definition Example + Notes timestamp xs:datetime UTC timestamp specifying the moment when the reading was taken (MUST conform to the DateTime profile of &xep0082;. + 2004-02-19T21:12Z This is the only field that is required without exception. @@ -295,11 +318,13 @@ publish xs:boolean A flag specifying whether or not the server should publish the location result to subscribers of the submitting user's XEP-0080 compatible geoloc pub-sub node instead of returning it directly to the submitting user. + true Optional. If present and "true", the server shall publish the entity's location details whenever it changes (suitable for periodic queries) and respond to the query with an empty <iq> stanza with type set to "result". If not specified or "false" the server shall return the location results to the submitting user in the form of a geoloc stanza (XEP-0080) embedded in a <iq> with type set to "result". Default is "false" lat + xs:decimal Latitude in decimal degrees North. @@ -308,6 +333,7 @@ lon + xs:decimal Longitude in decimal degrees East @@ -315,6 +341,7 @@ See notes for lat + alt xs:decimal Altitude in meters above or @@ -322,6 +349,7 @@ 1609 Optional. If present, this shall also be present in the result stanza with identical value. + bearing xs:decimal @@ -330,6 +358,7 @@ decimal degrees relative to true north See notes for alt + datum @@ -337,6 +366,7 @@ GPS datum (See XEP-0080) See notes for alt + accuracy @@ -344,6 +374,7 @@ Horizontal GPS accuracy in meters 10 See notes for lat + speed @@ -351,12 +382,14 @@ The speed at which the entity is moving, in meters per second 52.69 + See notes for alt beacons locationquery:beacon A list of identifiable radio transmitters observed by the entity + Required if no lat and lon values specified, otherwise optional. See Table 2 for type definition. @@ -369,11 +402,13 @@ Definition Example Notes + id xs:string A world-wide unique beacon identifier. This SHALL be composed as follows:

For cell towers: "MCC:MNC:LAC:CID" where MCC is the mobile country code Values of Mobile Country Codes (MCC) are specified by Annex to ITU Operational Bulletin No. 897 – 1.XII.2007.), MNC is the network carrier code, LAC is the area code and CID is the cell ID.

For wireless access points and bluetooth devices: The device MAC address. + 207:02:12643:78596 Required @@ -381,14 +416,23 @@ type xs:string Beacon type. One of "cell", "wifi", "bluetooth", "wimax", "rfid" (?), "other" + "cell" Required. + + signalstrength + xs:int + Beacon signal strength in dBM. + -64 + Optional. + + @@ -396,12 +440,14 @@ + + @@ -409,6 +455,7 @@ neighborhood + @@ -418,6 +465,7 @@ decimal degrees relative to true north + @@ -426,6 +474,7 @@ or in an area + @@ -434,6 +483,7 @@ located + @@ -441,6 +491,7 @@ + @@ -449,6 +500,7 @@ description of the location + @@ -456,6 +508,7 @@ + @@ -463,6 +516,7 @@ + @@ -471,6 +525,7 @@ North + @@ -479,6 +534,7 @@ administrative region, such as a town or city + @@ -487,6 +543,7 @@ East + @@ -494,6 +551,7 @@ + @@ -502,6 +560,7 @@ nation, such as a state or province + @@ -509,6 +568,7 @@ + @@ -517,6 +577,7 @@ + @@ -525,6 +586,7 @@ locality, or a crossing of two thoroughfares + @@ -533,12 +595,14 @@ captures any other information about the location + + @@ -546,6 +610,7 @@ + @@ -563,12 +628,14 @@

The does not have to determine a value for all fields of the <geoloc> stanza, but it SHOULD determine values for as many as possible. At the very least a value for 'country' should be set.

+

If no GPS coordinate and accuracy information is submitted in the query, and the server determines location coordinates from submitted beacon data, a value for the returned geoloc 'accuracy' field SHOULD be returned. The magnitude of this should be derived based on the ranges of the beacons used to determine the location.

The server should make no assumptions about how often a entity submits a query. It should support occasional manually triggered queries as well as periodic automated queries. In the latter case it should analyze changes over time, as this can greatly increase the fidelity of the result.

Furthermore, no assumptions should be made about the number of beacons being logged in each query. Some handset manufacturers limit the access programmers have to cell tower and access point information. Some may only offer the currently connected cell ID, such that even if the handset can "see" many cell towers, only the one to which the handset is connected at the moment can be read. In this case the cell tower readings may not be constant, even if the querying entity is not moving. Rather it may jump round-robin style to each visible cell with variable time spent on each. The location server should account for this to avoid yielding results indicating that a user is running around in cell-sized circles when he is in fact stationary. Again, analysis of variation of submitted queries over time is recommended.

As no guarantees can be made that a given radio beacon stays at one fixed physical location throughout it's lifetime, the server should implement means to detect this. Generally it can be assumed that cell towers seldom move (could happen when a network operator changes the way it allocates cell IDs or when a tower is physically moved to a different location). Wireless access points move a bit more frequently (for instance when their owners move, or if they are installed in moving vehicles such as busses or trains). Bluetooth devices can generally be assumed to be mobile and should, unless specific knowledge to the contrary exists, not be used to locate an entity to a specific physical location. Rather, bluetooth devices (and other mobile beacons) can be used to co-locate entities to other entities for which a physical location is known. An example: Entity A submits query with GPS coordinates and the ID of some bluetooth device. It is located based on its submitted coordinates. Entity B submits a query with the same bluetooth device ID, but no GPS coordinates. Given this, and the fact that bluetooth transmitters have a very limited range, the server can then derive that A and B are at the same physical location (it may add 10-20 m to the accuracy of the location of B to account for the bluetooth range).

The "radio landscape" is by no means constant. New beacons are added continuously, and old ones are phased out. A location server will have to adapt to this shifting landscape, either by means of operator-supplied databases (in case of cell towers) or by means of user generated information. This standard was written with the latter in mind, and it is recommended that location servers utilize any queries with combined GPS and radio beacon information to "learn" the approximate physical location of the provided beacons. For server implementation that rely on user generated information only, it is also recommended to supply additional means for the users to feed back location context in cases where the client does not have any GPS access, or when the server produces the wrong results. One way to do this would be to let the users define "placemarks" (a name, street, city etc) that can be associated with the beacons seen by this user at the time of definition. This is however beyond the scope of this XEP.

+

For the reasons mentioned above, it is recommended that the client supply both GPS coordinates as well as nearby radio beacon information when possible. Also it is recommended that the client submit queries frequently enough to allow the server to analyze changes over time (or lack thereof) to obtain a better result. When possible, the client should include wifi access points in the queries, as these yield much more precise results than cell towers alone (due to the much more limited range). This must however all be weighted against the increased power consumption resulting from keeping network sockets open, scanning for access points and driving a GPS receiver.

For optimal results, clients SHOULD post a location query any time when the set of observed beacons change (a new beacon is seen or an old one is not seen any more)

@@ -596,11 +663,13 @@
  • urn:xmpp:jingle:transfer:0
+

Upon advancement of this specification from a status of Experimental to a status of Draft, the ®ISTRAR; shall add the foregoing namespaces to the registry located at &NAMESPACES;, as described in Section 4 of &xep0053;.

If the protocol defined in this specification undergoes a major revision that is not fully backward-compatible with an older version, or that contains significant new features, the XMPP Registrar shall increment the protocol version number found at the end of the XML namespaces defined herein, as described in Section 4 of XEP-0053.

+ @@ -663,6 +732,10 @@ minOccurs='1' maxOccurs='1' type='xs:string'/> +
Element NameDatatype Definition Example
altxs:decimal Altitude in meters above or below sea level 1609 Piped directly through from query alt field if set.
area xs:string Central Park
bearing Piped directly through from query bearing field if set.
building The Empire State Building
country USA
datumGPS datum (See notes for XEP-0080) Piped directly through from query datum field if set.
description Bill's house If location is mapped to a place in a place oriented service, this should hold the place description.
accuracyHorizontal GPS accuracy in meters 10 Piped directly through from query accuracy field or estimated by location server using based on the other information in query and, if possible, differences between several queries over time.
floorA particular floor in a building 102
lat 39.75 Piped directly through from query lat field or estimated by location server based on the other information in query and, if possible, differences between several queries over time.
locality New York City
lon -104.99 Piped directly through from query lon or estimated by location server based on the other information in query and, if possible, differences between several queries over time.
postalcodeA code used for postal delivery 10027
region New York
roomA particular room in a building Observatory
speed52.69 xs:decimal Piped directly through from query speed field or estimated by location server based on the other information in query and, if possible, differences between several queries over time.
street 34th and Broadway
text Northwest corner of the lobby Best practice tip: This field can be used by the server to combine several fields in a natural language style, suitable for simple one-line location presence text. Example: "Near Bob's place" (description + accuracy), "On the road in New York" (locality + speed)
timestamp xs:datetime UTC timestamp specifying the moment when the reading was taken (MUST conform to the DateTime profile of XEP-0082) 2004-02-19T21:12ZPiped directly through from query timestamp field.
A URI or URL pointing to information about the location http://beta.plazes.com/plazes/1940:jabber_incxs:anyURI Only applicable to place-oriented services