Air Quality API (airquality:v1)

2024-06-10

4 new methods | New API

Additions

    Methods
  • airquality.forecast.lookup

  • airquality.currentConditions.lookup

      HTTP Method : POST

      Description : The Current Conditions endpoint provides hourly air quality information in more than 100 countries, up to a 500 x 500 meters resolution. Includes over 70 local indexes and global air quality index and categories.

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Flat Path : v1/currentConditions:lookup

      Path : v1/currentConditions:lookup

  • airquality.history.lookup

  • airquality.mapTypes.heatmapTiles.lookupHeatmapTile

      Description : Returns a bytes array containing the data of the tile PNG image.

      Path : v1/mapTypes/{mapType}/heatmapTiles/{zoom}/{x}/{y}

      Parameter Order :

    • mapType
    • zoom
    • x
    • y
    • HTTP Method : GET

      Flat Path : v1/mapTypes/{mapType}/heatmapTiles/{zoom}/{x}/{y}

      Parameters :

        x

          Type : integer

          Description : Required. Defines the east-west point in the requested tile.

          Format : int32

          Location : path

          Required : Yes

        zoom

          Description : Required. The map's zoom level. Defines how large or small the contents of a map appear in a map view. Zoom level 0 is the entire world in a single tile. Zoom level 1 is the entire world in 4 tiles. Zoom level 2 is the entire world in 16 tiles. Zoom level 16 is the entire world in 65,536 tiles. Allowed values: 0-16

          Required : Yes

          Format : int32

          Location : path

          Type : integer

        y

          Required : Yes

          Description : Required. Defines the north-south point in the requested tile.

          Type : integer

          Location : path

          Format : int32

        mapType

          Type : string

          Enum Descriptions :

        • The default value. The server ignores it if it is passed as a parameter.
        • Universal Air Quality Index red-green palette.
        • Universal Air Quality Index indigo-persian palette.
        • PM2.5 index indigo-persian palette.
        • Daily Air Quality Index (UK) color palette.
        • German Local Air Quality Index color palette.
        • Canadian Air Quality Health Index color palette.
        • France Air Quality Index color palette.
        • US Air Quality Index color palette.
        • Description : Required. The type of the air quality heatmap. Defines the pollutant that the map will graphically represent. Allowed values: - UAQI_RED_GREEN (UAQI, red-green palette) - UAQI_INDIGO_PERSIAN (UAQI, indigo-persian palette) - PM25_INDIGO_PERSIAN - GBR_DEFRA - DEU_UBA - CAN_EC - FRA_ATMO - US_AQI

          Enum :

        • MAP_TYPE_UNSPECIFIED
        • UAQI_RED_GREEN
        • UAQI_INDIGO_PERSIAN
        • PM25_INDIGO_PERSIAN
        • GBR_DEFRA
        • DEU_UBA
        • CAN_EC
        • FRA_ATMO
        • US_AQI
        • Location : path

          Required : Yes

      Scopes : https://www.googleapis.com/auth/cloud-platform