src/Services/DistanceMatrix/DistanceMatrix.php
protected function buildDistanceMatrixRows($rows)
    {
        $results = array();

        foreach ($rows as $row) {
            $results[] = $this->buildDistanceMatrixRow($row);
        }

        return $results;
    }
protected function buildDistanceMatrixRows($rows)
    {
        $results = array();

        foreach ($rows as $row) {
            $results[] = $this->buildDistanceMatrixRow($row);
        }

        return $results;
    }
Builds the distance matrix response rows according to the normalized distance matrix API results.

@param array $rows The normalized distance matrix response rows.

@return array The built distance matrix response rows.