]> git.street.me.uk Git - andy/viking.git/blame_incremental - tools/googledirections
[DOC] Ids are not necessary in these configuration files.
[andy/viking.git] / tools / googledirections
... / ...
CommitLineData
1#!/bin/bash
2FROM="$1"
3TO="$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 -