New release of Python2.5 for Maemo (r0.4-12)

Henri Bergius henri.bergius at iki.fi
Fri Jul 20 04:54:26 PDT 2007


On 7/19/07, Luciano Miguel Wolf <luciano.wolf at indt.org.br> wrote:
> Next major release is planned to have GPS and Address book support.

Hey, consider using GeoClue instead of direct GPS. That way apps can
get position information even when GPS is not available...

# TODO: Get the GeoClue interface to use from
/schemas/apps/geoclue/position/defaultpath
# and /schemas/apps/geoclue/position/defaultservice GConf keys
proxy_obj = bus.get_object('org.foinse_project.geoclue.position.hostip',
'/org/foinse_project/geoclue/position/hostip')
geoclue_iface = dbus.Interface(proxy_obj, 'org.foinse_project.geoclue.position')

# Get the coordinates from the service
coordinates = geoclue_iface.current_position()

Simple, isn't it? :-)

GeoClue is being considered as a default part of the GNOME Mobile and
Embedded stack, so supporting it instead of direct gpsd would make
sense.

http://www.freedesktop.org/wiki/Software/GeoClue/
http://vilunki.wordpress.com/2007/07/19/geoclue-release/

> Luciano Wolf

/Henri

-- 
Henri Bergius
Motorcycle Adventures and Free Software
http://bergie.iki.fi/

Skype: henribergius
Jabber: henri.bergius at gmail.com
Jaiku: http://bergie.jaiku.com/


More information about the GeoClue mailing list