hzexe / openair

国家空气质量数据获取库,包含完整的API,不再信任地方检测站
Apache License 2.0
91 stars 42 forks source link

能不能写一个example:如何获取北京,杭州的某段时间的小时PM2.5的数据! #4

Closed J08056 closed 3 years ago

J08056 commented 4 years ago

你 好,能不能提供一个example:如何获取北京,杭州的某段时间的小时PM2.5的数据!

hzexe commented 3 years ago

example里有类似的示例: https://github.com/hzexe/openair/blob/044e27ed7ae990814127c6025f5bbe427d398829/example/Program.cs#L92 注释掉的那行加城市过滤条件就成。

或是获取这个城市所有检测站在某时的数据,再算这个城市的平均值,参考这块示例 https://github.com/hzexe/openair/blob/044e27ed7ae990814127c6025f5bbe427d398829/example/Program.cs#L113