Difference between revisions of "Garmin maps"

From Navit's Wiki
Jump to: navigation, search
(highlightning)
(restructuring, document limitations, particularly for recent Garmin maps)
 
Line 1: Line 1:
 
{{warning
 
{{warning
|There is an experimental driver for '''Garmin IMG maps'''.<small>Note that many features are not yet implemented (such as navigation).</small>
+
|This is an experimental driver for '''Garmin IMG maps'''.Note that many features are not yet implemented (such as navigation). See section "Limitations" for details.
 
}}
 
}}
  
Line 10: Line 10:
 
http://mapcenter2.cgpsmapper.com/
 
http://mapcenter2.cgpsmapper.com/
  
You can build your own from OSM data see: http://wiki.openstreetmap.org/index.php/Mkgmap
+
You can build your own from OpenStreetMap (OSM) data, see: http://wiki.openstreetmap.org/index.php/Mkgmap
 +
However, if you want to use OSM data in Navit, it makes more sense to convert to [[binfile]] format (Navit's own map format), or just download a pre-generated binfile map (see [[OpenStreetMap]]).
  
{{warning
+
Please give us feedback / bug reports/feature requests/success stories about this driver either in navit tracker or mailto:libgarmin@gmail.com.
|Driver supports only maps that '''are not locked!'''<small> Some of original Garmin maps are such, MetroGuide europe for example is NOT locked. But most of them are locked!</small>
+
 
}}
+
=Limitations / known problems=
  
Please give us feedback / bug reports/feature requests/success stories about this driver either in navit tracker or mailto:libgarmin@gmail.com.
+
* The driver supports only maps that '''are not locked!'''. Some of original Garmin maps are not locked, for example MetroGuide Europe, but most of them are.
 +
* The driver has only partial (or no?) support for address search and navigation.
 +
* The driver apparently cannot load recent (after about year 2010) original Garmin maps, because it does not support the format (''NT format''?) that recent maps use. See [https://bitbucket.org/maproom/qmapshack/issues/12/cannot-import-nt-format-map-file explanation in QMapShack's bugtracker] or [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=601135 Debian bug #601135] for details.
  
=Prerequisites=
+
=Installation and configuration=
  
 
First, get libgarmin from svn, and install it, as usual :
 
First, get libgarmin from svn, and install it, as usual :

Latest revision as of 10:39, 28 January 2016

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 OpenStreetMap (OSM) data, see: http://wiki.openstreetmap.org/index.php/Mkgmap However, if you want to use OSM data in Navit, it makes more sense to convert to binfile format (Navit's own map format), or just download a pre-generated binfile map (see OpenStreetMap).

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

Limitations / known problems[edit]

  • The driver supports only maps that are not locked!. Some of original Garmin maps are not locked, for example MetroGuide Europe, but most of them are.
  • The driver has only partial (or no?) support for address search and navigation.
  • The driver apparently cannot load recent (after about year 2010) original Garmin maps, because it does not support the format (NT format?) that recent maps use. See explanation in QMapShack's bugtracker or Debian bug #601135 for details.

Installation and configuration[edit]

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[edit]

Be sure to update navit to latest SVN

reconfigure and build navit.

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

Configure your map source[edit]

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[edit]

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>