Demo entry 6657366

json

   

Submitted by anonymous on Nov 03, 2017 at 07:15
Language: JSON. Code size: 1.4 kB.

{
  "code": "10000", // 错误码
  "msg": "查询成功", 
  "data": [ // 查询数据 多条 各个区、县的相关信息
    {
      "areaCode": "370202", //五区编号(城关区,安宁区,七里河区,西固区,红古区) 必填
      "location": "120.610703,36.266601", //各区气象站坐标(经度,纬度)必填
      "weather": [  //区域天气信息 三天内 今天 明天 后天
        {
          "date": "2017-11-02", //日期
          "weatherFrom": "01", //天气(多云)必填 枚举
          "weatherTo": "00", //天气(晴)选填 枚举
          "temp": "-2", //气温(零下2摄氏度 当前气温)必填
          "tempHigh": "10.5", //气温(最高温度10.5摄氏度)必填
          "tempLow": "-2", //气温(最低温度零下2摄氏度)必填
          "humidity": "55", //湿度 
          "windspeed": "14.0", //风速 
          "winddirect": "南风", //风向 必填
          "windpower": "2级", //风级 必填
        },
        {
          "date": "2017-11-03", 
          "weatherFrom": "01", 
          "weatherTo": "00", 
          "temp": "-2",
          "tempHigh": "10.5", 
          "tempLow": "-2",
          "humidity": "55",
          "windspeed": "14.0", 
          "winddirect": "北风", 
          "windpower": "3级",
        },          
        {
          "date": "2017-11-04",
          "weatherFrom": "01",
          "weatherTo": "00",
          "temp": "-2",
          "tempHigh": "10.5",
          "tempLow": "-2",
          "humidity": "55",
          "windspeed": "14.0",
          "winddirect": "南风",
          "windpower": "2级",
        }
      ]
    },
    {...},
    {...}
  ]
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).