title: Passing multiple destinations as array to distance matrix api
body: <p>I am calling distance-matrix api with multiple destinations as array but I am getting only one Array as response</p>
  
  <pre><code>destinationrequestsample---&gt; ["0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0", "0,0"]
  </code></pre>
  
  <pre><code>export async function getStoreDistance(locationDetails) {
    console.log('stordistance', locationDetails);
    let destinationRequest = locationDetails.destinations.map(location =&gt; {
      return `${location.lat},${location.long}`;
    });
    return await axios
      .get(
        `https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial
        &amp;origins=${locationDetails.origins.map(function(locationDetail) {
          return locationDetail;
        })}
        &amp;destinations=${destinationRequest}&amp;key=************j****c`,
      )
      .then(function(response) {
        // handle success
        return response;
      })
      .catch(function(error) {
        // handle error
        return error;
      });
  }
  </code></pre>