src/Vatsimphp/VatsimData.php
public function loadMetar($icao)
    {
        try {
            $metar = $this->prepareMetarSync();
            $metar->setAirport($icao);
            $this->results = $metar->loadData();
        } catch (\Exception $e) {
            $this->exceptionStack[] = $e;

            return false;
        }

        return true;
    }
public function loadMetar($icao)
    {
        try {
            $metar = $this->prepareMetarSync();
            $metar->setAirport($icao);
            $this->results = $metar->loadData();
        } catch (\Exception $e) {
            $this->exceptionStack[] = $e;

            return false;
        }

        return true;
    }
public function loadMetar ( $ icao ) { try { $ metar = $ this -> prepareMetarSync ( ) ; $ metar -> setAirport ( $ icao ) ; $ this -> results = $ metar -> loadData ( ) ; } catch ( \ Exception $ e ) { $ this -> exceptionStack [ ] = $ e ; return false ; } return true ; }
Load METAR data for given airport.

@param string $icao

@return bool
Load METAR data for given airport .