Tile Map Service Endpoint

The tile map server is available from the url https://tiles.waqi.info/tiles/{aqi}/{z}/{x}/{y}.png, where aqi refers for the type of marker to be plotted, which can be:

  • usepa-aqi: Plots markers based on the composite AQI calculated with the US EPA standard.
  • usepa-pm25: PM2.5 based AQI – if a station does not have PM2.5 reading, then it is not plotted.
  • usepa-10: Same as above, but for PM10.
  • usepa-o3: Same as above, but for Ozone (based on the 1 hour breakpoints).
  • usepa-no2: Same as above, but for Nitrogen Dioxide.
  • usepa-so2: Same as above, but for Sulfur Dioxide.
  • usepa-co: Same as above, but for Carbon Monoxide.
  • asean-pm10: Asean PM10 raw PM10 concentration (explanations).

Web-Service usage conditions

The map webservice is provided for free, under the condition of reasonable usage limits and acceptable usage policy. The tiles are currently refreshed every 15 minutes (and up to 1 hour in case of high traffic). 

Note that our server capacity is limited, so we reserve the right to pause the service at any time, for instance to performance server maintenance. If you need a more stable integration, contact us to find a proper solution, such as setting-up a dedictated server. 

Last you also need to specify your own token ID as an extra argument to the tile service endpoint, like token=_TOKEN_ID_ in the following url: https://tiles.waqi.info/tiles/{aqi}/{z}/{x}/{y}.png?token=_TOKEN_ID_. You can request your own token ID from this page. You just need to provide a valid email, and you can get your own token within a minute. 

Source:

https://aqicn.org/faq/2015-09-18/map-web-service-real-time-air-quality-tile-api/
Categories: PythonQGIS

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: