Difference between revisions of "Application:Navit"

From WebOS Internals
Jump to navigation Jump to search
m (update webos quick install download link to 3.14)
Line 11: Line 11:
 
As instructed by HaPe you install it onto your Pre  by,  
 
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-12-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.
+
# 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!)
 
# 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:  
 
# 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:  

Revision as of 12:30, 18 June 2010

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 ALPHA version of Navit?

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

You get the zip file here => Navit Alpha

As instructed by HaPe you install it onto your Pre by,

  1. 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.
  2. 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!)
  3. 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:
    1. mount -o remount,rw /
    2. rm /usr/lib/locale
    3. mount -o remount,ro /
  4. 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 Connect your Pre in USB mode, create a folder named MapsNavit and put the *.bin file into it. 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.
  5. To switch between the three skins you need to open the navit.xml in .app-storage/file_.media.cryptofs.apps.usr.palm.applications.org.webosinternals.navit_0/ . At the button you find the section where the skin is included. Remove the comment makers "" from the skin you plan to use and add them to the current skin.
  6. Try it out!
  7. Look at .app-storage/file_.media.cryptofs.apps.usr.palm.applications.org.webosinternals.navit_0/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

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 .app-storage/file_.media.cryptofs.apps.usr.palm.applications.org.webosinternals.navit_0/navit.xml and change the following:
<mapset enabled="yes">
    <map type="binfile" enabled="yes" data="/media/internal/MapsNavit/*.bin"/>
</mapset>

to

<mapset enabled="yes">
    <map type="binfile" enabled="yes" active="yes" data="/media/internal/MapsNavit/osm/*.bin"/>
    <map type="mg" enabled="yes" active="no" data="/media/internal/MapsNavit/dem.map" />
    <map type="mg" enabled="yes" active="no" data="/media/internal/MapsNavit/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.

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

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.


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:\.app-storage\file_.media.cryptofs.apps.usr.palm.applications.org.webosinternals.navit_0

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

Skin PreNav:

PreNav-L.JPG PreNav-P.JPG

Skin Pre:

Pre-P.jpg

Basic skin:

Basic-P.jpg

How to get around the menus (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.

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.


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

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. (Just saying)

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.....

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