Skip to content

Instantly share code, notes, and snippets.

@Jakuje
Created May 20, 2015 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jakuje/d6fee0e4e514223bf92d to your computer and use it in GitHub Desktop.
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
#!/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