太阳高度角
请求路径#
GET /v7/astronomy/solar-elevation-angle参数#
查询参数
-
location 必选string需要查询地区的以英文逗号分隔的经度,纬度坐标(十进制,最多支持小数点后两位)。例如
location=116.41,39.92 -
date 必选date查询日期,格式为yyyyMMdd,例如
date=20170809 -
time 必选string查询时间,格式为HHmm,24时制,例如
time=1230 -
tz 必选string查询地区所在时区,例如
tz=0800或tz=-0530 -
alt 必选number海拔高度,单位为米,例如
alt=43
请求示例#
curl -X GET --compressed \
-H 'Authorization: Bearer your_token' \
'https://your-api-host/v7/astronomy/solar-elevation-angle?location=116.41%2C39.92&date=20180531&time=1230&tz=0800&alt=43'
请将your_token替换为你的JWT身份认证,将your_api_host替换为你的API Host
返回数据#
{
"code": "200",
"solarElevationAngle": "42.88",
"solarAzimuthAngle": "185.92",
"solarHour": "1217",
"hourAngle": "-4.41",
"refer": {
"sources": [
"https://developer.qweather.com/attribution.html"
],
"license": [
"QWeather Developers License"
]
}
}
-
codestring
-
solarElevationAnglestring太阳高度角
-
solarAzimuthAnglestring太阳方位角,0度为正北
-
solarHourstring太阳时,HHmm格式
-
hourAnglestring时角
-
referobject数据来源和许可信息
-
sourcesarray原始数据来源,或数据源说明,可能为空
-
licensearray数据许可或版权声明,可能为空
-