Wifi positioning backends
Jussi Kukkonen
jhkukkon at cc.hut.fi
Wed Aug 1 03:09:58 PDT 2007
Andrew Turner wrote:
> I think having at least a backend example implemented in Python is
> good for encouraging developers to create new backends. Getting up and
> running with Maemo Development isn't "easy" and can discourage some
> new developers. Similarly, I think we should have a full Python
> application example that uses the GeoClue service.
I agree completely, this is why I thought I needed to backup my
argument... Using a generic message bus is a major plus for geoclue, but
only if using geoclue with 'easier' languages/development platforms is
possible in practice also.
> Your points are valid, and so maybe also having a C version for
> default install is ok - but keeping the Python one as the
> primary/example.
>
This turned out to be fairly easy and I was able reuse a lot of hostip
code (the functions are still copy-pasted, not #included). This is what
I currently have (omitting debug messages):
jku at loki:~$ geoclue-position-example plazes
You are at 60.196908 24.878229
Country: Finland
Locality: HELSINKI
Postalcode: 00330
Street: Solnantie 24
Text: Jussi's home
jku at loki:~$
For reference, this is what hostip outputs:
jku at loki:~$ geoclue-position-example hostip
You are at 60.266700 25.000000
Country: FINLAND
Locality: Helsinki
Postalcode:
Street:
Text:
jku at loki:~$
I'll commit over the current "backend/position_plazes/"-stub. If someone
has a problem with this, let me know and we'll solve the issue.
Btw, assigning an accuracy value to coordinates from plazes is going to
be a bit hairy too -- the accuracy of my example is somewhere around 50m
(the range of my AP + some error in my AP location) but not all APs will
have a an accurate location... maybe 100-500m is a good guestimate.
-jussi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: OpenPGP digital signature
Url : http://lists.freedesktop.org/archives/geoclue/attachments/20070801/cf548592/attachment.pgp
More information about the GeoClue
mailing list