]> git.street.me.uk Git - andy/viking.git/blob - tools/googledirections
Merge branch 'i18n-launchpad'
[andy/viking.git] / tools / googledirections
1 #!/bin/bash
2 FROM="$1"
3 TO="$2"
4 (wget -O - "http://maps.google.com/maps?q=$FROM to $TO&output=xml" 2>/dev/null) | head -3 | tail -1 | sed 's/.*<page>\(.*\)<\/page>.*/<page>\1<\/page>/' | gpsbabel -i google -f - -o gpx -F -