Difference between revisions of "Dbus"

From Navit's Wiki
Jump to: navigation, search
m (Zoom)
m (Zoom)
Line 25: Line 25:
 
Returns: (none)
 
Returns: (none)
  
Zooms into the map if f is positive, otherwise it zooms out. f is the zoom factor and 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.
+
Zooms into the map if f is positive, otherwise it zooms out. f is the zoom factor and has to be bigger than 1 or smaller than -1. Values between 1 and -1 have no effect. 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 16:04, 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 is the zoom factor and has to be bigger than 1 or smaller than -1. Values between 1 and -1 have no effect. 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