[jdev] update on XMPP location (wherein beer is offered)

Simon Tennant simon at buddycloud.com
Wed Apr 1 14:10:21 CDT 2009


Stephen Pendleton wrote:
> I like this a lot. How does the "nearby" query work? Does it returned
> bookmarked places that are owned by the submitting jid, or any bookmarked
> place nearby? What is "cellpatternquality" mean?
A place can have one of two modes.

    * Public places are those that can be shared with other people. Eg
      my placemark for Starbucks would be useful to others.
    * Private places are those that will not be shared with others. For
      example my placemark called "Home sweet home" is probably not
      useful to others on the network (and/or I want it to be private to
      just me and only shared with my friends).

butler.buddycloud.com will only show public in a nearby query. These
will be public places from all users. Additionally you can subscribe to
a place which then places it on your own list of places that you are
placed at in the future.

CellPatternQuality reflects the certainty of the place.  How "distinct"
it is. For example when you are driving the location butler will be
seeing lots of new wifi and cell towers. Saving a placemark at that
point will save it but it will be a "blurry" pattern in the database. 
Better would be to wait a moment, submit a couple more location queries,
watch for the cellpatternquality to increase to 100% and then send a
placemark save stanza.  Then the butler will be far more likely to
accurately place you back at that point in the future.

> Also, how does the component push my location to my PEP node if I am on
> another server? Would this be allowed by XMPP servers? I would be
> interested
> in seeing these stanzas though to test it out.
Indeed for non-buddycloud.com domains PEP would not work. There are two
solutions for this that we are looking at. Either:

    * having the remote non buddycloud node publish their own pep node
      after getting a reply to their location query stanza or
    * granting publisher rights to butler.buddycloud.com on your own
      pubsub geoloc node and passing the address to this node as part of
      the location query. The query results would then be published on
      your behalf in XEP-0080 (user location) format as well as being
      returned to the client.

> There is another application we are working on that involves XEP-0255. It
> currently supports what you are calling "beacon logs" stanzas to
> return back
> postal addresses. The system uses a combination of wifi access
> points/mobile
> towers to pinpoint your position and return back a lat/lon. It is very
> accurate in a populated area.
The butler does a best effort on the lookup of lat/long too and
publishes it as part of the XEP-0080 stack. I don't think we fill out
the post code for general locations (we do for known places) but this
could presumably be added with access to the right lat/long -> postcode
mapping tables.  It's not something that we have spent too much time on.
Our main efforts in butler development have focused on making location
something social by describing it as known places like home or work or
"on the road in munich" (travelling) or  "near  Jo's house" for example.

S.

-- 
Simon Tennant
Buddycloud
uk: +44 20 7043 6756               de: +49 89 420 955 854  
uk: +44 78 5335 6047               de: +49 17 8545 0880
email and xmpp: simon at buddycloud.com
http://buddycloud.com




More information about the JDev mailing list