23 users online | 23 Guests and 0 Registered

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”

-------------------------------------------------------------------------------------------------------------------------------------------------- 
Feel free to download my configurations

wget http://aztelephony.com/raspiconfigs/gpsd
wget http://aztelephony.com/raspiconfigs/navit.xml

Last update:
2015-10-06 00:16
Author:
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Records in this category

Tags

Sticky FAQs