src/Services/DistanceMatrix/DistanceMatrix.php
protected function parse($response)
    {
        if ($this->format === 'json') {
            return $this->parseJSON($response);
        }

        return $this->parseXML($response);
    }
protected function parse($response)
    {
        if ($this->format === 'json') {
            return $this->parseJSON($response);
        }

        return $this->parseXML($response);
    }
Parses & normalizes the distance matrix API result response.

@param string $response The distance matrix API response.

@return \stdClass The parsed & normalized distance matrix response.