<button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">On-premises or any cloud edition v1.15</button>

- [SAP BTP edition v1.1](https://docs.cloud.google.com/sap/docs/abap-sdk/btp/latest/reference/googcl_airquality_v1)
- [On-premises or any cloud edition v1.15](https://docs.cloud.google.com/sap/docs/abap-sdk/on-premises-or-any-cloud/latest/reference/googcl_airquality_v1.md.txt)

## Class

```abap
/GOOG/CL_AIRQUALITY_V1
```

- Inheriting from:`/GOOG/CL_HTTP_CLIENT`
- Description:`Air Quality API v1`

For general information about a class in ABAP SDK for Google Cloud, see [API client stub](https://docs.cloud.google.com/sap/docs/abap-sdk/latest/developer#client_stub).

## Types

| Type | Description | Visibility |
|---|---|---|
| `TY_001` | `AdditionalInfo` | PUBLIC |
| `TY_002` | `AirQualityIndex` | PUBLIC |
| `TY_003` | `Color` | PUBLIC |
| `TY_004` | `Concentration` | PUBLIC |
| `TY_005` | `CustomLocalAqi` | PUBLIC |
| `TY_006` | `HealthRecommendations` | PUBLIC |
| `TY_007` | `HourInfo` | PUBLIC |
| `TY_008` | `HourlyForecast` | PUBLIC |
| `TY_009` | `HttpBody` | PUBLIC |
| `TY_010` | `Interval` | PUBLIC |
| `TY_011` | `LatLng` | PUBLIC |
| `TY_012` | `LookupCurrentConditionsRequest` | PUBLIC |
| `TY_013` | `LookupCurrentConditionsResponse` | PUBLIC |
| `TY_014` | `LookupForecastRequest` | PUBLIC |
| `TY_015` | `LookupForecastResponse` | PUBLIC |
| `TY_016` | `LookupHistoryRequest` | PUBLIC |
| `TY_017` | `LookupHistoryResponse` | PUBLIC |
| `TY_018` | `Pollutant` | PUBLIC |
| `TY_T_002` | `AirQualityIndex` | PUBLIC |
| `TY_T_005` | `CustomLocalAqi` | PUBLIC |
| `TY_T_007` | `HourInfo` | PUBLIC |
| `TY_T_008` | `HourlyForecast` | PUBLIC |
| `TY_T_018` | `Pollutant` | PUBLIC |
| `TY_T_STRING` | `Table of Strings` | PUBLIC |

## Constants

| Name | Type | Description | Value | Visibility |
|---|---|---|---|---|
| `C_CLOUD_VERSION` | `/GOOG/SDK_VERSION` | Lowest Cloud Version |   | PUBLIC |
| `C_ON_PREM_VERSION` | `/GOOG/SDK_VERSION` | Lowest On-premises Version | 1.10 | PUBLIC |
| `C_PATH_PREFIX` | `STRING` | API Path Prefix |   | PUBLIC |
| `C_REVISION_DATE` | `DATUM` | Discovery Document revision Date | 20250310 | PUBLIC |
| `C_ROOT_URL` | `STRING` | API Root URL | https://airquality.googleapis.com | PUBLIC |
| `C_SERVICE_NAME` | `/GOOG/SERVICE_NAME` | Google Service Name | airquality:v1 | PUBLIC |
| `C_SUPPORTED_AUTH` | `/GOOG/SUPP_AUTH` | Supported Auth Types | IJIJWW | PUBLIC |

## Methods

For general information about a method in ABAP SDK for Google Cloud, see [API method](https://docs.cloud.google.com/sap/docs/abap-sdk/latest/developer#api_method).

### CONSTRUCTOR

- Description: Constructor
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_KEY_NAME` | IMPORTING | `/GOOG/KEYNAME` | Google Cloud Key Name |
| `IV_LOG_OBJ` | IMPORTING | `BALOBJ_D` | Application log: Object name (Application code) |
| `IV_LOG_SUBOBJ` | IMPORTING | `BALSUBOBJ` | Application Log: Subobject |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### LOOKUP_CURRENT_CONDITIONS

- Description: airquality.currentConditions.lookup
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IS_INPUT` | IMPORTING | `TY_012` | LookupCurrentConditionsRequest |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_013` | LookupCurrentConditionsResponse |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### LOOKUP_FORECAST

- Description: airquality.forecast.lookup
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IS_INPUT` | IMPORTING | `TY_014` | LookupForecastRequest |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_015` | LookupForecastResponse |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### LOOKUP_HEATMAP_TILE_HEATMAP

- Description: airquality.mapTypes.heatmapTiles.lookupHeatmapTile
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_MAP_TYPE` | IMPORTING | `STRING` | mapType |
| `IV_P_X` | IMPORTING | `STRING` | x |
| `IV_P_Y` | IMPORTING | `STRING` | y |
| `IV_P_ZOOM` | IMPORTING | `STRING` | zoom |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_009` | HttpBody |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### LOOKUP_HISTORY

- Description: airquality.history.lookup
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IS_INPUT` | IMPORTING | `TY_016` | LookupHistoryRequest |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_017` | LookupHistoryResponse |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### CLOSE

- Description: Close Connection
- Visibility: PUBLIC