Navit - Rebased navit.xml from trunk; Added HRO Phoenix as initial center; changed zoom for driving; Set default orientation to North; Set units to Imperial; Enabled initial support for speech-to-text

This commit is contained in:
Gaston Gonzalez
2024-10-02 08:35:00 -07:00
parent 6cd14808d2
commit f261ee5f51
10 changed files with 9549 additions and 27 deletions
+4 -24
View File
@@ -1,7 +1,9 @@
#!/bin/bash
# Author : Gaston Gonzalez
# Date : 1 October 2024
# Updated : 2 OCtober 2024
# Purpose : Navit installer for EmComm Tools
# Category : Maps
#
# The Navit package is broken in the Ubuntu repository. The following installation is based
# on a fixed reported in https://github.com/navit-gps/navit/issues/1228
@@ -10,29 +12,7 @@ apt install \
navit \
navit-gui-gtk \
navit-graphics-gtk-drawing-area \
libcanberra-gtk-dev \
maptool \
espeak-ng \
espeak \
-y
missing_layout_files=(
"navit_layout_bike_shipped.xml"
"navit_layout_car_android_shipped.xml"
"navit_layout_car_dark_shipped.xml"
"navit_layout_car_generatedarkxml.sh"
"navit_layout_car_shipped.xml"
"navit_layout_car_simple_shipped.xml"
"navit_layout_th_shipped.xml"
)
echo "Patching broken Navit apt installation..."
TARGET_DIR=/usr/share/navit
for file in "${missing_layout_files[@]}"
do
curl -s -f -L -O https://raw.githubusercontent.com/navit-gps/navit/trunk/navit/${file}
mv -v ${file} "${TARGET_DIR}/${file}"
done
# Delete types that have errors
sed -i -e '/item_types="cliff,embankment"/,+7d' ${TARGET_DIR}/navit_layout_car_shipped.xml
# Copy arizona.bin to ~/.navit/maps