The Navit Command Interface
From Navit's Wiki
Commands
Commands available in the internal GUI:
| Command | Meaning |
|---|---|
| abort_navigation() | Cancels navigation: The route is cleared and Navit switches to tracking mode. |
| about() | Displays the About screen. |
| back() | FIXME: description to be completed. |
| back_to_map() | Leaves the menu and returns to map view. |
| bookmarks() | Shows bookmarks. |
| formerdests() | Shows list of former destinations. |
| get_data() | FIXME: description to be completed |
| locale() | Shows locale information. |
| log() | FIXME: seems to bring up a dialog allowing the user to enter a message which will get written to the debug log; useful to mark a position in the log |
| menu(fromosd, href, replace) | Brings up the menu (may be used as gui.menu() ). First optional argument, fromosd, is to be specified as 1 when calling this command from an osd button by the tap or mouse click, otherwise it may be omitted or set to zero. You may get directly into the sub-menu by specifying its href anchor like this: gui.menu("#Actions") . Also, if href is specified, this command may close currently opened sub-menu and open another one on its place if 'replace' is non-zero numeric:gui.menu("#Actions",1). |
| pois(position,filter,isaddressfilter) | Displays POIs around given point, possibly filtering them by text string as it would be entered in POI filtering dialog. Second and third arguments may be omitted. |
| position(position, text, flags) | Presents possible operations on a position (set as current location, set as destination etc.). position is a coordinate-type attribute (e.g. position_coord_geo). |
| quit() | Closes Navit. |
| redraw_map() | FIXME: found in an internal GUI menu item but navit/gui/internal/gui_internal.c does not declare this command (as of at least r3520) - has this command been removed? |
| route_description() | Shows a turn-by-turn description of the active route when in navigation mode. |
| route_height_profile() | Shows a height profile of the active route when in navigation mode. |
| setting_layout() | Presents a selection of available screen layouts. |
| setting_maps() | Presents a dialog to switch between available mapsets. |
| setting_rules() | Presents a dialog for setting various internal options. |
| setting_vehicle() | Presents a dialog for selecting the active vehicle. |
| town() | Presents a dialog for selecting an address, starting with a town. |
| write(attribute) | Writes an attribute. Used by the GUI menu in conjunction with <script> to display the content of an attribute in a menu item. |
| navit.route_remove_next_waypoint() | Removes the next waypoint of the current route with waypoints. Since r5004. |
| navit.route_remove_last_waypoint() | Removes the last waypoint of the current route with waypoints. Since r5004. |