Created
August 4, 2015 08:14
-
-
Save hatewx/d7bd0775d3e53db477cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #空气质量数据获取 | |
| ##数据源 | |
| > 以下是三个使用方便,不需要爬虫的数据源 | |
| ### 1. aqicn.org | |
| 数据源:各地区环境监测中心,美国等使馆监测数据,自愿者使用指定设备上传的数据 | |
| 访问限制:无 | |
| 开放:非,网友自己找到,可能是他们自身APP使用的web api | |
| 费用:无 | |
| 特点:数据准确,丰富,可靠,4小时更新一次,使用GeoNames city数据,查询可靠。在API稳定的情况下,可不搭建服务器。 | |
| API doc: http://aqicn.org/aqicn/json/android/beijing/json | |
| ### 2. pm2.5.in | |
| 数据源:国家环境保护部 | |
| 访问限制:有,每小时限制次数(而且次数不多),必需要自己搭建服务器 | |
| 开放:是 | |
| 费用:无 | |
| 特点:相对稳定,必需要申请key,但服务能力有限。 | |
| API doc: http://pm25.in/api_doc | |
| ### 3. heweather.com | |
| 数据源:未知 | |
| 访问限制:有,根据收费和付费有所不同 | |
| 开放:是 | |
| 费用:有 | |
| 特点:数据最多,更新时间短,如aqi信息每1小时更新一次,相对稳定,需要付费,也使用了GeoNames city数据。 | |
| API doc: http://www.heweather.com/documents/api | |
| ## 定位 | |
| >所有的API都是以地名为**查询参数**,所以第一步是定位,获取城市,地区名。 | |
| ### 1. 第三方定位SDK | |
| 有百度,高德,腾讯等 ,使用方便稳定,可以结合 基站,wifi,ip,GPS等不同的方式定位。 | |
| 特点:需要引入第三方SDK,服务稳定,准确,省时。 | |
| ### 2. 自己定位 | |
| IP定位:获取设备IP,通过本地geo lite数据库获取地理位置 ,或者使用开放web api获取地理位置。 | |
| wifi: 获取ap mac,以下如上 | |
| 基站:获取基站及信号强度信息,以下如上 | |
| 特点:不需要引入三方SDK,定位精度低,需要自己费时实现。 | |
| > Written with [StackEdit](https://stackedit.io/). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment