Difference between revisions of "Application:Navit"

From WebOS Internals
Jump to: navigation, search
(Where do you get the latest version of Navit for WebOS 1.4.5 and above ?)
(Removed install instructions for webos 1.4.1 as allmost all are on 1.4.5 now.)
Line 41: Line 41:
 
If you have any questions about this version then you can find help here => http://forums.precentral.net/webos-internals/254622-navit-3d-car-navigation-system.html
 
If you have any questions about this version then you can find help here => http://forums.precentral.net/webos-internals/254622-navit-3d-car-navigation-system.html
  
== Where do you get the latest ALPHA version of Navit for WebOS 1.4.1 ? ==
 
 
 
HaPe and noradtux have put this ALPHA version into a zip file all for you to enjoy, test, curse, and provide feedback at
 
http://forums.precentral.net/webos-internals/224609-navit-pre.html
 
 
'''Attention: This packages only work with webos < 1.4.5 . A version for 1.4.5 and above will be in Preware when finished.'''
 
 
You get the zip file for webos < 1.4.5 here => [http://www.hp-jochmann.de/Download.nsf/Download?OpenAgent&doc=37B8A6BE782A7E04C1257702006A6DCD Navit Alpha]
 
 
'''Attention: This packages only work with webos < 1.4.5 . A version for 1.4.5 and above will be in Preware when finished.'''
 
 
As instructed by HaPe you install it onto your Pre  by,
 
 
# The zip file contains a navit ipk, a espeak ipk and some locale ipks. The easy way to install is by using WebOSQuickInstall  found here  http://forums.precentral.net/canuck-software/228310-webos-quick-install-v3-14-a.html  . Note Preware install method is not yet available, its promised in the future once the Palm PDK is officially released.  If you have old versions of navit and espeak then use Preware or WebOSQuickInstall to delete them, although the locale ipk could be left alone.
 
# You need to install at least the navit and the espeak ipk.  You will see an Icon for both Navit and espeak (press it first and you get a speech to confirm it works!)
 
# The default of the Navit menus and speak output is English. To get a other local language working you need to install the locale ipk for your lang/county. I made some small once with only one lang_COUNTRY combination and one big with all I have. Only use the all one if you can not find a matching other, as the installed size is about 64MB for the all one. ONLY INSTALL ONE LOCAL IPK AT THE TIME!!!!!! '''At the moment there is a bug when you remove an locale ipk. One symbolic link is not removed. You need to do this manually by executing the following commands from novterm or from the WOQI command line:
 
## mount -o remount,rw /
 
## rm /usr/lib/locale
 
## mount -o remount,ro /'''
 
#  You also need a map. Go to http://maps.navit-project.org/download/ and create one of the part of the world you need or look for created maps here => http://wiki.navit-project.org/index.php/OpenStreetMaps or use this direct links:<br/>[http://maps.navit-project.org/api/map/?bbox=-125.4,24.3,-66.5,49.3 USA (except Alaska and Hawaii)]<br/>[http://maps.navit-project.org/api/map/?bbox=-179.5,49.5,-129,71.6 Alaska]<br/>[http://maps.navit-project.org/api/map/?bbox=-161.07,18.49,-154.45,22.85 Hawaii]<br/>[http://maps.navit-project.org/api/map/?bbox=-141.3,41.5,-52.2,70.2 Canada]<br/>[http://maps.navit-project.org/api/map/?bbox=-117.6,14.1,-86.4,32.8 Mexico]<br/>[http://maps.navit-project.org/api/map/?bbox=-9.7,49.6,2.2,61.2 UK]<br/>[http://maps.navit-project.org/api/map/?bbox=-11.17,51.25,-5.23,55.9 Ireland]<br/>[http://maps.navit-project.org/api/map/?bbox=5.18,46.8,15.4,55.6 Germany]<br/>[http://maps.navit-project.org/api/map/?bbox=-5.45,42.0,8.44,51.68 France]<br/>[http://maps.navit-project.org/api/map/?bbox=2.08,48.86,7.78,54.51 Benelux]<br/>[http://maps.navit-project.org/api/map/?bbox=-11.03,34.87,4.61,44.4 Spain and Portugal]<br/>[http://maps.navit-project.org/api/map/?bbox=6.52,36.38,18.96,47.19 Italy]<br/>[http://maps.navit-project.org/api/map/?bbox=7.49,54.33,13.05,57.88 Denmark]<br/>[http://maps.navit-project.org/api/map/?bbox=9.4,46.32,17.21,49.1 Austria]<br/>[http://maps.navit-project.org/api/map/?bbox=5.79,45.74,10.59,47.84 Switzerland]<br/>[http://maps.navit-project.org/api/map/?bbox=11.91,48.48,19.02,51.17 Czech Republic]<br/>[http://maps.navit-project.org/api/map/?bbox=33.99,29.8,35.95,33.4 Israel]<br/>[http://maps.navit-project.org/api/map/?bbox=110.5,-44.2,154.9,-9.2 Australia]<br/>[http://maps.navit-project.org/api/map/?bbox=165.2,-47.6,179.1,-33.7 New Zealand]<br/>[http://maps.navit-project.org/api/map/?bbox=15.6,-35.2,33.3,-21.9 South Africa]<br/> <br/>''Note I (PreRunr) have found that small is better (faster processing) and that the Cloudmade maps can have problems so use the extractor version first. Many POIs seems to stuff it up so CHOOSE the T@H display option if your screen locks up and requires a restart - hopefully our experts will fix this up in later versions.''
 
# Connect your Pre in USB mode, create a folder named MapsNavit and put the *.bin file into it.
 
# To switch between the three skins you need to open the navit.xml in appdata/org.webosinternals.navit/ . At the bottom you find the section where the skin is included. Remove the comment markers from the skin you plan to use and add them to the current skin.
 
# Try it out!
 
# Look at appdata/org.webosinternals.navit/navit.log on you USB drive if Navit is not working as expected. If Navit has problems it writes the information into this log file.
 
  
 
== Using Map&Guide maps ==
 
== Using Map&Guide maps ==

Revision as of 01:54, 16 October 2010

This page is currently available in two languages:

Australia.png USA.png Application:Navit
France.png Application:Navit-FR

Summary

Navit icon.png

Navit is an open source (GPL) car navigation software for Linux systems. It will display your position on a map (in bird-view mode or as a 3D "visualization") from GPS sensor data, and can provide precise route calculation, touch screen functionality and supports Points of Interest (POI), which can be extended via an easy to use plugin system. Unlike other navigation systems, Navit maps are dynamically generated in real time from vector data. Information about Navit can be found on the Navit wiki.

Where do you get the latest version of Navit for WebOS 1.4.5 and above ?

There is a bug in the OTA (over the air) update from 1.4.1 to 1.4.5 that prevents Navit from working. To check for the bug open a Terminal or Novaterm and issue this command 'cat /etc/fstab|grep internal'. You should get the following line:

/dev/mapper/store-media /media/internal vfat utf8,shortname=mixed,umask=0000 0 0

If your line do not have the 'umask=0000' statement then you need to fix this first as explained here => http://developer.palm.com/distribution/viewtopic.php?p=34750 Thanks to Rod there is now an app in The Preware Testing feed that can do the fix for you => http://forums.precentral.net/showthread.php?p=2556103

Eine Deutsche Anleitung zum beheben des Problemes ist hier zu finden => http://www.nexave.de/forum/39654-fehler-im-ota-1-4-5-update.html

  1. Open Preware. Select available applications. Then type 'Navit' and install as any other WebOS application.
  2. This will automatically install two other needed packages if you not have installed them. The packages are 'speechd' and 'locale'.
  3. You settings are migrated if you had installed the Navit Alpha before. Then you can skip step 4-8 the rest.
  4. Now start Navit. You will see the OSD but no map as this will be installed in the next step. This first start will create the default settings and the empty folder for the map.
  5. Quit Navit and connect your Pre to your PC in USB mode.
  6. You also need a map. Go to http://maps.navit-project.org/download/ and create one of the part of the world you need or look for created maps here => http://wiki.navit-project.org/index.php/OpenStreetMaps or use this direct links:
    USA (except Alaska and Hawaii)
    Alaska
    Hawaii
    Canada
    Mexico
    UK
    Ireland
    Germany
    France
    Benelux
    Spain and Portugal
    Italy
    Denmark
    Austria
    Switzerland
    Czech Republic
    Israel
    Australia
    New Zealand
    South Africa

    Note I (PreRunr) have found that small is better (faster processing) and that the Cloudmade maps can have problems so use the extractor version FIRST.
  7. Put the *.bin file into the folder appdata/org.webosinternals.navit/maps on the USB drive of your Pre.
  8. To switch between the three skins you need to open the navit.xml in appdata/org.webosinternals.navit/ . At the bottom you find the section where the skin is included. Remove the comment markers from the skin you plan to use and add them to the current skin.
  9. Try it out!
  10. Multiple maps. Using *.bin will not actually grab multiple map files but actually grab just the FIRST map file in the directory. Note that *.bin still does have it's use... If you are using just a single map file in a single directory then whenever you downoad an updated map file you can place it into the directory and not have to worry about modifying the navit.xml file with the new map name. Just remember to delete your old map file from the directory. To specify multiple map files you will have to add multiple lines to the navit.xml file with the file name for each map, switch between them via the settings/maps onscreen menu. Extra maps may be for your holiday trips to Hawaii allowing you to set up bookmarks in advance without GPS using the instructions here http://www.webos-internals.org/wiki/Application:Navit#On_how_to_plan_a_route. Having the Garmin BaseMap in your mapset allows you to see the whole world when you zoom out.

To do this you need to add the mapset this way:

<mapset enabled="yes">
   <map type="binfile" enabled="yes" active="yes" data="/media/internal/appdata/org.webosinternals.navit/maps/osm/Australia.navit.bin"/>
   <map type="binfile" enabled="yes" active="no" data="/media/internal/appdata/org.webosinternals.navit/maps/osm/Hawaii.navit.bin"/>
   <map type="garmin" enabled="yes" active="no" data="/media/internal/appdata/org.webosinternals.navit/maps/garmin/gmapbmap.img"/>
</mapset>
  1. Look at appdata/org.webosinternals.navit/navit.log on you USB drive if Navit is not working as expected. If Navit has problems it writes the information into this log file.

If you have any questions about this version then you can find help here => http://forums.precentral.net/webos-internals/254622-navit-3d-car-navigation-system.html


Using Map&Guide maps

For all Europe uses. You can get a good Mapset from Amazon for 5 Euro => Marco Polo Großer Reiseplaner 2007/2008 (DVD-ROM) auf Amazon.de

The disadvantage is that the complete map is 3GB, if you only take Germany and the Major roots of Europe it is still 1GB.

For Linux

  1. Change directory to where DVD is mounted
  2. Unpack data2.cab with: unshield x travel/data2.cab
  3. Now, you should get a directory named like DIRLAN_GER.
  4. Inside you find the maps...

For Windows

  1. Install the appliaction
  2. you find the maps in a folder inside the program folder.

Installing the maps

  1. The dem.map folder with all the majors roads and towns of Europe...
  2. ...and five smpX.smp folders, which contain the details of countries:
  • smp1: DK,S,N,IS,FIN,N
  • smp2: F,E,GBZ,P,AND,MC
  • smp3: Germany
  • smp4: CZ,SK,RSM,EST,GEO,LV,LT,MD,RUS,UA,BY,GR,H,I,RO,CH,A,PL,AL,MT,CY,BG,FL,SRB,MNE,HR,SLO,BIH,MK,TR,AZ,AM,V
  • smp5: NL,B,GB,L,IRL
  1. copy the dem.map folder into a place on your hard drive
  2. remove all *d60* files from the dem.map folder
  3. copy the dem.map folder into /MaypsNavit on you usb drive
  4. copy the smpX.smp folder you need into /MaypsNavit/dem.map folder
  5. open appdata/org.webosinternals.navit/navit.xml and change the following:
<mapset enabled="yes">
    <map type="binfile" enabled="yes" data="/media/internal/appdata/org.webosinternals.navit/maps/*.bin"/>
</mapset>

to

<mapset enabled="yes">
    <map type="binfile" enabled="yes" active="yes" data="/media/internal/appdata/org.webosinternals.navit/maps/osm/*.bin"/>
    <map type="mg" enabled="yes" active="no" data="/media/internal/appdata/org.webosinternals.navit/maps/dem.map" />
    <map type="mg" enabled="yes" active="no" data="/media/internal/appdata/org.webosinternals.navit/maps/dem.map/smp3.smp" />
</mapset>

Now you can switch between the OSM and the M&G maps from the settings/maps menu inside of Navit. The OSM map is the default. To make M&G the default you need to invert the active switches.

I would expect the the Map&Guide maps for other countries will also work. But you need to find a cheep Product that contains them.

If you have the m&g and the OSM maps on your USB drive then you can use the index from the m&g maps for searching and the OSM maps for routing and display. To do this you need to add the mapset this way:

<mapset enabled="yes">
    <map type="mg" enabled="yes" active="no" data="/media/internal/appdata/org.webosinternals.navit/maps/dem.map/smp3.smp" />
    <map type="mg" enabled="yes" active="no" data="/media/internal/appdata/org.webosinternals.navit/maps/dem.map" />
    <map type="binfile" enabled="yes" active="yes" data="/media/internal/appdata/org.webosinternals.navit/maps/osm/*.bin"/>
</mapset>

It looks like Navit uses the street index of the first enabled map even if it is not active.

Changing the display of POI (Points of interest) symbols

you can switch every POI symbol off and on, but there is no Menu function to do it. Connect your Pre in USB Mode and open "appdata/org.webosinternals.navit/navit_layout.xml".

Make a backup of the file before you start and be careful. Navit will not start if you mess up the file !!!

This file defines the different layouts that you can select (Car, Car-dark, bike and T@M). Every layout starts with a line like this:

<layout name="Car" nightlayout="Car-dark" color="#ffefb7" font="Prelude">
.
.
.
</layout>

If you scroll down in the layout you will find the POI definitions. It starts with the line:

<layer name="POI Symbols">

For every defined POI symbole you find the following three lines:

<itemgra item_types="poi_hotel"  order="12-">
    <icon src="hotel.png"/>
</itemgra>

to switch the POI of simply remove the three lines or change them to

 <!-- <itemgra item_types="poi_hotel"  order="12-">
         <icon src="hotel.png"/>
     </itemgra> 
 -->

Then you can switch them on later if you like.

Navit loads the first layout that is defined in this file on startup. If you like to have a other layout you will need to move it to the beginning of the file. You can find more documentation in the navit_layout.xml file. The current version can be found in the git repository => http://git.webos-internals.org/?p=preware/cross-compile.git;a=blob;f=packages/apps/navit/files/navit_layout.xml


Understanding ISSUES with OpenStreet Maps

There is a list of issues that first time users keep asking about. These are not WEBOS issues but due to how NAVIT operates with OpenStreet maps. Look at http://wiki.navit-project.org/index.php/OpenStreetMaps#Problems_with_OSM_and_navit_or_navigation_in_general Look at the section below called "On how to plan a route" for advice.

Why don't I get the new skins we see below?

Installation of Navit only copies in the new XML files if the Navit.xml is not there. You need to delete the old ones to get the new. Preware does NOT REMOVE THEM!


You find the xml files on the USB drive J: (or another drive X: when your Pre is in USB mode (not charge only mode) depending upon your PC setup.

Located here J:/appdata/org.webosinternals.navit/

To switch between the three skins shown below you need to open the navit.xml in appdata/org.webosinternals.navit/ . At the bottom you find the section where the skin is included. Remove the comment markers from the skin you plan to use and add them to the current skin. For example to use < !-- <xi:include href="$NAVIT_USER_DATADIR/navit_gui.xml"/> -- > remove the < !-- and the -- > and ADD the same in front and back of the existing skin, for example <xi:include href="$NAVIT_USER_DATADIR/navit_gui_PreNav.xml"/>. There is NO SPACE between the < and -- and similarly between -- and > in the code. The space appears in this wiki text due to formatting issues.

Only as a start. Some images of the current skins:

Skin PreNav:


PreNav-L.JPG PreNav-P.JPG

NavitScreenshot1.jpg

NavitScreenshot2.jpg

NavitScreenshot3.jpg


Skin Pre:

Pre-P.jpg

Basic skin:

Basic-P.jpg

How to get around the menus v3 (still not complete)

As an aside the screen captures don't work on full screen - sorry.

Main screen is seen here before GPS lock

Start screen.png (here the last saved GPS position is used to choose the starting map).

Press your finger on the screen and "push" the map around to get the desired location (where you are now or where you want to go) right into the centre of the screen (if you want to zoom into a location use the + button). Tap the screen and you will get the Main Menu shown here.

Main menu.png Since we want to go somewhere tap on Actions.

Actions menu.png Now you have a choice of the Location at the center of the map screen, the location of the car (no good here as GPS has not locked in), the Location of a saved Bookmark, or searching for a Location in your OSM or other map you have already loaded into your Pre at /media/NavitMaps/. Choosing Town we get this screen.

Town view.png Now unless you live in the USA you can now enter a town. If not tap on the US flag and you should get this screen.

Town view2.png Now Type in your country eg Au will give at least two countries to choose from. Select one and you will then get to enter a town, the street and then house. Lots of times this does not work too well as the House numbering is not available. In this case follow instructions below on How to Plan a Route. Here are some FAQ about searching http://wiki.navit-project.org/index.php/OpenStreetMaps#Search_for_my_town_works.2C_but_I_can.27t_find_my_street

OK I have told NAVIT that I wish to go to my new destination and now its ready to go.


Navit OK to drive.png


It shows the way to go as a BIG FAT BLUE line as well as speaking the directions. If you want to read the directions Chooose Route then Description. The voice reads these out as you go along the route. Now Rod Whitby can guess where I live.

Now you want to change from a CAR to a Pedestrian, Horse or BIKE!

Choose the Main Menu, then choose Settings and you will see this

Settings menu.png Now choose Vehicle and you will see this

Vehicle screen.png Now select GPS and you will see your last choice which is shown here as a car.

GPS screen car.png Press once on the row Change profile to: pedestrian (for example) Then at the top of the screen press on VEHICLE. This will get you back to the GPS screen. Now if you select GPS again you will get this screen confirming you are now a pedestrian.

GPS screen ped.png Enjoy :-)

Changing Map view (or getting rid of all the POIs)

If you want very few POIs the simplest option is MainMenu>>Settings>>Display>>Layout>>T@H

Choose T@H.png T@H view.png Go back to map and you will see hardly any POIs.

Helpful notes from vreihen on 18 and 26 May 2010 now follow,

On starting up issues ie why the map layer isn't loading?

When Navit first starts up, it uses the north pole as it's initial position (if I recall correctly) until it gets an initial GPS fix. Your map layer problem may be that the GPS point is still at the north pole, or perhaps outside of the map that you have installed. If you tap on the center of the screen and tap on actions, there will be an icon of a car and an icon of a globe. The car icon is your current position, and should contain a non-zero latitude and longitude if your GPS is working and has a fix. Verify that those coordinates are where you are located before you dig any deeper into the maps as the cause of the missing layer.

The information panels at the bottom of the screen are only populated when Navit is navigating between two points. Otherwise, they should be blank.

If all else fails with the maps, you could download the entire planet.bin if you have 3.5 gigs of free USB flash space in your phone to eliminate the map file as the cause of your problem.....

On how to plan a route

OPTION 1 with GPS

1) Scroll through the map until you can see the location that you want to drive to.

2) Zoom in tight on the screen, if necessary. Tap on your destination on the map.

3) When Navit opens it's main menu, tap on actions.

4) The car icon should show your current latitude/longitude.

5) The globe icon should show the destination latitude/longitude that you tapped on the map.

6) Tap on the globe icon.

7) From the menu that pops up, select either bookmark this location (recommended) or navigate to this location.

8) If you chose to bookmark it, tap actions | bookmarks, then tap your bookmark. Select navigate to this location.

9) Depending on the distance you asked it to go, Navit should pop up the first driving direction and speak it to you within 5-10 seconds.

The OSM map data apparently does not contain the concept of a state, so navigating by state/city/street lookup is difficult to impossible. Navigating by bookmark on the map is the only option for the time being.....


OPTION 2 No GPS needed

The map you see is centred on your last GPS/chosen location. Now you wish to plan a route at another location NOT on your current map so GPS is not going to work. You will not get a map on the screen for this location until the end of this setup.

1) Remove all maps except the one that includes the locations you plan to use later. (if you fully understand how maps work in NAVIT this step is not necessary of course but for first timers it makes things simple to diagnose if you have troubles doing these steps.)

2) Open bookmarks.txt ===== To do the edit go to USB mode, open R:\appdata\org.webosinternals.navit\bookmark.txt with any text editor you like (replace R: with your Drive Letter)

3) add a new line

mg: longitude latitude type=bookmark label="Location 1"

Format is longitude and latitude, both in DD.ddd coordinates. For example Honolulu Stadium is -157.829 21.295, note the need for "-" for W longitude and "-" for S latitude. DD.ddd can have more d's added.

4) save bookmarks.txt

5) Start navit and navigate via bookmarks to "Location 1"

6) If you want to go from place to place just add more bookmarks, suggest arrange them inside a new folder called "My Trip".


Changing The Starting position

You might want to change the starting position of navit, especially if you are using Navit without a GPS. You can get your coordinates here: http://itouchmap.com/latlong.html

You can change the starting position in navit.xml, here :

<navit gui="..." graphics="..." center="4808 N 1134 E" zoom="128" >

The latitude and longitude are written as multiplied by 100, i.e. you won't see the decimal point. For example, instead of 48.08, enter 4808.

So you want Miles not km?

NAVIT has this link http://trac.navit-project.org/ticket/12