[jdev] XEP-0080: adding location source information

Peter Saint-Andre stpeter at stpeter.im
Fri Apr 2 15:37:50 CDT 2010


On 2/23/10 9:03 AM, Kyle Usbeck wrote:
> I very strongly support the addition of "source" and "provider"
> information to the geoloc spec, 

Great. Patches welcome. :)

> but their addition means that we might
> also have to modify the way we represent "stop commands."  According to
> XEP-0080:
> 
>     In order to indicate that the user is no longer publishing any
>     location information, the user's client shall send an empty
>     <geoloc/> element, which can be considered a "stop command" for
>     geolocation.
> 
> 
> Example Use Case: Transmit a "stop command" for a WIFI source, but
> continue sending information from a GPS source.

The stop command indicates that the entity has stopped all publishing of
geolocation data from all sources and providers.

> The options are 1) include "source" and "provider" as optional
> attributes of the <geoloc/> element, or 2) alter the representation of
> the stop command.
> 
> By including the "source" and "provider" as optional attributes of
> <geoloc/>, we can continue using an empty <geoloc/> as a stop command:
> 
> <geoloc 
>   xmlns='http://jabber.org/protocol/geoloc'
> <http://www.google.com/url?sa=D&q=http://jabber.org/protocol/geoloc%27&usg=AFQjCNEeMfdwnaV7yu2Aqox0OVKaz2IXlw> 
>   xml:lang='en'
>   source='wifi'/> 
> 
> I prefer, though, altering the representation by adding an explicit
> termination, such as the type='stop' below:
> 
> <geoloc 
>     xmlns='http://jabber.org/protocol/geoloc'
> <http://www.google.com/url?sa=D&q=http://jabber.org/protocol/geoloc%27&usg=AFQjCNEeMfdwnaV7yu2Aqox0OVKaz2IXlw> 
>     xml:lang='en'
>     type='stop'> 
>   <source>wifi</source> 
> </geoloc>
> 
> Are there any other options that I'm missing?

Why do you need to indicate that you are stopping publication from a
particular source or provider? Is there a use case for that feature?

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6820 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://www.jabber.org/jdev/attachments/20100402/5cb981a0/attachment.bin>


More information about the JDev mailing list