Difference between revisions of "Garmin maps"

From Navit's Wiki
Jump to: navigation, search
(fix link)
(highlightning)
Line 22: Line 22:
 
First, get libgarmin from svn, and install it, as usual :
 
First, get libgarmin from svn, and install it, as usual :
  
 +
<source lang="bash">
 
  svn co http://libgarmin.svn.sourceforge.net/svnroot/libgarmin/libgarmin/dev libgarmin
 
  svn co http://libgarmin.svn.sourceforge.net/svnroot/libgarmin/libgarmin/dev libgarmin
 
  cd libgarmin
 
  cd libgarmin
Line 27: Line 28:
 
  ./configure
 
  ./configure
 
  make
 
  make
 +
</source>
  
 
And, as root :  
 
And, as root :  
 +
<source lang="bash">
 
  make install
 
  make install
 +
</source>
  
 
==How to build the driver==
 
==How to build the driver==
Line 38: Line 42:
  
 
<!-- Will this be outdated with [[CMake]] switch? -->
 
<!-- Will this be outdated with [[CMake]] switch? -->
 +
<source lang="bash">
 
  cd ../..
 
  cd ../..
 
  ./autogen.sh && ./configure && make
 
  ./autogen.sh && ./configure && make
 +
</source>
  
 
==Configure your map source==
 
==Configure your map source==
 
Now add your first garmin map to navit.xml (see [[Configuration]])
 
Now add your first garmin map to navit.xml (see [[Configuration]])
 
+
<source lang="xml">
 
         <mapset enabled="yes">
 
         <mapset enabled="yes">
 
                 <map type="garmin" enabled="yes" data="/path/to/gmapsupp.img"/>
 
                 <map type="garmin" enabled="yes" data="/path/to/gmapsupp.img"/>
 
         </mapset>
 
         </mapset>
 +
</source>
  
 
Where you can give it either dskimg file (gmapsupp.img) or a .tdb file
 
Where you can give it either dskimg file (gmapsupp.img) or a .tdb file
  
 
Note that only one mapset may be enabled, so if your existing navit.xml has another mapset enabled (default), you need to disable it by setting
 
Note that only one mapset may be enabled, so if your existing navit.xml has another mapset enabled (default), you need to disable it by setting
 
+
<source lang="xml">
 
         <mapset enabled="no">
 
         <mapset enabled="no">
 
+
</source>
 
You also need to add
 
You also need to add
 
+
<source lang="xml">
 
         <plugin path="$NAVIT_PREFIX/lib/libmap_garmin.so" ondemand="no"/>
 
         <plugin path="$NAVIT_PREFIX/lib/libmap_garmin.so" ondemand="no"/>
 
+
</source>
 
to the plugins section on the top of navit.xml
 
to the plugins section on the top of navit.xml
  

Revision as of 11:56, 26 December 2012

It's located here: http://libgarmin.sourceforge.net/ You will need the 'subversion' (svn) tool to install this driver.

You can search a map for your area at: http://gpsmapsearch.com/ http://mapcenter2.cgpsmapper.com/

You can build your own from OSM data see: http://wiki.openstreetmap.org/index.php/Mkgmap

Please give us feedback / bug reports/feature requests/success stories about this driver either in navit tracker or mailto:libgarmin@gmail.com.

Prerequisites

First, get libgarmin from svn, and install it, as usual :

 svn co http://libgarmin.svn.sourceforge.net/svnroot/libgarmin/libgarmin/dev libgarmin
 cd libgarmin
 ./autosh.sh
 ./configure
 make

And, as root :

 make install

How to build the driver

Be sure to update navit to latest SVN

reconfigure and build navit.

 cd ../..
 ./autogen.sh && ./configure && make

Configure your map source

Now add your first garmin map to navit.xml (see Configuration)

        <mapset enabled="yes">
                <map type="garmin" enabled="yes" data="/path/to/gmapsupp.img"/>
        </mapset>

Where you can give it either dskimg file (gmapsupp.img) or a .tdb file

Note that only one mapset may be enabled, so if your existing navit.xml has another mapset enabled (default), you need to disable it by setting

        <mapset enabled="no">

You also need to add

        <plugin path="$NAVIT_PREFIX/lib/libmap_garmin.so" ondemand="no"/>

to the plugins section on the top of navit.xml

Install a free basemap from Garmin

You can download a free base map from garmin. http://www8.garmin.com/support/download_details.jsp?id=3645

After you get GarminMobileXTFreeBasemap_4xxxx.exe, unzip it to some temporary directory. In GMobileCard/Garmin directory you will find a file called gmapbmap.img. Copy that file in some location for later use, let's say /mymaps/gmapbmap.img . Now you can remove the temporary directory. And register the map in your navit.xml

    <mapset enabled="yes">
           <map type="garmin" enabled="yes" data="/mymaps/gmapbmap.img"/>
     </mapset>