Temperature
Stay organized with collections
Save and categorize content based on your preferences.
Represents a temperature value.
Fields |
unit |
enum (TemperatureUnit )
The code for the unit used to measure the temperature value.
|
degrees |
number
The temperature value (in degrees) in the specified unit.
|
TemperatureUnit
Represents a unit used to measure temperatures.
Enums |
TEMPERATURE_UNIT_UNSPECIFIED |
The temperature unit is unspecified. |
CELSIUS |
The temperature is measured in Celsius. |
FAHRENHEIT |
The temperature is measured in Fahrenheit. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[],[],null,["# Temperature\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [TemperatureUnit](#TemperatureUnit)\n\nRepresents a temperature value.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"unit\": enum (/maps/documentation/weather/reference/rest/v1/Temperature#TemperatureUnit), \"degrees\": number } ``` |\n\n| Fields ||\n|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `unit` | `enum (`[TemperatureUnit](/maps/documentation/weather/reference/rest/v1/Temperature#TemperatureUnit)`)` The code for the unit used to measure the temperature value. |\n| `degrees` | `number` The temperature value (in degrees) in the specified unit. |\n\nTemperatureUnit\n---------------\n\nRepresents a unit used to measure temperatures.\n\n| Enums ||\n|--------------------------------|--------------------------------------------|\n| `TEMPERATURE_UNIT_UNSPECIFIED` | The temperature unit is unspecified. |\n| `CELSIUS` | The temperature is measured in Celsius. |\n| `FAHRENHEIT` | The temperature is measured in Fahrenheit. |"]]