Cmfcmf\OpenWeatherMap::getRawWeatherGroupData PHP Method

getRawWeatherGroupData() public method

Only a JSON response format is supported for this webservice.
public getRawWeatherGroupData ( array $ids, string $units = 'imperial', string $lang = 'en', string $appid = '' ) : string
$ids array The city ids to get weather information for
$units string Can be either 'metric' or 'imperial' (default). This affects almost all units returned.
$lang string The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi.
$appid string Your app id, default ''. See http://openweathermap.org/appid for more details.
return string Returns false on failure and the fetched data in the format you specified on success.
    public function getRawWeatherGroupData($ids, $units = 'imperial', $lang = 'en', $appid = '')
    {
        $url = $this->buildUrl($ids, $units, $lang, $appid, 'json', $this->weatherGroupUrl);
        return $this->cacheOrFetchResult($url);
    }