{"id":21689651,"url":"https://github.com/3zcurdia/waqi","last_synced_at":"2025-04-12T09:34:57.489Z","repository":{"id":56897769,"uuid":"82017121","full_name":"3zcurdia/waqi","owner":"3zcurdia","description":"Air Quality Open Data Platform api wrapper","archived":false,"fork":false,"pushed_at":"2020-05-29T14:24:55.000Z","size":41,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T04:33:49.396Z","etag":null,"topics":["air","api","open-data","pollution","ruby","wrapper"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3zcurdia.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-15T03:38:05.000Z","updated_at":"2022-04-08T16:24:41.000Z","dependencies_parsed_at":"2022-08-20T17:40:35.144Z","dependency_job_id":null,"html_url":"https://github.com/3zcurdia/waqi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3zcurdia%2Fwaqi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3zcurdia%2Fwaqi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3zcurdia%2Fwaqi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3zcurdia%2Fwaqi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3zcurdia","download_url":"https://codeload.github.com/3zcurdia/waqi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248546629,"owners_count":21122354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["air","api","open-data","pollution","ruby","wrapper"],"created_at":"2024-11-25T17:27:06.334Z","updated_at":"2025-04-12T09:34:57.447Z","avatar_url":"https://github.com/3zcurdia.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Waqi\n[![Build Status](https://travis-ci.org/3zcurdia/waqi.svg?branch=master)](https://travis-ci.org/3zcurdia/waqi) [![Code Climate](https://lima.codeclimate.com/github/3zcurdia/waqi/badges/gpa.svg)](https://lima.codeclimate.com/github/3zcurdia/waqi)\n\n[Air Quality Open Data Platform](http://aqicn.org/api/) ruby wrapper\n\n## Installation\n\n```ruby\ngem 'waqi'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install waqi\n\n## Usage\n\nInitialize the client\n\n```ruby\n  require 'waqi'\n  client = Waqi::Client.new(token: 'secret token')\n```\nCity feed, it returns StationData\n\n```ruby\n  client.city_feed('shanghai')\n```\n\nStation feed, it returns StationData\n\n```ruby\n  client.station_feed(400)\n```\n\nGeolocalized feed, it returns StationData\n\n```ruby\n  client.geo_feed(37.774929, -122.419416)\n```\n\nLocal feed, it returns the nearest StationData\n\n```ruby\n  client.local_feed\n```\n\nFeed map within bounds, it returns an array of  StationPin\n\n```ruby\n  client.map_stations(39.379436, 116.091230, 40.235643, 116.784382)\n```\n\nSearch by keyword, it returns an array of StationData\n\n```ruby\n  client.search('bangalore')\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/3zcurdia/waqi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3zcurdia%2Fwaqi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3zcurdia%2Fwaqi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3zcurdia%2Fwaqi/lists"}