Editing PyMaemo/Using Location API
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 11: | Line 11: | ||
import location | import location | ||
</source> | </source> | ||
- | Liblocation has two public <code>GObject</code>s. <code>GPSDControl</code | + | Liblocation has two public <code>GObject</code>s. <code>GPSDControl</code. is used for starting and stopping of location services, setting location method and interval, and listening for errors. <code>GPSDevice</code> has information about device status and contains the actual fix when one exists. The two <code>GObjects</code> are initiated as follows. |
<source lang="python"> | <source lang="python"> | ||
control = location.GPSDControl.get_default() | control = location.GPSDControl.get_default() | ||
device = location.GPSDevice() | device = location.GPSDevice() | ||
</source> | </source> | ||
- | |||
== Location methods == | == Location methods == | ||
Learn more about Contributing to the wiki.