

  {extends file="main.tpl"}
    <!DOCTYPE head PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head xmlns="http://www.w3.org/1999/xhtml">
  {block name=title}GPSBabel development:Google Directions XML (googledir){/block}
  {block name=body}
                       
  <div xmlns="http://www.w3.org/1999/xhtml" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Google Directions XML (googledir)</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="fmt_dg-200.html">Prev</a> </td><th width="60%" align="center">Chapter 3. The Formats</th><td width="20%" align="right"> <a accesskey="n" href="fmt_kml.html">Next</a></td></tr></table><hr /></div><div xmlns="http://www.w3.org/1999/xhtml" class="section"><div class="titlepage"><div><div><h2 class="title" ><a id="fmt_googledir"></a>Google Directions XML (googledir)</h2></div></div></div><p class="fmtcapshdr">
    This format can...
    </p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p class="fmtcapsitem">
          read tracks
        </p></li></ul></div><p> This format is designed to read the XML emitted when you
use the <a class="ulink" href="https://developers.google.com/maps/documentation/directions/" target="_top">
	Google Directions API</a>.
</p><p>
If you use a Unix-compatible
operating system, this shell script might be useful:
</p><pre class="programlisting">
#!/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&amp;destination=$TO&amp;sensor=false" \
2&amp;amp;&amp;gt;/dev/null &amp;gt;google_map.js
gpsbabel -i google -f google_map.js -o gpx -F google_map.gpx
</pre></div><div xmlns="http://www.w3.org/1999/xhtml" class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="fmt_dg-200.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="The_Formats.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="fmt_kml.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">GlobalSat DG-200 Download (dg-200) </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Google Earth (Keyhole) Markup Language (kml)</td></tr></table></div>
  
      {/block}
  