文档章节

不同城市空气质量实时监测api接口分享

是我的名字啊
 是我的名字啊
发布于 2015/09/29 09:53
字数 583
阅读 69
收藏 0

空气质量实时监测api提供查询不同城市的空气质量最新结果、最近几周的空气质量数据和各监测点的数据。

备注:有的城市可能没有监测点实时监测的数据

接口名称:空气质量实时监测api

接口平台:聚合数据

接口地址:http://web.juhe.cn:8080/environment/air/cityair

支持格式:JSON

请求方式:GET

请求示例:http://web.juhe.cn:8080/environment/air/cityair?city=城市名称&key=您申请的APPKEY值

空气质量实时监测api接口JSON返回示例:

{
    "resultcode": "200",
    "reason": "SUCCESSED!",
    "error_code": 0,
    "result": [
        {
            "citynow": {
                "city": "suzhou",
                "AQI": "77",
                "quality": "良",
                "date": "2014-05-09 14:00"
            },
            "lastTwoWeeks": {
 
                "1": {
                    "city": "suzhou",
                    "AQI": "100",
                    "quality": "良",
                    "date": "2014-05-08"
                },
                "2": {
                    "city": "suzhou",
                    "AQI": "99",
                    "quality": "良",
                    "date": "2014-05-07"
                },
                "3": {
                    "city": "suzhou",
                    "AQI": "77",
                    "quality": "良",
                    "date": "2014-05-06"
                },
                "4": {
                    "city": "suzhou",
                    "AQI": "75",
                    "quality": "良",
                    "date": "2014-05-05"
                },
                "5": {
                    "city": "suzhou",
                    "AQI": "78",
                    "quality": "良",
                    "date": "2014-05-04"
                },
                "6": {
                    "city": "suzhou",
                    "AQI": "84",
                    "quality": "良",
                    "date": "2014-05-03"
                },
                "7": {
                    "city": "suzhou",
                    "AQI": "135",
                    "quality": "轻度污染",
                    "date": "2014-05-02"
                },
                "8": {
                    "city": "suzhou",
                    "AQI": "126",
                    "quality": "轻度污染",
                    "date": "2014-05-01"
                },
                "9": {
                    "city": "suzhou",
                    "AQI": "87",
                    "quality": "良",
                    "date": "2014-04-30"
                },
                "10": {
                    "city": "suzhou",
                    "AQI": "97",
                    "quality": "良",
                    "date": "2014-04-29"
                },
                "11": {
                    "city": "suzhou",
                    "AQI": "77",
                    "quality": "良",
                    "date": "2014-04-28"
                },
                "12": {
                    "city": "suzhou",
                    "AQI": "84",
                    "quality": "良",
                    "date": "2014-04-27"
                },
                "13": {
                    "city": "suzhou",
                    "AQI": "45",
                    "quality": "优",
                    "date": "2014-04-26"
                },
                "14": {
                    "city": "suzhou",
                    "AQI": "56",
                    "quality": "良",
                    "date": "2014-04-25"
                },
                "15": {
                    "city": "suzhou",
                    "AQI": "83",
                    "quality": "良",
                    "date": "2014-04-24"
                },
                "16": {
                    "city": "suzhou",
                    "AQI": "95",
                    "quality": "良",
                    "date": "2014-04-23"
                },
                "17": {
                    "city": "suzhou",
                    "AQI": "101",
                    "quality": "轻度污染",
                    "date": "2014-04-22"
                }
            },
            "lastMoniData": {
                "1": {
                    "city": "上方山",
                    "AQI": "77",
                    "quality": "良",
                    "PM2.5Hour": "46μg/m³",
                    "PM2.5Day": "46μg/m³",
                    "PM10Hour": "104μg/m³",
                    "lat": "31.247222",
                    "lon": "120.561389"
                },
                "2": {
                    "city": "南门",
                    "AQI": "112",
                    "quality": "轻度污染",
                    "PM2.5Hour": "84μg/m³",
                    "PM2.5Day": "84μg/m³",
                    "PM10Hour": "—μg/m³",
                    "lat": "31.286389",
                    "lon": "120.6275"
                },
                "3": {
                    "city": "彩香",
                    "AQI": "76",
                    "quality": "良",
                    "PM2.5Hour": "46μg/m³",
                    "PM2.5Day": "46μg/m³",
                    "PM10Hour": "101μg/m³",
                    "lat": "31.301944",
                    "lon": "120.590833"
                },
                "4": {
                    "city": "轧钢厂",
                    "AQI": "68",
                    "quality": "良",
                    "PM2.5Hour": "41μg/m³",
                    "PM2.5Day": "41μg/m³",
                    "PM10Hour": "85μg/m³",
                    "lat": "31.326389",
                    "lon": "120.595556"   
 
             },
                "5": {
                    "city": "吴中区",
                    "AQI": "64",
                    "quality": "良",
                    "PM2.5Hour": "46μg/m³",
                    "PM2.5Day": "46μg/m³",
                    "PM10Hour": "—μg/m³",
                    "lat": "31.270278",
                    "lon": "120.612778"
                },
                "6": {
                    "city": "苏州新区",
                    "AQI": "72",
                    "quality": "良",
                    "PM2.5Hour": "46μg/m³",
                    "PM2.5Day": "46μg/m³",
                    "PM10Hour": "93μg/m³",
                    "lat": "31.299444",
                    "lon": "120.543333"
                },
                "7": {
                    "city": "苏州工业园区",
                    "AQI": "82",
                    "quality": "良",
                    "PM2.5Hour": "60μg/m³",
                    "PM2.5Day": "60μg/m³",
                    "PM10Hour": "88μg/m³",
                    "lat": "31.309722",
                    "lon": "120.669167"
                }
            }
        }
    ]
}


© 著作权归作者所有

是我的名字啊
粉丝 1
博文 22
码字总数 17040
作品 0
广州
私信 提问
江苏新闻广播:云创大数据有个梦想···

  11月21日,在江苏新闻广播FM93.7-新闻早高峰节目中,“我的小镇我的梦”特别策划走进了紫云云创小镇。正如主持人所说,当你来到汇集了146家云计算企业的紫云云创小镇,云计算这个抽象概念...

中国机器人
2017/11/28
0
0
使用 Cloud Insight SDK 监控北京空气质量!

现在越来越多的 App 都开始有广告了。特别是空气质量监测,和天气类的 App,广告还是蛮多的,眼花缭乱,真是够了。 最近刚好在用一款系统监控工具 Cloud Insight,它提供的 SDK 可以把任一数...

OneAPM蓝海讯通
2015/12/23
52
3
小程序改良_02

简述 本文介绍 “公众空气质量” 小程序重构过程中遇到的问题及解决思路 需求分析 基于现有的用户反馈及自己使用过程中觉得比较繁琐的内容进行修改,重点修改以下内容: 1、原本站点分布(地...

过桥0811
2018/01/22
0
0
20T数据、百万奖金,同济和武大摘得开放数据创新应用大赛桂冠!

整理 | Jane 出品 | AI科技大本营 中国华录杯·城市开放数据创新应用大赛,18 日在天津迎来了收官的决赛之战。本次大赛由中国华录集团有限公司和天津市津南区人民政府共同举办。利用天津市人...

AI科技大本营
2018/12/21
0
0
KDD CUP 2018 | 北京监测站点空气质量可视化分析

KDD CUP作为全球顶级数据挖掘竞赛,幸得师弟鼓励拉上本拖油瓶一起参赛~~ 5.31日比赛就结束了,这次的kdd cup作为我们的练习赛吧,本来早就要做这个可视化分析的,但是工作太忙,一直抽不出时...

邓莎
2018/05/17
0
0

没有更多内容

加载失败,请刷新页面

加载更多

mysql-connector-java升级到8.0后保存时间到数据库出现了时差

在一个新项目中用到了新版的mysql jdbc 驱动 <dependency>     <groupId>mysql</groupId>     <artifactId>mysql-connector-java</artifactId>     <version>8.0.18</version> ......

ValSong
今天
5
0
Spring Boot 如何部署到 Linux 中的服务

打包完成后的 Spring Boot 程序如何部署到 Linux 上的服务? 你可以参考官方的有关部署 Spring Boot 为 Linux 服务的文档。 文档链接如下: https://docs.ossez.com/spring-boot-docs/docs/r...

honeymoose
今天
6
0
Spring Boot 2 实战:使用 Spring Boot Admin 监控你的应用

1. 前言 生产上对 Web 应用 的监控是十分必要的。我们可以近乎实时来对应用的健康、性能等其他指标进行监控来及时应对一些突发情况。避免一些故障的发生。对于 Spring Boot 应用来说我们可以...

码农小胖哥
今天
9
0
ZetCode 教程翻译计划正式启动 | ApacheCN

原文:ZetCode 协议:CC BY-NC-SA 4.0 欢迎任何人参与和完善:一个人可以走的很快,但是一群人却可以走的更远。 ApacheCN 学习资源 贡献指南 本项目需要校对,欢迎大家提交 Pull Request。 ...

ApacheCN_飞龙
今天
5
0
CSS定位

CSS定位 relative相对定位 absolute绝对定位 fixed和sticky及zIndex relative相对定位 position特性:css position属性用于指定一个元素在文档中的定位方式。top、right、bottom、left属性则...

studywin
今天
8
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部