Difference between revisions of "Dbus"

From Navit's Wiki
Jump to: navigation, search
(Update methods)
Line 2: Line 2:
  
 
=Navit Dbus details:=
 
=Navit Dbus details:=
DBUS Service: "org.navit_project.navit" <br>
+
DBUS Service: "org.navit_project.navit" <br>
DBUS Object Path: "/org/navit_project/navit" <br>
+
DBUS Object Path: "/org/navit_project/navit" <br>
DBUS Interface: "org.navit_project.navit" <br>
+
DBUS Interface: "org.navit_project.navit" <br>
  
 
=Navit Dbus Methods:=
 
=Navit Dbus Methods:=
Line 18: Line 18:
 
Args: String: layout name<br>
 
Args: String: layout name<br>
 
Returns: (none)<br>
 
Returns: (none)<br>
 +
 +
==Zoom==
 +
 +
Name: zoom<br>
 +
Args: int f[, (int x, int y)]<br>
 +
Returns: (none)
 +
 +
Zooms into the map if f is positive, otherwise it zooms out. f has to be bigger than 1 or smaller than -1. In addition, x and y can be set to zoom into a special point on the screen.
  
 
==Setting route destinations==
 
==Setting route destinations==

Revision as of 15:54, 5 October 2008

This Document displays the requirements and implementation details of the navit dbus interface.

Navit Dbus details:

DBUS Service: "org.navit_project.navit"
DBUS Object Path: "/org/navit_project/navit"
DBUS Interface: "org.navit_project.navit"

Navit Dbus Methods:

Center map

Name: set_center
Args: (pro, x, y)
Returns: (none)

Set layout

Name: set_layout
Args: String: layout name
Returns: (none)

Zoom

Name: zoom
Args: int f[, (int x, int y)]
Returns: (none)

Zooms into the map if f is positive, otherwise it zooms out. f has to be bigger than 1 or smaller than -1. In addition, x and y can be set to zoom into a special point on the screen.

Setting route destinations

Not Implemented

Name: setRoute
Args:
Returns: none

Getting current position (in coordinates)

Not Implemented

Name: getCurrentPosition
Args: (none)
Returns: coordinate (string)

Getting current speed (in kph/mph/fps)

Not Implemented

Name: getCurrentSpeed
Args: (none)
Returns: speed in kph/mph