[jdev] XEP-0080: adding location source information

Peter Saint-Andre stpeter at stpeter.im
Fri Apr 2 15:38:13 CDT 2010


On 2/18/10 3:09 PM, Tuomas Koski wrote:
> Cheers,
> 
> On 17 February 2010 02:36, Peter Saint-Andre <stpeter at stpeter.im> wrote:
>> On 2/16/10 11:14 AM, Ilya Braude wrote:
>>>
>>> Peter Saint-Andre wrote:
>>>> On 2/13/10 7:03 AM, Tuomas Koski wrote:
>>>>> On 10 February 2010 22:44, Ilya Braude <ilya at drakontas.com> wrote:
>>>>>
>>>>> In the end we would have something like this, right? :
>>>>>
>>>>> <geoloc xmlns='http://jabber.org/protocol/geoloc' xml:lang='en'>
>>>>>  <source>GPS</source>
>>>>>  <lat>45.44</lat>
>>>>>  <lon>12.33</lon>
>>>>> </geoloc>
>>>>> <geoloc xmlns='http://jabber.org/protocol/geoloc' xml:lang='en'>
>>>>>  <source>Open Street Map</source>
>>>>>  <text>Marcon, Venezia, Veneto, Italy</text>
>>>>>  <country>Italy</country>
>>>>> </geoloc>
>>>>>
>>>>
>>>> Do we have two things here, a source type (e.g., GPS) and the name of
>>>> the provider?
>>>>
>>>
>>> That's a good point.  For example if a user is using geode to generate
>>> lat/lon based on visible wifi access points, we could have something like:
>>>
>>> <geoloc xmlns='http://jabber.org/protocol/geoloc' xml:lang='en'>
>>> <source>wifi</source>
>>> <provider>geode</provider>
>>> ...
>>> </geoloc>
>>>
>>>
>>> Otherwise, placing 'geode' in the source element would mask the actual
>>> location source.
>>>
>>> Same thing for other providers like Fire Eagle, etc.
>>
>> That's how it seems to me. :)
> 
> Now we could have something like this:
> 
> <geoloc xmlns='http://jabber.org/protocol/geoloc' xml:lang='en'>
>  <source>wifi</source>
>  <provider>Geode</source>
>  <lat>45.44</lat>
>  <lon>12.33</lon>
> </geoloc>
> <geoloc xmlns='http://jabber.org/protocol/geoloc' xml:lang='en'>
>  <provider>Open Street Map</provider>
>  <text>Marcon, Venezia, Veneto, Italy</text>
>  <country>Italy</country>
> </geoloc>
> 
> 
> Above would work for me. Anyone has a use-case where this would not work?

Seems fine. Feel free to submit a patch.

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: <http://mail.jabber.org/pipermail/jdev/attachments/20100402/6b3ff7ec/attachment.bin>


More information about the JDev mailing list