Difference between revisions of "Projects/Marble/MaemoOfflineRouting"

Jump to: navigation, search
(Installation of Marble and Gosmore on a Nokia N900)
 
m (Text replace - "</code>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Marble will support offline routing (calculating routes without Internet access) starting with KDE 4.6. You can use subversion trunk to give it a try already. This page lists installation steps necessary to install experimental Marble packages and Gosmore, an offline router, on a Nokia N900 device.
 
 
'''The Marble version you are going to install is experimental and not well tested. The installation is not intended for casual users. SSH access to your N900 is required.'''
 
 
== Install Marble and Gosmore on the N900 ==
 
You do need a recent version from subversion trunk. Marble 0.10 is definitely too old. Either [[Projects/Marble/MaemoPackaging|compile Marble yourself]] or use the packages provided [http://nienhueser.de/marble/maemo/binary/ here]:
 
 
<code bash>
 
ssh root@IP-of-your-n900
 
echo "deb http://nienhueser.de/marble/maemo binary/" > /etc/apt/sources.list.d/nienhueser.list
 
</code>
 
 
From there on you can use Maemo's package manager to install Marble and Gosmore: Open the package manager, refresh the package list and install Marble and Gosmore from the navigation section. Now start Marble from the application menu to make sure the installation went fine.
 
 
 
== Install a Gosmore Map on the N900 ==
 
== 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 [http://wiki.openstreetmap.org/wiki/Gosmore OSM Wiki] for more details on installing gosmore.
 
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 [http://wiki.openstreetmap.org/wiki/Gosmore OSM Wiki] for more details on installing gosmore.
Line 21: Line 7:
 
=== Generate the .pak Map ===
 
=== Generate the .pak Map ===
 
Assuming you downloaded a OSM .xml map called mycountry.osm.bz2, create the .pak map for Gosmore like this:
 
Assuming you downloaded a OSM .xml map called mycountry.osm.bz2, create the .pak map for Gosmore like this:
<code bash>
+
<syntaxhighlight lang="bash">
 
bzcat mycountry.osm.bz2 | gosmore rebuild
 
bzcat mycountry.osm.bz2 | gosmore rebuild
</code>
+
</syntaxhighlight>
 
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.
 
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 ===
 
=== Copy the .pak Map to your N900 ===
 
First, create the directory on your N900 where Marble will look for your Gosmore map.
 
First, create the directory on your N900 where Marble will look for your Gosmore map.
<code bash>
+
<syntaxhighlight lang="bash">
 
ssh root@IP-of-your-n900
 
ssh root@IP-of-your-n900
 
mkdir -p /home/user/MyDocs/.local/share/marble/maps/earth/gosmore/
 
mkdir -p /home/user/MyDocs/.local/share/marble/maps/earth/gosmore/
 
logout
 
logout
</code>
+
</syntaxhighlight>
  
 
Afterwards copy the previously generated gosmore.pak to the N900:
 
Afterwards copy the previously generated gosmore.pak to the N900:
<code bash>
+
<syntaxhighlight lang="bash">
 
scp gosmore.pak root@IP-of-your-n900:/home/user/MyDocs/.local/share/marble/maps/earth/gosmore/
 
scp gosmore.pak root@IP-of-your-n900:/home/user/MyDocs/.local/share/marble/maps/earth/gosmore/
</code>
+
</syntaxhighlight>
  
 
== Use Gosmore and Marble ==
 
== Use Gosmore and Marble ==

Latest revision as of 21:57, 29 June 2011

Contents

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

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

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

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.

[edit] Copy the .pak Map to your N900

First, create the directory on your N900 where Marble will look for your Gosmore map.

ssh root@IP-of-your-n900
mkdir -p /home/user/MyDocs/.local/share/marble/maps/earth/gosmore/
logout

Afterwards copy the previously generated gosmore.pak to the N900:

scp gosmore.pak root@IP-of-your-n900:/home/user/MyDocs/.local/share/marble/maps/earth/gosmore/

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

Marble using Gosmore on a Nokia N900

This page was last modified on 29 June 2011, at 21:57. This page has been accessed 3,313 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal