title: Google maps (v3) get geolocate address into directions - gives status OK, but no directions (target not found)
body: <p>So I'm trying to to this:</p>
  
  <ul>
  <li>Enter an address</li>
  <li>Get the lat/long for the address</li>
  <li>put it in "directions" with final destination (lat/long)</li>
  <li>get directions in my two div's</li>
  </ul>
  
  <p>Sound easy enough. This script gives back status "OK". So you should think it would work, but no.</p>
  
  <pre><code>&lt;div id="map_canvas" class="pic50"&gt;&lt;/div&gt;
  &lt;div id="map_directions" class="text50"&gt;&lt;/div&gt;
  
  bring_me_back('map_canvas','map_directions','some address');
  &lt;script&gt;
  // bring me back
  var directionDisplay;
  var directionsService = new google.maps.DirectionsService();
  
  function bring_me_back(call_back_map,call_back_directions,address) {
      var latlng = new google.maps.LatLng(51.764696,5.526042); // where you're at
    directionsDisplay = new google.maps.DirectionsRenderer();
    var myOptions = {
      zoom: 14,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP,
      mapTypeControl: false
    };
  
    var map = new google.maps.Map(document.getElementById(call_back_map),myOptions);
    directionsDisplay.setMap(map);
    directionsDisplay.setPanel(document.getElementById(call_back_directions));
    var marker = new google.maps.Marker({
      position: latlng,
      map: map,
      title:"My location"
    });
  
    // find the address
      geocoder = new google.maps.Geocoder (map);
      geocoder.geocode ( { 'address': address }, function(results, status)  {
      if (status == google.maps.GeocoderStatus.OK)  {
          var end = results [0].geometry.location; // where you need to go
        map.setCenter(results [0].geometry.location);
        marker.setPosition(results [0].geometry.location);
            var start = "51.764696,5.526042"; // where you're at (random place)
            var request = {
              origin:start,
              destination:end,
              travelMode: google.maps.DirectionsTravelMode.WALKING
            };
            directionsService.route(request, function(response, status) {
               alert("Directions was not successful for the following reason: " + status);
            });
      } 
      else {
        $('#'+call_back).html("Geocode was not successful for the following reason: " + status);
      }
    });
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I know I'm doing something stupid cause my error console says: Target: [my website]# was not found</p>
  
  <p>Funny thing though, the map does center on the correct place of geolocator with a marker. So except for push back the directions it does fine (i think)</p>