Projects/Marble/MaemoOfflineRouting

< Projects‎ | Marble
Revision as of 21:42, 29 June 2011 by Neverendingo (Talk | contribs)

Jump to: navigation, search

Install a Gosmore Map on the N900

Given the limited computing power of the N900, I'd strongly recommend to do the required map conversion (OSM .xml format to gosmore .pak format) on a different system with more power. You just need to ensure that the .pak file generated is compatible. Version 20090624-1 and older for example are not compatible. Please consult the OSM Wiki for more details on installing gosmore.

Download a OSM Map

You need some part of the world in OSM .xml format. The best way is to download one of the ready snapshots listed in the OSM Wiki. Don't choose the entire planet, but a reasonable sized map. A 132 MB .osm.bz2 works fine here for example.

Generate the .pak Map

Assuming you downloaded a OSM .xml map called mycountry.osm.bz2, create the .pak map for Gosmore like this:

bzcat mycountry.osm.bz2 | gosmore rebuild
</code>
Depending on the size of the map and the speed of your computer, the map generation will take between a couple of minutes and some hours. Once done, gosmore itself opens the map in a new window you can close. The map file you are looking for is gosmore.pak.
 
=== Copy the .pak Map to your N900 ===
First, create the directory on your N900 where Marble will look for your Gosmore map.
<syntaxhighlight lang="bash">
ssh root@IP-of-your-n900
mkdir -p /home/user/MyDocs/.local/share/marble/maps/earth/gosmore/
logout
</code>
 
Afterwards copy the previously generated gosmore.pak to the N900:
<syntaxhighlight lang="bash">
scp gosmore.pak root@IP-of-your-n900:/home/user/MyDocs/.local/share/marble/maps/earth/gosmore/
</code>
 
== Use Gosmore and Marble ==
When following the instructions above, Marble will automatically include Gosmore to calculate routes. In offline mode, Gosmore will be the only routing provider used. It looks similar to this:
 
[[File:Marble-gosmore-maemo.png|400px|thumb|left|Marble using Gosmore on a Nokia N900]]

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal