[Telepathy] [Bug 19586] New: Location: improve XEP-0080 so we can stay closer to it :-)

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Jan 16 04:40:55 PST 2009


On Thu, 15 Jan 2009 at 20:09:26 +0200, Pierre-Luc Beaudoin wrote:
> On Thu, 2009-01-15 at 12:09 -0500, Benjamin M. Schwartz wrote:
> > Simon McVittie wrote:
> > > On Thu, 15 Jan 2009 at 09:35:54 -0700, Peter Saint-Andre wrote:
> > >> Why do we need separate error/accuracy measures for horizontal and vertical?
> > > 
> > > I'm not completely sure why Geoclue has them. Pierre-Luc, could you take
> > > over here as geolocation liason? :-)
> Geoclue has probably them because one of the provider provites such
> information.  Vertical and horizontal error are only known when the
> accuracy is set to DETAILED.

That's one of the things I wanted you to bring up with the Geoclue
people, actually: when Rob and I discussed the Location spec we didn't see
any reason to forbid giving v/h error even when the accuracy level is not
DETAILED, which is why we suggested redefining DETAILED as "a high level of
accuracy".

On Thu, 15 Jan 2009 at 20:17:18 +0200, Pierre-Luc Beaudoin wrote:
> Exactly, a sample case is when your position is determined by your
> network IP address.  Geoclue can provide you with Country/Region/City.
> It will also provide a lon/lat position for that city.  Geoclue provides
> an accuracy level to inform the consumer that this position is precise
> to a city scale.
> 
> Such a field could be an improvement to the XEP.  Geoclue provides the
> following levels:
>         GEOCLUE_ACCURACY_LEVEL_NONE,
> 	GEOCLUE_ACCURACY_LEVEL_COUNTRY,
> 	GEOCLUE_ACCURACY_LEVEL_REGION,
> 	GEOCLUE_ACCURACY_LEVEL_LOCALITY,
> 	GEOCLUE_ACCURACY_LEVEL_POSTALCODE,
> 	GEOCLUE_ACCURACY_LEVEL_STREET,
> 	GEOCLUE_ACCURACY_LEVEL_DETAILED,
> where horizontal and vertical error is available on _DETAILED.

Right, so if we wanted this in the XEP, these could map to something like:

(NONE represented by omission of <accuracy-level/>)
<accuracy-level>country</accuracy-level>
<accuracy-level>region</accuracy-level>
<accuracy-level>locality</accuracy-level>
<accuracy-level>postalcode</accuracy-level>
<accuracy-level>street</accuracy-level>
<accuracy-level>detailed</accuracy-level>

... although I suppose detailed could be implied by the presence of
<vertical-error/> and <horizontal-error/> with small numeric values,
really.

    Simon


More information about the Telepathy mailing list