src/Services/DistanceMatrix/DistanceMatrixRequest.php
public function setDestinations(array $destinations = array())
    {
        $this->destinations = array();

        foreach ($destinations as $destination) {
            $this->addDestination($destination);
        }
    }
public function setDestinations(array $destinations = array())
    {
        $this->destinations = array();

        foreach ($destinations as $destination) {
            $this->addDestination($destination);
        }
    }
Sets the request destinations.

@param array $destinations The distance matrix request destinations.