<iframe src="https://developers.devsite.google/frame/maps/documentation/javascript/reference/air-quality_c7b38082b466d06d8f67fc9d062eeb41d70e5d25997b0aeba2464e1b61fb8db2.frame" class="framebox inherit-locale redirect-iframe" allow="clipboard-write https://developers.devsite.google" allowfullscreen is-upgraded></iframe>

## [AirQualityMeterElement](https://developers.google.com/maps/documentation/javascript/reference/air-quality.md.txt#AirQualityMeterElement)
class


class
`google.maps.airQuality.AirQualityMeterElement`
extends `HTMLElement`
implements `AirQualityMeterElementOptions`

library `"airQuality"`
**Notice:** Available only in the [v=alpha channel](https://developers.google.com/maps/documentation/javascript/versions.md.txt#choosing-the-alpha-channel).

Displays air quality information for a given location.

```html
<gmp-air-quality-meter
  location="lat,lng">
</gmp-air-quality-meter>
```

```javascript
const {AirQualityMeterElement} = await google.maps.importLibrary("airQuality");
```

| ### Constructor ||
|---|---|
| `AirQualityMeterElement` | `AirQualityMeterElement([options])` **Parameters:** - `options: AirQualityMeterElementOptions optional` |

| ### Properties ||
|---|---|
| `location` attr: location | **Input type:** `LatLngLiteral|LatLng|LatLngAltitudeLiteral|LatLngAltitude optional` **Output type:** `LatLngAltitude optional` **Default:** `null` The location to render the air quality meter for. Normalizes to a `LatLngAltitude`. **HTML attribute:** `location="lat,lng"` |
| `requestedLanguage` | **Type:** `string optional` **Default:** `null` An override for the language to request from the [Air Quality API](https://developers.google.com/maps/documentation/air-quality/overview.md.txt). See the [list of supported languages](https://developers.google.com/maps/faq.md.txt#languagesupport). |

| ### Methods ||
|---|---|

| ### Events ||
|---|---|
| `gmp-error` | `function()` **Arguments:** None Event fired when the `AirQualityMeterElement` has an error in loading. |
| `gmp-load` | `function()` **Arguments:** None Event fired when the `AirQualityMeterElement` has finished loading. |

## [AirQualityMeterElementOptions](https://developers.google.com/maps/documentation/javascript/reference/air-quality.md.txt#AirQualityMeterElementOptions)
interface


interface
`google.maps.airQuality.AirQualityMeterElementOptions`

implemented by `AirQualityMeterElement`

AirQualityMeterElement options.

| ### Properties ||
|---|---|
| `location` optional | **Type:** `LatLngLiteral|LatLng|LatLngAltitudeLiteral|LatLngAltitude optional` See `AirQualityMeterElement.location` |
| `requestedLanguage` optional | **Type:** `string optional` See `AirQualityMeterElement.requestedLanguage` |