Created
May 20, 2015 20:50
-
-
Save Jakuje/d6fee0e4e514223bf92d to your computer and use it in GitHub Desktop.
Using xsl transfrom gpx to txt file used by Navit on my webOS phone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#FILENAME="9897043" | |
FILENAME=$1 | |
#wget -O ${FILENAME}.gpx "http://www.geocaching.com/pocket/downloadpq.ashx?g=fba142aa-e661-4533-ad6d-3220b900241c&src=web" | |
[ -f "${FILENAME}.zip" ] && unzip "${FILENAME}.zip" | |
xsltproc ~/.local/bin/gpx2navit.xsl ${FILENAME}{,-wpts}.gpx > ${FILENAME}_nav.txt | |
cat ${FILENAME}_nav.txt | novaterm put file:///media/internal/appdata/org.webosinternals.navit/maps/cache.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment