How to get Navit working on Raspberry Pi with a USB GPS device
To install Navit and GPSD
sudo apt-get install navit gpsd gpsd-clients python-gps -y
Copy to your home directory
cp /etc/navit/navit.xml ~/.navit/navit.xml
cd /home/pi/.navit
Get a map (using your browser)
http://maps.navit-project.org (zoom and select the desired area and hit download)
Rename the downloaded file to something like Phoenix.bin and place it under
/home/pi/.navit/
Disable sample maps
CHANGE TO:
<!-- If you dont want to use the sample map, either set enabled="no" in the next line or remove the xml file from the maps directory -->
<mapset enabled="no">
<xi:include href="$NAVIT_SHAREDIR/maps/*.xml"/>
</mapset>
Enable your Map
<!-- Mapset template for openstreetmaps -->
<mapset enabled="yes">
<map type="binfile" enabled="yes" data="/home/pi/.navit/Phoenix.bin"/>
</mapset>
To get a USB GPS working
Works for Navit and other GIS software, such as kismet and others.
sudo nano /etc/default/gpsd
START_DAEMON="true"
# Use USB hotplugging to add new USB devices automatically to the daemon
USBAUTO="true"
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyUSB0"
# Other options you want to pass to gpsd
GPSD_OPTIONS="/dev/ttyUSB0"
GPSD_SOCKET=”/var/run/gpsd.sock”
--------------------------------------------------------------------------------------------------------------------------------------------------