src/Ridvanbaluyos/Mmda/MMDA.php
final private function getTrafficData($feedUrl)
    {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $feedUrl);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        $response = curl_exec($ch);
        curl_close($ch);

        $xml = simplexml_load_string($response);

        return $this->sanitizeTrafficData($this->parseTrafficData($xml));
    }
final private function getTrafficData($feedUrl)
    {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $feedUrl);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        $response = curl_exec($ch);
        curl_close($ch);

        $xml = simplexml_load_string($response);

        return $this->sanitizeTrafficData($this->parseTrafficData($xml));
    }
final private function getTrafficData ( $ feedUrl ) { $ ch = curl_init ( ) ; curl_setopt ( $ ch , CURLOPT_URL , $ feedUrl ) ; curl_setopt ( $ ch , CURLOPT_RETURNTRANSFER , true ) ; $ response = curl_exec ( $ ch ) ; curl_close ( $ ch ) ; $ xml = simplexml_load_string ( $ response ) ; return $ this -> sanitizeTrafficData ( $ this -> parseTrafficData ( $ xml ) ) ; }
This function retrieves the traffic data from the MMDA Traffic API.

@return array
This function retrieves the traffic data from the MMDA Traffic API .