X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/05225ccdd7148e50cc40f07df479608209b5e8c5..f233fa0f3738c69e6a4433945c6d60d18e6c270a:/tools/googledirections diff --git a/tools/googledirections b/tools/googledirections index 061ecff5..da3e4ccf 100755 --- a/tools/googledirections +++ b/tools/googledirections @@ -1,4 +1,4 @@ #!/bin/bash FROM="$1" TO="$2" -(wget -O - "http://maps.google.com/maps?q=$FROM to $TO&output=xml" 2>/dev/null) | head -2 | tail -1 | sed 's/.*\(.*\)<\/page>.*/\1<\/page>/' | gpsbabel -i google -f - -o gpx -F - +(wget -O - "http://maps.google.com/maps?q=$FROM to $TO&output=xml" 2>/dev/null) | head -3 | tail -1 | sed 's/.*\(.*\)<\/page>.*/\1<\/page>/' | gpsbabel -i google -f - -o gpx -F -