【发布时间】:2017-05-21 21:14:04
【问题描述】:
我从 OpenWeatherMap 获得以下对象。现在我得到了风速和风向。
$weather->wind->speed
$weather->wind->direction
然后它返回
0.71 m/s 62.5018 ENE
但我想获取东-东北风向描述。我尝试了以下方法,但都没有奏效。如何获取风向描述。
$weather->wind->direction->descption
$weather->wind->direction['desctiption']
【问题讨论】:
标签: php openweathermap