View Source GoogleApi.AirQuality.V1.Model.LookupCurrentConditionsResponse (google_api_air_quality v0.3.1)

Attributes

  • dateTime (type: DateTime.t, default: nil) - A rounded down timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. For example: "2014-10-02T15:00:00Z".
  • healthRecommendations (type: GoogleApi.AirQuality.V1.Model.HealthRecommendations.t, default: nil) - Health advice and recommended actions related to the reported air quality conditions. Recommendations are tailored differently for populations at risk, groups with greater sensitivities to pollutants, and the general population.
  • indexes (type: list(GoogleApi.AirQuality.V1.Model.AirQualityIndex.t), default: nil) - Based on the request parameters, this list will include (up to) two air quality indexes: - Universal AQI. Will be returned if the universalAqi boolean is set to true. - Local AQI. Will be returned if the LOCAL_AQI extra computation is specified.
  • pollutants (type: list(GoogleApi.AirQuality.V1.Model.Pollutant.t), default: nil) - A list of pollutants affecting the location specified in the request. Note: This field will be returned only for requests that specified one or more of the following extra computations: POLLUTANT_ADDITIONAL_INFO, DOMINANT_POLLUTANT_CONCENTRATION, POLLUTANT_CONCENTRATION.
  • regionCode (type: String.t, default: nil) - The ISO_3166-1 alpha-2 code of the country/region corresponding to the location provided in the request. This field might be omitted from the response if the location provided in the request resides in a disputed territory.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AirQuality.V1.Model.LookupCurrentConditionsResponse{
  dateTime: DateTime.t() | nil,
  healthRecommendations:
    GoogleApi.AirQuality.V1.Model.HealthRecommendations.t() | nil,
  indexes: [GoogleApi.AirQuality.V1.Model.AirQualityIndex.t()] | nil,
  pollutants: [GoogleApi.AirQuality.V1.Model.Pollutant.t()] | nil,
  regionCode: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.