Hi,

navit 0.2.0~svn3255+dfsg.1-3 in debian unstable seems to now support a
D-BUS interface that lets you control it from other applications. 

For example, to go to 60.187 N, 24.601 E (Kauklahti, Finland) you can run

dbus-send --type=method_call --dest=org.navit_project.navit 
/org/navit_project/navit/navit/0 
org.navit_project.navit.navit.set_center_by_string "string:geo:24.601 60.187"

To get something graphical I used

location="$(zenity --entry --text "Enter coordinates (lon lat)")"
dbus-send --type=method_call --dest=org.navit_project.navit 
/org/navit_project/navit/navit/0 
org.navit_project.navit.navit.set_center_by_string "string:geo:$location"

in a script that I can start from the icewm menu.



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to