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" 
wget -O - "http://maps.googleapis.com/maps/api/directions/xml?origin=$FROM&destination=$TO&sensor=false" \
2&>/dev/null >google_map.js
gpsbabel -i google -f google_map.js -o gpx -F google_map.gpx