{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-maps/json-schema/google-maps-lookup-current-conditions-request-schema.json",
  "title": "LookupCurrentConditionsRequest",
  "description": "The request definition of the air quality current conditions.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-maps-airquality-current-conditions-api-openapi.yml#/components/schemas/LookupCurrentConditionsRequest",
  "properties": {
    "languageCode": {
      "description": "Optional. Allows the client to choose the language for the response. If data cannot be provided for that language the API uses the closest match. Allowed values rely on the IETF standard. Default value is en.",
      "type": "string"
    },
    "location": {
      "$ref": "#/$defs/LatLng",
      "description": "Required. The longitude and latitude from which the API looks for air quality current conditions data."
    },
    "customLocalAqis": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CustomLocalAqi"
      },
      "description": "Optional. Expresses a 'country/region to AQI' relationship. Pairs a country/region with a desired AQI so that air quality data that is required for that country/region will be displayed according to the chosen AQI. This parameter can be used to specify a non-default AQI for a given country, for example, to get the US EPA index for Canada rather than the default index for Canada."
    },
    "uaqiColorPalette": {
      "description": "Optional. Determines the color palette used for data provided by the 'Universal Air Quality Index' (UAQI). This color palette is relevant just for UAQI, other AQIs have a predetermined color palette that can't be controlled.",
      "type": "string",
      "enum": [
        "COLOR_PALETTE_UNSPECIFIED",
        "RED_GREEN",
        "INDIGO_PERSIAN_DARK",
        "INDIGO_PERSIAN_LIGHT"
      ]
    },
    "extraComputations": {
      "description": "Optional. Additional features that can be optionally enabled. Specifying extra computations will result in the relevant elements and fields to be returned in the response.",
      "type": "array",
      "items": {
        "enum": [
          "EXTRA_COMPUTATION_UNSPECIFIED",
          "LOCAL_AQI",
          "HEALTH_RECOMMENDATIONS",
          "POLLUTANT_ADDITIONAL_INFO",
          "DOMINANT_POLLUTANT_CONCENTRATION",
          "POLLUTANT_CONCENTRATION"
        ],
        "type": "string"
      }
    },
    "universalAqi": {
      "type": "boolean",
      "description": "Optional. If set to true, the Universal AQI will be included in the 'indexes' field of the response. Default value is true."
    }
  },
  "type": "object",
  "$defs": {
    "CustomLocalAqi": {
      "properties": {
        "regionCode": {
          "description": "The country/region requiring the custom AQI. Value should be provided using [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.",
          "type": "string"
        },
        "aqi": {
          "description": "The AQI to associate the country/region with. Value should be a [valid index](/maps/documentation/air-quality/laqis) code.",
          "type": "string"
        }
      },
      "description": "Expresses a 'country/region to AQI' relationship. Pairs a country/region with a desired AQI so that air quality data that is required for that country/region will be displayed according to the chosen AQI.",
      "type": "object"
    },
    "LatLng": {
      "type": "object",
      "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.",
      "properties": {
        "longitude": {
          "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
          "type": "number",
          "format": "double"
        },
        "latitude": {
          "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
          "format": "double",
          "type": "number"
        }
      }
    }
  }
}