Example #1
0
 /**
  * @param array|int|string $search Can be coords, city-id or city-name
  * @param string $unit metric or imperial
  * @param string $nl The output language
  * @param string $appid The OpenWeatherMAP API Key
  * @return Weather $weather
  */
 public static function getWeather($search, $unit = 'metric', $nl = 'de', $appid = '')
 {
     $weather = new self();
     $weather->getWeatherData($search, $unit, $nl, $appid);
     return $weather;
 }