title: Google Maps GDirections - Route directions between two points on a map
body: <p>Does this look like it should work? I'm wanting to generate directions from one latitude/longitude to another latitude/longitude.</p>
  
  <pre><code>var dirMap = new GMap2($("#dirMap").get(0));
  var wp = new Array(2);
  wp[0] = new GLatLng(35.742149,139.337218);
  wp[1] = new GLatLng(35.735347,139.328485);
  
  var marker = new GMarker(wp[1]);
  dirMap.addOverlay(marker);
  dirMap.setCenter(wp[0], 12);
  dirMap.setUIToDefault();
  
  // load directions
  directions = new GDirections(dirMap);
  directions.load("from: Waypoint1@21.742149,100.337218 to: Waypoint2@15.740815,100.3267");
  </code></pre>
  
  <p><strong>The map loads fine</strong>, but <em>the directions don't come in</em>. I've tried it this way too:</p>
  
  <pre><code>var dirMap = new GMap2($("#dirMap").get(0));
  var wp = new Array(2);
  wp[0] = new GLatLng(32.742149,119.337218);
  wp[1] = new GLatLng(32.735347,119.328485);
  
  var marker = new GMarker(wp[1]);
  dirMap.addOverlay(marker);
  dirMap.setCenter(wp[0], 12);
  dirMap.setUIToDefault();
  
  // load directions
  directions = new GDirections(dirMap);
  directions.loadFromWaypoints(wp);
  </code></pre>
  
  <p>Same thing... map but no directions. Any help is greatly appreciated, thank you in advance!</p>