

  {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 Maps XML (google){/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 Maps XML (google)</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="fmt_kml.html">Prev</a> </td><th width="60%" align="center">Chapter 3. The Formats</th><td width="20%" align="right"> <a accesskey="n" href="fmt_gnav_trl.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_google"></a>Google Maps XML (google)</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
tack "&amp;output=js" onto the end of a <a class="ulink" href="http://maps.google.com" target="_top">Google Maps</a> route URL (use
the "link to this page" option to get a usable URL.)  This allows you
to plan a route using Google Maps, then download it and use it in your
own mapping program or GPS receiver.   To get a file suitable for use
with GPSBabel, plan your route as usual with Google Maps.  Once you've 
got it the way you want it, click the "Link to this page" link in the
upper right-hand corner of the Google Maps page.  Then, edit the URL 
that appears in your address bar by adding "&amp;output=js" (without
the quotes) onto the end.  Hit enter, and the resulting page will be
mostly empty.  It doesn't look like much, but it contains exactly what 
GPSBabel needs.  Save it to disk using whatever menu option your web 
browser provides.
</p><p>
Note that if you are using Microsoft Internet Explorer, you should make sure
to save the web page as "Web Page, HTML Only".  If you save it as "Web Page,
Complete", it will be reformatted into a non-XHTML format that GPSBabel 
cannot read.
</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.google.com/maps?q=$FROM to $TO&amp;output=js" \
2&amp;&gt;/dev/null &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_kml.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_gnav_trl.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Google Earth (Keyhole) Markup Language (kml) </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Google Navigator Tracklines (.trl) (gnav_trl)</td></tr></table></div>
  
      {/block}
  