Go Back   Horizons Unlimited - The HUBB > Equipment, Travel > Navigation - Maps, Compass, GPS
Navigation - Maps, Compass, GPS How to find your way - traditional map, compass and road signs, or GPS and more
Photo by Daniel Rintz, Himba children, Namibia

The only impossible journey
is the one
you never begin

Photo by Daniel Rintz,
Himba children, Namibia




Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 30 Dec 2009
mj's Avatar
mj mj is offline
Registered Users
Veteran HUBBer
 
Join Date: May 2006
Location: Austin, TX
Posts: 303
HowTo: OpenStreetMap Offline Use

In addition to Ulrich's excellent Google Earth Campsites Worldwide thread and his Google Earth Offline use thread I'd like to present a third possibility to take advantage of digital maps: OpenStreetMap offline.

For those of you who have never heard of OpenStreetMap before here's a short intro: while Google Maps and Google Earth are certainly terrific and free to use they're not free. Google has rather strict terms of use, e.g. that one is only allowed to use it within a web browser. The OSM project aims at mapping the entire world and create a free to use map for everybody. It's sort of like Wikipedia: everybody can contribute. The maps are already great and very detailed, especially in cities - take a look yourself: OpenStreetMap
And the best part: just like Wikipedia they're absolutely free.

To use these maps offline you need to things: Navit and a map (duh).

Linux
The following instructions should be valid for all Linux distros. However, since there are new ones every day and support for others is dropped at the very same rate these instructions may or may not work. I have sucessfully installed Navit on openSUSE and Ubuntu.

1. Install Navit
You can grab prebuilt packages for openSUSE and Ubuntu. For openSUSE go to Software.openSUSE.org and grab the proper RPM. For Ubuntu follow these instructions. All other distributions: look for prebuilt packages (for example on rpmseek.net) or build Navit from source

2. Grab Maps
Next grab the maps you need:Unfortunately, Navit cannot handle raw OSM files and requires a conversion into its native .bin format. This task can take a while, especially on slower computers. To give you a rough estimate: my 1.6 GHz Atom Netbook has been processing the map of Europe for the past 2 hours and it doesn't look like it'll finish anytime soon. My AMD quadcore took 52 minutes to process the map of Europe.

3. Convert maps
To convert simply type:
bzcat /path/to/europe.osm.bz2 | maptool europe.bin
This will convert the compressed OSM file and put a europe.bin file to your current directory. I recommend using ~/Maps for converted maps. Once you've started maptool go grab a coffee. Or two. And continue with the next step.

Note: for some weird reason the openSUSE RPM named this tool osm2navit instead of maptool

4. Configure Navit

Navit creates a ~/.navit directory on first start but fails to copy the include its own navit.xml config file.

openSUSE: cp /usr/share/navit/navit.xml ~./navit/
Ubuntu: cp /usr/navit/navit.xml ~/.navit/
Built from source: same directory as navit binary, no need to copy it
All other distros: find / -name "navit.xml" then copy accordingly


Open the newly copied file and modify the following settings:

Code:
<!-- If you dont want to use the sample map, either set enabled="no" in the next line or remove the xml file from the maps directory -->
<mapset enabled="no">
   <xi:include href="$NAVIT_SHAREDIR/maps/*.xml"/>
</mapset>
Code:
<!-- Mapset template for openstreetmaps -->
<mapset enabled="yes">
 <map type="binfile" enabled="yes" data="/path/to/your/converted/map.bin"/>
</mapset>
5. Pick a user interface
Navit offers two different user interfaces (GUI). For netbooks and devices with small screens I would recommend internal. For devices with larger screens you can also use gtk. By default navit starts with internal

Internal:


GTK:



To configure the GUI:
Code:
<gui type="gtk" enabled="yes/no" menubar="1" toolbar="1" statusbar="1"/>
   <!-- In case of the internal GUI, you can even influence the size of the text and of the icons in the toolbar and the viewport. Here's an example for a freerunner: -->
   <!-- <gui type="internal" font_size="350" icon_xs="32" icon_s="96" icon_l="96"/> -->
<gui type="internal" enabled="yes/no"><![CDATA[
If you decide to go with the internal GUI then I would recommend to edit the following setting, too. It'll give you zoom in / zoom out buttons on the bottom left and right, and a toggle fullscreen button on the top left:

Code:
<osd enabled="yes" type="button" x="0" y="0" command="gui.fullscreen()" src="toggle_fullscreen.xpm"/> 
<osd enabled="no" type="button" x="-96" y="0" command="gui.menu()" src="menu.xpm"/>
<osd enabled="yes" type="button" x="-96" y="-96" command="zoom_in()" src="zoom_in.xpm"/>
<osd enabled="yes" type="button" x="0" y="-96" command="zoom_out()" src="zoom_out.xpm"/>
The GUI menu button is not necessary since clicking anywhere will get you the menu either way.

6. Done
Enjoy your free and incredibly detailed maps.


Windows
If you, like many other people, think that Linux is too complicated, and the Linux instructions have cemented your opinion, then you're in for a big surprise. Compared to Linux the Windows version of Navit is just as complicated.

1. Install Navit
Two possibilities:Whichever way you chose, you're not done yet. If you chose the installer go to C:\Program Files\Navit\bin and move navit.exe and maptool.exe to C:\Program Files\Navit\share\navit. Don't forget to adjust your start menu shortcuts accordingly. If you chose the all-in-one zip package extract it and move the two files accordingly.

2. Grab Maps
See above

3. Convert Maps
First, since bzcat is not available on Windows and you most probably do not have CygWIN installed, you need to uncompress the compressed osm.bz2 file. I recommend 7-Zip.

Next open a command line (Start - Run - cmd) and type:
cd C:\Program Files\Navit\share\navit
maptool -i C:\PATH\TO\UNCOMPRESSED\europe.osm C:\PATH\TO\CONVERTED\europe.bin
Make sure you have enough disk space available - you'll need several gigabytes.

4. Configure Navit
See above. The config file can be found in C:\Program Files\Navit\share\navit and is also named navit.xml

5. Pick a user interface
See above. I haven't figured out how to use the GTK Gui on Windows. I know it's possible, because I've seen screenshots of GTK Windows versions of Navit, but I'll leave that to a Windows pro. Also, the zoom buttons will only appear once you've opened the menu (left-click anywhere) and returned to map view (globe on top left).

6. Done
Enjoy your free and incredibly detailed maps.









Don't hesitate to ask if you have questions.
__________________
"Life is not a journey to the grave with the intention of arriving safely in one pretty and well preserved piece, but to skid across the line broadside, thoroughly used up, worn out, leaking oil, shouting GERONIMO!"

Last edited by mj; 10 Feb 2010 at 10:02.
Reply With Quote
  #2  
Old 10 Feb 2010
apapadop's Avatar
Gold Member
Veteran HUBBer
 
Join Date: Apr 2008
Location: London, UK
Posts: 119
Ahh, good stuff MJ. I'd like to add a note to this thread that if people want to use maps of specific areas only, the easiest bet seems to be http://garmin.na1400.info/routable.php

Over a web interface, that site provides:

Quote:
* Installer for Garmin MapSource (Windows).
* Installer for Garmin RoadTrip (Mac OSX)
* Combined image for direct manual placement on the GPS device (gmapsupp.img)
* A zip file just containing all the Garmin map tiles as selected on this website. This is useful for Linux users (e.g. Qlandkarte)
Thanks for the tutorial, will certainly check it out when I get back home.

Alex
Reply With Quote
  #3  
Old 10 Feb 2010
mj's Avatar
mj mj is offline
Registered Users
Veteran HUBBer
 
Join Date: May 2006
Location: Austin, TX
Posts: 303
Thanks for your note regarding the links for map downloads, apapadop. I have edited my initial post and replaced the link for "Continent or country" to point to the correct place now.

Not having a Garmin/Falk/TomTom/etc. GPS I'd be interested if it's actually possible to use OSM data in these devices. Currently I use Copilot for Android as GPS, and I cannot use OSM data with Copilot. There are a few GPS tools that do use OSM maps, but none of them is an Offline GPS so they all require a constant internet connection. Which, as we probably all know, can get quite expensive once you've left your home country...
__________________
"Life is not a journey to the grave with the intention of arriving safely in one pretty and well preserved piece, but to skid across the line broadside, thoroughly used up, worn out, leaking oil, shouting GERONIMO!"
Reply With Quote
  #4  
Old 11 Feb 2010
Registered Users
HUBB regular
 
Join Date: Oct 2009
Location: London
Posts: 24
Thx for this mj, I do have a quick question when you get a moment.

Do you (or anyone) have any experience with OSM as compared to the routable (paid for) garmin maps. I'm thinking Russia/Mongolia/Kazekhstan in particular. I'll most likely have the new baby Garmin, the Zumo 220, available next month according to my source (google). I'm looking for the usual flexibility and ease of use.
__________________
Reality is something you rise above. - Liza Minnelli (1946 - )
Reply With Quote
  #5  
Old 11 Feb 2010
apapadop's Avatar
Gold Member
Veteran HUBBer
 
Join Date: Apr 2008
Location: London, UK
Posts: 119
Quote:
Originally Posted by mj View Post
<snip>
Not having a Garmin/Falk/TomTom/etc. GPS I'd be interested if it's actually possible to use OSM data in these devices.
<snip>
Indeed it is, but obviously the OSM data need to be converted to the respective format each manufacturer likes.

For instance, the processing needed to produce Garmin-digestible maps is very kindly done for you by http://garmin.na1400.info/routable.php

Magellan maps seem to be pre-fabbed here: http://maps4me.net/

Similarly, http://wiki.openstreetmap.org and/or Google should have the rest of the answers - I have only researched the Garmin option as this is what I use.

HTH

Alexandros
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 Registered Users and/or Members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GoogleEarth use offline? - Yes! Ulrich Navigation - Maps, Compass, GPS 23 28 Apr 2013 08:28
OpenStreetMap : Garmin India (adding roads) Akentigernfox Navigation - Maps, Compass, GPS 0 17 Dec 2009 11:39
openstreetmap.org apapadop Navigation - Maps, Compass, GPS 0 2 Jun 2009 15:10
25l Acerbis tank on DR650SE HowTo beddhist Suzuki Tech 2 26 Aug 2008 03:15
Howto: Fushiki-Vladivostok ferry 2cvfred Northern and Central Asia 0 19 Jul 2007 11:25

 
 

Announcements

Thinking about traveling? Not sure about the whole thing? Watch the HU Achievable Dream Video Trailers and then get ALL the information you need to get inspired and learn how to travel anywhere in the world!

Have YOU ever wondered who has ridden around the world? We did too - and now here's the list of Circumnavigators!
Check it out now
, and add your information if we didn't find you.

Next HU Eventscalendar

HU Event and other updates on the HUBB Forum "Traveller's Advisories" thread.
ALL Dates subject to change.

2024:

Add yourself to the Updates List for each event!

Questions about an event? Ask here

HUBBUK: info

See all event details

 
World's most listened to Adventure Motorbike Show!
Check the RAW segments; Grant, your HU host is on every month!
Episodes below to listen to while you, err, pretend to do something or other...

2020 Edition of Chris Scott's Adventure Motorcycling Handbook.

2020 Edition of Chris Scott's Adventure Motorcycling Handbook.

"Ultimate global guide for red-blooded bikers planning overseas exploration. Covers choice & preparation of best bike, shipping overseas, baggage design, riding techniques, travel health, visas, documentation, safety and useful addresses." Recommended. (Grant)



Ripcord Rescue Travel Insurance.

Ripcord Rescue Travel Insurance™ combines into a single integrated program the best evacuation and rescue with the premier travel insurance coverages designed for adventurers.

Led by special operations veterans, Stanford Medicine affiliated physicians, paramedics and other travel experts, Ripcord is perfect for adventure seekers, climbers, skiers, sports enthusiasts, hunters, international travelers, humanitarian efforts, expeditions and more.

Ripcord travel protection is now available for ALL nationalities, and travel is covered on motorcycles of all sizes!


 

What others say about HU...

"This site is the BIBLE for international bike travelers." Greg, Australia

"Thank you! The web site, The travels, The insight, The inspiration, Everything, just thanks." Colin, UK

"My friend and I are planning a trip from Singapore to England... We found (the HU) site invaluable as an aid to planning and have based a lot of our purchases (bikes, riding gear, etc.) on what we have learned from this site." Phil, Australia

"I for one always had an adventurous spirit, but you and Susan lit the fire for my trip and I'll be forever grateful for what you two do to inspire others to just do it." Brent, USA

"Your website is a mecca of valuable information and the (video) series is informative, entertaining, and inspiring!" Jennifer, Canada

"Your worldwide organisation and events are the Go To places to for all serious touring and aspiring touring bikers." Trevor, South Africa

"This is the answer to all my questions." Haydn, Australia

"Keep going the excellent work you are doing for Horizons Unlimited - I love it!" Thomas, Germany

Lots more comments here!



Five books by Graham Field!

Diaries of a compulsive traveller
by Graham Field
Book, eBook, Audiobook

"A compelling, honest, inspiring and entertaining writing style with a built-in feel-good factor" Get them NOW from the authors' website and Amazon.com, Amazon.ca, Amazon.co.uk.



Back Road Map Books and Backroad GPS Maps for all of Canada - a must have!

New to Horizons Unlimited?

New to motorcycle travelling? New to the HU site? Confused? Too many options? It's really very simple - just 4 easy steps!

Horizons Unlimited was founded in 1997 by Grant and Susan Johnson following their journey around the world on a BMW R80G/S.

Susan and Grant Johnson Read more about Grant & Susan's story

Membership - help keep us going!

Horizons Unlimited is not a big multi-national company, just two people who love motorcycle travel and have grown what started as a hobby in 1997 into a full time job (usually 8-10 hours per day and 7 days a week) and a labour of love. To keep it going and a roof over our heads, we run events all over the world with the help of volunteers; we sell inspirational and informative DVDs; we have a few selected advertisers; and we make a small amount from memberships.

You don't have to be a Member to come to an HU meeting, access the website, or ask questions on the HUBB. What you get for your membership contribution is our sincere gratitude, good karma and knowing that you're helping to keep the motorcycle travel dream alive. Contributing Members and Gold Members do get additional features on the HUBB. Here's a list of all the Member benefits on the HUBB.




All times are GMT +1. The time now is 17:37.