Difference between revisions of "Configuration"

From Navit's Wiki
Jump to: navigation, search
(Split up into multiple pages)
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
It is also possible to edit the navit.xml file for your Android device under Windows and Linux (Debian/Ubuntu derivates) with a third party application called [[NavitConfigurator]].
 
It is also possible to edit the navit.xml file for your Android device under Windows and Linux (Debian/Ubuntu derivates) with a third party application called [[NavitConfigurator]].
  
Setting up Navit is done by editing a configuration file called "'''navit.xml'''".Editing this file in a text editor is simple, it's just a plain text XML file, that can be edited with any editor. Just remember to ''turn off 'save UTF8 byte mark' in Preferences'' or navit may complain very much on the first byte of the file.<br>
+
Setting up Navit is done by editing a configuration file called "'''navit.xml'''".
The file is splitted into sections within a hierarchy:
+
Editing XML configurations files in a text editor is simple, they are just plain text XML files, that can be edited with any editor. Just remember to ''turn off 'save UTF8 byte mark' in Preferences'' or navit may complain very much on the first byte of the file.<br>
 +
The XML configuration file is splitted into sections within a hierarchy:
 
<source lang="xml">
 
<source lang="xml">
 
<config>
 
<config>
Line 17: Line 18:
 
</source>
 
</source>
  
Navit comes '''preshipped''' with an default navit.xml that is stored at various locations (depending on your system):
+
Navit comes '''preshipped''' with a default navit.xml together with navit_layout_*.xml files that are stored at various locations (depending on your system). For Linux-like OSes:
* in ~/.navit/navit.xml : e.g : /home/myusername/.navit/navit.xml (This is probably to best place to customize your settings!)
+
* in ~/.navit/ : e.g : /home/myusername/.navit/navit.xml (This is probably to best place to customize your settings!)
 
* in /usr/share/navit or /etc/navit
 
* in /usr/share/navit or /etc/navit
  
 
Navit will apply settings in the following order:
 
Navit will apply settings in the following order:
 
* in the current directory (used on Windows)
 
* in the current directory (used on Windows)
* location supplied as first argument on the command line, e.g.: navit /home/myusername/navittestconfig.xml (Used mainly for development)
+
* location supplied as first argument on the command line, e.g.: navit /home/myusername/navittestconfig.xml (Used mainly for development)
 
* in the current directory as navit.xml.local (Used mainly for development)
 
* in the current directory as navit.xml.local (Used mainly for development)
  
Line 106: Line 107:
 
| style="margin:2px; padding:10px;" |
 
| style="margin:2px; padding:10px;" |
  
Maps are displayedaccording to the rules defined in the layout. All aspects of the layout are configurable, from POI icons to colours for a particular type of highway.
+
Maps are displayed according to the rules defined in the layout. All aspects of the layout are configurable, from POI icons to colours for a particular type of highway.
 +
 
 +
For all versions shipped after nov 2018, layout XML configuration is stored in dedicated XML files called with the prefix '''navit_layout_''' (one file per layout definition).
  
 
[[Configuration/Layout_Options| Layout options.]]
 
[[Configuration/Layout_Options| Layout options.]]
Line 135: Line 138:
  
 
[[Category:Customizing]]
 
[[Category:Customizing]]
 +
[[Category:Configuration]]

Latest revision as of 22:39, 1 January 2019

Navit is highly modular and customizable. This page aims to point out the most common options which a first-time user may want to change - power users may want to consult the full list of options. It is also possible to edit the navit.xml file for your Android device under Windows and Linux (Debian/Ubuntu derivates) with a third party application called NavitConfigurator.

Setting up Navit is done by editing a configuration file called "navit.xml". Editing XML configurations files in a text editor is simple, they are just plain text XML files, that can be edited with any editor. Just remember to turn off 'save UTF8 byte mark' in Preferences or navit may complain very much on the first byte of the file.
The XML configuration file is splitted into sections within a hierarchy:

<config>
  <plugins></plugins>
  <navit>
    <osd></osd>
    <vehicle></vehicle>
    <vehicleprofile></vehicleprofile>
    <mapset></mapset>
    <layout></layout>
  </navit>
</config>

Navit comes preshipped with a default navit.xml together with navit_layout_*.xml files that are stored at various locations (depending on your system). For Linux-like OSes:

  • in ~/.navit/ : e.g : /home/myusername/.navit/navit.xml (This is probably to best place to customize your settings!)
  • in /usr/share/navit or /etc/navit

Navit will apply settings in the following order:

  • in the current directory (used on Windows)
  • location supplied as first argument on the command line, e.g.: navit /home/myusername/navittestconfig.xml (Used mainly for development)
  • in the current directory as navit.xml.local (Used mainly for development)

Configurable Sections[edit]

General

Common options such as units, position, zoom and map orientation, ... be configured in this section.

General options.

Display

A large number of display properties can be configured, including desktop or touchscreen-optimised GUIs, on-screen display items and complete control over menu items.

Display options.


Vehicle

A number of vehicles can be defined within Navit, depending upon the device and/or operating system in use. Vehicle profiles for routing (eg: car, pedestrian, bicycle...) are also completely configurable.

Vehicle options.

Maps

You can use maps from a variety of sources, any number of maps can be configured and enabled at any one time.

Maps options.

Layout

Maps are displayed according to the rules defined in the layout. All aspects of the layout are configurable, from POI icons to colours for a particular type of highway.

For all versions shipped after nov 2018, layout XML configuration is stored in dedicated XML files called with the prefix navit_layout_ (one file per layout definition).

Layout options.

Advanced

There are many more options, including debugging, specific plugins, speech announcements, trip logging, ...

Advanced options.