- JSON representation
- Temperature
- SunEvents
- MoonEvents
- WeatherCondition
- LocalizedText
- Precipitation
- PrecipitationProbability
- QuantitativePrecipitationForecast
- Wind
- WindDirection
- WindSpeed
- WeatherResultData
- PollenResultData
- DailyPollenForecast
- PollenCategoryInfo
- PollenIndex
- PlantSpeciesInfo
Response for the LookupWeather RPC - represents the weather conditions at the requested location.
This response represent both Hourly and Daily information, therefore the response is split in three sections Hourly, Daily and Shared. Only-Hourly, Only-Daily fields are marked as optional. For fields that are shared between Hourly and Daily information, some are always present so they are not marked as optional while the rest are marked as optional because they are not always available.
| JSON representation |
|---|
{ "weatherCondition": { object ( |
| Fields | |
|---|---|
weatherCondition |
The weather condition |
precipitation |
The precipitation probability and amount of precipitation accumulated |
wind |
The wind conditions |
returnedLocation |
Required. The location where the weather information is returned. This location is identical to the location in the request, but can be different from it if the requested location is a free text address that looks up to a coarse location (e.g. "Mountain View, CA"). |
attribution |
Required attribution to show with the weather. |
temperature |
The hourly temperature |
feelsLikeTemperature |
The hourly measure of how the temperature feels like. |
heatIndex |
The hourly heat index temperature. |
airPressure |
The hourly air pressure conditions. |
maxTemperature |
The maximum (high) temperature throughout the day. |
minTemperature |
The minimum (low) temperature throughout the day. |
feelsLikeMaxTemperature |
The maximum (high) feels-like temperature throughout the day. |
feelsLikeMinTemperature |
The minimum (low) feels-like temperature throughout the day. |
maxHeatIndex |
The maximum heat index temperature throughout the day. |
sunEvents |
The events related to the sun (e.g. sunrise, sunset). |
moonEvents |
The events related to the moon (e.g. moonrise, moonset). |
relativeHumidity |
The percent of relative humidity (values from 0 to 100). |
uvIndex |
The maximum ultraviolet (UV) index. |
thunderstormProbability |
The thunderstorm probability (values from 0 to 100). |
cloudCover |
The percentage of the sky covered by clouds (values from 0 to 100). |
weather |
Weather conditions at the requested location. |
airQuality |
Air quality information at the requested location. |
pollen |
Pollen information at the requested location. |
timeZone |
Resolved IANA timezone string for the location (e.g., "America/New_York", "Asia/Tokyo"). |
Temperature
Represents a temperature value.
| JSON representation |
|---|
{
"unit": enum ( |
| Fields | |
|---|---|
unit |
Optional. The code for the unit used to measure the temperature value. |
degrees |
The temperature value (in degrees) in the specified unit. |
SunEvents
Represents the events related to the sun (e.g. sunrise, sunset).
| JSON representation |
|---|
{ "sunriseTime": string, "sunsetTime": string } |
| Fields | |
|---|---|
sunriseTime |
The time when the sun rises. NOTE: In some unique cases (e.g. north of the artic circle) there may be no sunrise time for a day. In these cases, this field will be unset. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
sunsetTime |
The time when the sun sets. NOTE: In some unique cases (e.g. north of the artic circle) there may be no sunset time for a day. In these cases, this field will be unset. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
MoonEvents
Represents the events related to the moon (e.g. moonrise, moonset).
| JSON representation |
|---|
{
"moonPhase": enum ( |
| Fields | |
|---|---|
moonPhase |
Optional. The moon phase (a.k.a. lunar phase). |
moonriseTimes[] |
The time when the upper limb of the moon appears above the horizon (see https://en.wikipedia.org/wiki/Moonrise_and_moonset). NOTE: For most cases, there'll be a single moon rise time per day. In other cases, the list might be empty (e.g. when the moon rises after next day midnight). However, in unique cases (e.g. in polar regions), the list may contain more than one value. In these cases, the values are sorted in ascending order. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
moonsetTimes[] |
The time when the upper limb of the moon disappears below the horizon (see https://en.wikipedia.org/wiki/Moonrise_and_moonset). NOTE: For most cases, there'll be a single moon set time per day. In other cases, the list might be empty (e.g. when the moon sets after next day midnight). However, in unique cases (e.g. in polar regions), the list may contain more than one value. In these cases, the values are sorted in ascending order. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
WeatherCondition
Represents a weather condition for a given location at a given period of time.
Disclaimer: Weather icons and condition codes are subject to change. Google may introduce new codes and icons or update existing ones as needed. We encourage you to refer to this documentation regularly for the most up-to-date information.
| JSON representation |
|---|
{ "iconBaseUri": string, "description": { object ( |
| Fields | |
|---|---|
iconBaseUri |
The base URI for the icon not including the file type extension. To display the icon, append a theme if desired and the file type extension ( |
description |
The textual description for this weather condition (localized). |
type |
The type of weather condition. |
LocalizedText
Localized variant of a text in a particular language.
| JSON representation |
|---|
{ "text": string, "languageCode": string } |
| Fields | |
|---|---|
text |
Localized string in the language corresponding to |
languageCode |
The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. |
Precipitation
Represents a set of precipitation values at a given location.
| JSON representation |
|---|
{ "probability": { object ( |
| Fields | |
|---|---|
probability |
The probability of precipitation (values from 0 to 100). |
snowQpf |
The amount of snow, measured as liquid water equivalent, that has accumulated over a period of time. Note: QPF is an abbreviation for Quantitative Precipitation Forecast (please see the QuantitativePrecipitationForecast definition for more details). |
qpf |
The amount of precipitation rain, measured as liquid water equivalent, that has accumulated over a period of time. Note: QPF is an abbreviation for Quantitative Precipitation Forecast (please see the QuantitativePrecipitationForecast definition for more details). |
PrecipitationProbability
Represents the probability of precipitation at a given location.
| JSON representation |
|---|
{
"type": enum ( |
| Fields | |
|---|---|
type |
Optional. A code that indicates the type of precipitation. |
percent |
A percentage from 0 to 100 that indicates the chances of precipitation. |
QuantitativePrecipitationForecast
Represents the expected amount of melted precipitation accumulated over a specified time period over a specified area (reference: https://en.wikipedia.org/wiki/Quantitative_precipitation_forecast) - usually abbreviated QPF for short.
| JSON representation |
|---|
{
"unit": enum ( |
| Fields | |
|---|---|
unit |
The code of the unit used to measure the amount of accumulated precipitation. |
quantity |
The amount of precipitation, measured as liquid water equivalent, that has accumulated over a period of time. |
Wind
Represents a set of wind properties.
| JSON representation |
|---|
{ "direction": { object ( |
| Fields | |
|---|---|
direction |
The direction of the wind, the angle it is coming from. |
speed |
The speed of the wind. |
gust |
The wind gust (sudden increase in the wind speed). |
WindDirection
Represents the direction from which the wind originates.
| JSON representation |
|---|
{
"cardinal": enum ( |
| Fields | |
|---|---|
cardinal |
Optional. The code that represents the cardinal direction from which the wind is blowing. |
degrees |
The direction of the wind in degrees (values from 0 to 360). |
WindSpeed
Represents the speed of the wind.
| JSON representation |
|---|
{
"unit": enum ( |
| Fields | |
|---|---|
unit |
Optional. The code that represents the unit used to measure the wind speed. |
value |
The value of the wind speed. |
WeatherResultData
Weather conditions payload for the requested location.
| JSON representation |
|---|
{ "weatherCondition": { object ( |
| Fields | |
|---|---|
weatherCondition |
The weather condition. |
precipitation |
The precipitation probability and amount of precipitation accumulated. |
wind |
The wind conditions. |
attribution |
Required attribution to show with the weather. |
dateTime |
The timestamp for this hourly or current weather entry. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
temperature |
The hourly temperature. |
feelsLikeTemperature |
The hourly measure of how the temperature feels like. |
heatIndex |
The hourly heat index temperature. |
airPressure |
The hourly air pressure conditions. |
date |
Civil calendar date of the daily weather forecast. |
maxTemperature |
The maximum (high) temperature throughout the day. |
minTemperature |
The minimum (low) temperature throughout the day. |
feelsLikeMaxTemperature |
The maximum (high) feels-like temperature throughout the day. |
feelsLikeMinTemperature |
The minimum (low) feels-like temperature throughout the day. |
maxHeatIndex |
The maximum heat index temperature throughout the day. |
sunEvents |
The events related to the sun (e.g. sunrise, sunset). |
moonEvents |
The events related to the moon (e.g. moonrise, moonset). |
relativeHumidity |
The percent of relative humidity (values from 0 to 100). |
uvIndex |
The maximum ultraviolet (UV) index. |
thunderstormProbability |
The thunderstorm probability (values from 0 to 100). |
cloudCover |
The percentage of the sky covered by clouds (values from 0 to 100). |
PollenResultData
Pollen payload for the requested location.
| JSON representation |
|---|
{ "dailyForecast": { object ( |
| Fields | |
|---|---|
dailyForecast |
Daily pollen forecast for the requested date. |
attribution |
Required attribution to show with the pollen data. |
DailyPollenForecast
Pollen forecast for a single calendar day.
| JSON representation |
|---|
{ "date": { object ( |
| Fields | |
|---|---|
date |
Civil calendar date of the forecast. |
categories[] |
Broad pollen category breakdown (Tree, Grass, Weed). |
plantSpecies[] |
Granular plant species breakdown. |
PollenCategoryInfo
Information for a broad pollen category (e.g. Tree, Grass, Weed).
| JSON representation |
|---|
{
"displayName": string,
"inSeason": boolean,
"index": {
object ( |
| Fields | |
|---|---|
displayName |
Display name of the category (e.g. "Tree", "Grass", "Weed"). |
inSeason |
Whether this pollen category is actively blooming in the region. |
index |
Universal Pollen Index (UPI) measurement for this category. |
healthRecommendations[] |
Actionable health advice for pollen-sensitive groups. |
PollenIndex
Standardized Universal Pollen Index (UPI) measurement.
| JSON representation |
|---|
{ "category": string, "description": string, "value": integer } |
| Fields | |
|---|---|
category |
Localized category classification (e.g. "None", "Very Low", "Low", "Moderate", "High", "Very High"). |
description |
Description of the pollen risk level. |
value |
Numeric UPI value (0 to 5 scale). |
PlantSpeciesInfo
Information for a specific allergenic plant species.
| JSON representation |
|---|
{
"code": string,
"displayName": string,
"family": string,
"inSeason": boolean,
"index": {
object ( |
| Fields | |
|---|---|
code |
Machine-readable species code (e.g. "BIRCH", "JAPANESE_CEDAR", "RAGWEED"). |
displayName |
Localized display name of the plant species (e.g. "Birch"). |
family |
Botanical family name (e.g. "Betulaceae (the Birch family)"). |
inSeason |
Whether this plant species is currently in season. |
index |
Universal Pollen Index (UPI) measurement for this species. |
season |
Typical blooming season description (e.g. "Late winter, spring"). |
crossReactions |
Known cross-reactive allergens (e.g. "Alder, Hazel, Beech, and Oak pollen"). |