title: Pass Place ID location to destination in Google Maps API
body: <p>I'm trying to figure out how to pass the geometry location of a Google Places location to the directions service request destination dynamically.  If I use </p>
  
  <pre><code> service.getDetails({
          placeId: 'ChIJy_YmBMEMIocRZF8r5wPFMYU'
        }, function(place, status) {
          if (status === google.maps.places.PlacesServiceStatus.OK) {
            var marker = new google.maps.Marker({
              map: map,
              position: place.geometry.location,
              icon: 'img/pillicon.jpg'
            });              
          }       
  </code></pre>
  
  <p>to get the position how can I then pass that to my request like so</p>
  
  <pre><code>var request = {
          origin: currentLoc,
          destination: place.geometry.location, //not sure about this           
          travelMode: google.maps.DirectionsTravelMode.DRIVING
      }; 
  </code></pre>
  
  <p>I've tried returning the place.geometry.location and then calling it, and converting it to a string, but I still can't access it. Thanks I'm new to javascript</p>