We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5c0ea8 commit fef2e04Copy full SHA for fef2e04
Cmfcmf/OpenWeatherMap/WeatherForecast.php
@@ -74,7 +74,7 @@ class WeatherForecast implements \Iterator
74
*/
75
public function __construct($xml, $units, $days)
76
{
77
- $this->city = new City(-1, $xml->location->name, $xml->location->location['longitude'], $xml->location->location['latitude'], $xml->location->country);
+ $this->city = new City($xml->location->location['geobaseid'], $xml->location->name, $xml->location->location['longitude'], $xml->location->location['latitude'], $xml->location->country);
78
$this->sun = new Sun(new \DateTime($xml->sun['rise']), new \DateTime($xml->sun['set']));
79
$this->lastUpdate = new \DateTime($xml->meta->lastupdate);
80
0 commit comments