Note: This page describes the development version of GPSBabel. It may substantially differ from the latest released GPSBabel.

Google Directions XML (googledir)

This format can...

  • read tracks

This format is designed to read the XML emitted when you use the Google Directions API.

If you use a Unix-compatible operating system, this shell script might be useful:

#!/bin/sh 
FROM="233 S. Upper Wacker Dr, Chicago, IL" 
TO="1060 W. Addison St, Chicago, IL" 
URL="http://maps.googleapis.com/maps/api/directions/xml"
wget -O - "$URL?origin=$FROM&destination=$TO&sensor=false" \
2>/dev/null >google_map.xml
gpsbabel -i googledir -f google_map.xml -o gpx -F google_map.gpx