GPSDevice

From http://wiki.maemo.org/PyMaemo/Using_Location_API#Using_liblocation_from_Python: GPSDevice has information about device status and contains the actual fix when one exists.

Attributes

location.GPSDevice.online

Whether there is a connection to the hardware

location.GPSDevice.status

Status of the device

location.GPSDevice.fix

Tuple containing actual fix data (latitude, longitude, etc)

location.GPSDevice.satellites_in_view

Number of satellites in view

location.GPSDevice.satellites_in_use

Number of satellites in use

location.GPSDevice.satellites

Array of satellites

location.GPSDevice.cell_info

Information about cell the device is connected to

Warning

Currently the attributes satellites and cell_info are not supported in Python.

Fix attribute indexes

fix[0]

The mode of the fix

fix[1]

A bitfield representing which items of this tuple contain valid data

fix[2]

The timestamp of the update (location.GPS_DEVICE_TIME_SET)

fix[3]

Time accuracy

fix[4]

Fix latitude (location.GPS_DEVICE_LATLONG_SET)

fix[5]

Fix longitude (location.GPS_DEVICE_LATLONG_SET)

fix[6]

Horizontal position accuracy

fix[7]

Fix altitude in meters (location.GPS_DEVICE_ALTITUDE_SET)

fix[8]

Vertical position accuracy

fix[9]

Direction of motion in degrees (location.GPS_DEVICE_TRACK_SET)

fix[10]

Track accuracy

fix[11]

Current speed in km/h (location.GPS_DEVICE_SPEED_SET)

fix[12]

Speed accuracy

fix[13]

Current rate of climb in m/s (location.GPS_DEVICE_CLIMB_SET)

fix[14]

Climb accuracy

Methods

location.GPSDevice.reset_last_known()

Resets the last known location to unknown.

location.GPSDevice.start()

Warning

location.GPSDevice.start() is deprecated and should not be used in newly-written code. This function does nothing.

location.GPSDevice.stop()

Warning

location.GPSDevice.stop() is deprecated and should not be used in newly-written code. This function does nothing.