Pan tool (as default)
[viking/guyou.git] / tools / googledirections
blobda3e4ccf80ed461536384e2487cf7d4e9964b7ef
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 -