[jdev] XEP-0080: adding location source information

Tobias Markmann tmarkmann at googlemail.com
Wed Feb 10 15:49:16 CST 2010


On Wed, Feb 10, 2010 at 22:44, Ilya Braude <ilya at drakontas.com> wrote:

> I would like to propose the extension of the user location spec with source
> information, i.e. where the location information is coming from.  Having
> discussed this topic with several people at the recent summit I think there
> is enough interest to make it part of the XEP.
>
> There are several use cases to motivate this change:
>
> Users may get location information from GPS, set it manually, use WiFi or
> cell tower triangulation, etc. Knowing source information would enable
> clients to display appropriate icons for the users who publish location.
>
> This could also be useful when updating or aggregating information from
> separate sources. For example, a client that is integrated with a car's
> systems can send location updates using GPS, and more accurate speed updates
> from the car's speedometer (thanks to tkoski for the use case).
>
> Devices with built-in digital compasses to send more accurate heading
> information with a different source tag (this is probably more useful if the
> device is mounted in a known orientation, such as in a vehicle, but still
> useful).
>
>
> I think the way to accomplish this is to add a 'source' element as a child
> of the 'geoloc' element:
>
> <geoloc xmlns='http://jabber.org/protocol/geoloc' xml:lang='en'>
>  <source>GPS</source>
>  <lat>45.44</lat>
>  <lon>12.33</lon>
> </geoloc>
>
>
> An alternative would be to add a 'source' attribute to the 'geoloc'
> element, but I don't like that as much:
>
> <geoloc xmlns='http://jabber.org/protocol/geoloc' xml:lang='en'
> source='GPS'>
> ...
> </geoloc>
>
>
> Another issue to consider is whether to recommend well-known values for the
> field.  GPS and manual are probably going to be the most common use cases,
> so standardized strings to represent them would be useful for
> interoperability.
>
>
> Ilya
> _______________________________________________
> JDev mailing list
> Forum: http://www.jabberforum.org/forumdisplay.php?f=20
> Info: http://mail.jabber.org/mailman/listinfo/jdev
> Unsubscribe: JDev-unsubscribe at jabber.org
> _______________________________________________
>

That sounds sensible. On that topic it would be nice to have a tag for where
mobile clients could just dump the CellIDs they see and send the stanza to
the server which would then do the heavy lifting and look the position up
locally or at a 3rd party service and would replace the CellID tag with the
coordinates and accuracy tags.

Cheers,

-- 
Tobias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20100210/28f66de4/attachment.htm>


More information about the JDev mailing list