title: How to get photo of place from google places api
body: <p>I'm beginer to js and api </p>
  
  <p>I have an for me big problem..</p>
  
  <p>How to get photo for some places with google places api.</p>
  
  <p>I try with this:</p>
  
  <pre><code>function setLink(i) {
              var photo = place.photos;
              var sideClick = jQuery("&lt;a class=side_click href='#'&gt;&lt;/a&gt;");
               $(sideClick).html(place.name+photo);
               $("#side_bar").append(sideClick).append("&lt;br&gt;");
               $(sideClick).on("click", function() {
                 markers[i].modalWindow_.getDetails(markers[i].place_);
               });
            }
  </code></pre>
  
  <p>and I get only something like this: </p>
  
  <pre><code>Hotel Name [object Object]
  </code></pre>
  
  <p>How to change this [object Object] into url of image?</p>
  
  <p>also i try with:</p>
  
  <pre><code>var photo = place.photos.geturl(); 
  </code></pre>
  
  <p>but also dont work...</p>
  
  <p>How to solve this problem?</p>