Navit is one of the applications that runs on the Openmoko Phones. For a list of all applications, visit Applications
As described on the Navit home page,
"Navit is a car navigation system with routing engine.
Its modular design is capable of using vector maps of various formats for routing and rendering of the displayed map. It's even possible to use multiple maps at a time.
The GTK+ or SDL user interfaces are designed to work well with touch screen displays. Points of Interest of various formats are displayed on the map.
The current vehicle position is either read from gpsd or directly from NMEA GPS sensors."
Some people say Navit is also a good choice for pedestrian and bicycle navigation.
Thanks to Alessandro, stefan_schmidt, cp15 and all Navit developers I have done a small ("not really working") preview of Navit on Neo1973 at Telemobility Forum 2007. Thanks to GFoss guys to invite me. Tyrael
You can now simply add a feed from there : http://download.navit-project.org/navit/openmoko/svn/
Essentially, to enable this directory as feed and install or update navit do:
echo src navit http://download.navit-project.org/navit/openmoko/svn > /etc/opkg/navit-feed.conf opkg update
opkg install navit
Navit will be auto-updated when you run opkg upgrade later
Navit is now in Debian experimental.
More recent releases of the very same packaging can be found in the Pini's repository:
deb http://pini.free.fr/debian unstable main deb-src http://pini.free.fr/debian unstable main
The up-to-date source package is available through git at git://git.debian.org/git/collab-maint/navit.git (browse).
I found that navit did not start fso-gpsd. I found the solution on the mailing list. Starting navit from the command line produced the following output:
navit:plugin_load:can't load '/usr/lib/navit/vehicle/ libvehicle_gpsd.so', Error 'libgps.so.16: cannot open shared object file: No such file or directory' navit:vehicle_new:invalid type 'gpsd'
So I used the following workaround:
opkg install libgps17 ln -s /usr/lib/libgps.so.17 /usr/lib/libgps.so.16
Use Navit pre-processed OSM maps. Navigate to the region you want, and click select to select it, select the region you want, then click download
If you just want the entire planet (as of this writing, ~1.8 GB), it's here.
CloudMade also has up-to-date maps from OpenStreetMap by country (by state in the US).
OpenStreetMap - follow directions at http://wiki.navit-project.org/index.php/OpenStreetMaps
wget -O germany.bin http://maps.navit-project.org/api/map/?bbox=5.185546875,46.845703125,15.46875,55.634765625
wget -O map1.osm http://www.openstreetmap.org/api/0.5/map?bbox=-122.2,47.5,-122,47.7 wget -O map2.osm http://www.openstreetmap.org/api/0.5/map?bbox=-122.4,47.5,-122.2,47.7 wget -O map3.osm http://www.openstreetmap.org/api/0.5/map?bbox=-122.4,47.3,-122.2,47.5 wget -O map4.osm http://www.openstreetmap.org/api/0.5/map?bbox=-122.2,47.3,-122,47.5
cat *.osm | osm2navit --dedupe-ways mymap.bin
To copy the map using scp (replace /directory as is appropriate in the following):
scp mymap.bin root@neo:/directory
Once it's somewhere on the NEO, Navit needs to know that it's there.
mkdir ~/.navit cp /usr/share/navit/navit.xml ~/.navit/navit.xml vi ~/.navit/navit.xml
In the navit.xml file, put the following into a new <mapset> section:
<map type="binfile" enabled="yes" data="/directory" />
Disable unused mapset sections by setting enabled to false.
Navit supports a "always center on vehicle" option.
To activate this add
follow="3"
to the vehicle tag in navit.xml. The "3" causes to give the gui time to do something between the repaints (drag the map or browse the menu). When its set to "1" navit does nothing more than repainting the map continuously.
If using SHR the keyboard in country/town/street search mode does not fit on the street, make sure your gui configuration is set to the following line:
<gui type="internal" font_size="350"/>
The example line provided for freerunners hides some important icons. Namely, instead of typing your city name first, you will first have to click the button on the top left, to go into country search mode. Enter your country name, then the city name, in order to enable the search function. This requires your map data to be searchable.
They are now displayed on Openmoko using the CVS version of Navit (20071217).
Easier using the CVS version (20071217).
Navit can speak if you install eSpeak + speech-dispatcher and updates your navit.xml file.
For adventurous people, one way to do this:
http://projects.openmoko.org/projects/mokotts/
install espeak, dotconf, and then speech-dispatcher. note: running 2008.8 updating from zecke's "testing" repo does not require "dotconf"
<speech type="cmdline" data="spd-say '%s'" />
or "spd-say -l fr '%s'" for using the French voice for example.
Note: Package speech-dispatcher broke my audio after suspend with current SHR (2009-04-13, though the problem's not shr, but speech-dispatcher itself). A solution is to disable starting of speech-dispatcher with:
update-rc.d -f speech-dispatcher remove
And then edit /usr/bin/navit, so that it starts speech-dispatcher before navit, and stops it afterwards. See http://lists.openmoko.org/nabble.html#nabble-td1088795
Alternatively, you can make speech-dispatcher restart on resum, see http://trac.shr-project.org/trac/ticket/494
Downloadable OSM maps for most areas of the world are available free in Navit format from Cloudmade at http://downloads.cloudmade.com/. Simply navigate to the country or region you want and download the .navit.bin.zip
version of the map. You'll have to exatract the .bin
file from the ZIP archive before using it with Navit.
You can download pre-compiled (ready-to-use) maps using the OpenStreetMap-data from the the navit planet extractor ;-)]™ which allows you to select a region of OpenStreetMap to extract. This will give you a binary file that can be used directly by Navit without further processing. The planet extractor's map data is updated daily.
Wurp wrote a little python script to download all OSM maps within a lat/long rectangle. Just copy the script to a file called dlOSM.sh, chmod +x it, and run it like dlOSM.sh <minimum latitude> <maximum latitude> <minimum longitude> <maximum longitude>
It takes a long time for large maps. I could optimize it some by having it try to get a big section at once, then if it fails, break it into smaller pieces and recurse. I'm not sure when/if I'll get around to that...
dlOSM.sh:
#!/usr/bin/python import os import sys #import math def doIt(cmd): os.system(cmd) def getOsms(basename, minLat, maxLat, minLon, maxLon): '''basename - base name of map, maps are named {basename}{count}.osm minLat - latitude of the west side of the map maxLat - latitude of the east side of the map minLon - longitude of the north side of the map maxLon - longitude of the south side of the map''' wgetCmdTemplate = 'wget -O %s%s.osm http://api.openstreetmap.org/api/0.5/map?bbox=%s,%s,%s,%s' currLat = minLat mapCount = 0 while currLat < maxLat: nextLat = min(currLat + 0.1, maxLat) currLon = minLon while currLon < maxLon: nextLon = min(currLon + 0.1, maxLon) doIt(wgetCmdTemplate % (basename, mapCount, currLon, currLat, nextLon, nextLat)) currLon = nextLon mapCount = mapCount + 1 currLat = nextLat (minLat, maxLat, minLon, maxLon) = map(float, sys.argv[1:]) getOsms('map', minLat, maxLat, minLon, maxLon)
Navit
Navit is a car navigation system with routing engine.
|