title: How to join all markers with paths in Google Maps?
body: <p>I'm new to Google Maps (API) and I need to get the following result:</p>
  
  <p><img src="https://i.stack.imgur.com/4IrLU.jpg" alt="paths"></p>
  
  <p>At the moment, I know how to render the map and place markers on it (based on longitude and latitude).</p>
  
  <pre><code>var map;
  
  map = new google.maps.Map(document.getElementById('map_canvas'), {
      zoom: 7,
      center: new google.maps.LatLng(response[0].latitude, response[0].longitude),
      mapTypeId: google.maps.MapTypeId.ROADMAP
  });
  
  for (var i = 0; i &lt; response.length; ++i) {
  
      new google.maps.Marker({
          'map' : map,
          'position' : new google.maps.LatLng(response[i].latitude, response[i].longitude),
          'title' : response[i].address
      });
  
  }
  </code></pre>
  
  <p>Variable <code>response</code> structure is like:</p>
  
  <pre><code>[
  Object
  address: "Krišjāņa Barona iela 25, Riga, LV-1011, Latvia"
  latitude: "24.1245290"
  longitude: "56.9528510"
  __proto__: Object
  , 
  Object
  address: "Rīgas iela 1, Tukums, Tukuma novads, LV-3101, Latvia"
  latitude: "23.1630590"
  longitude: "56.9663880"
  __proto__: Object
  ]
  </code></pre>
  
  <p>There could be a lot of markers. I'm looking for a way to join markers with paths like in the preview image.</p>
  
  <p>I don't know for what I should search and I need your help in this, guys. Thanks in an advice!</p>