- [JSON representation](https://developers.google.com/maps/documentation/weather/reference/rest/v1/Temperature#SCHEMA_REPRESENTATION)
- [Unit](https://developers.google.com/maps/documentation/weather/reference/rest/v1/Temperature#Unit)

Represents a temperature value.

| JSON representation |
|---|
| ``` { "unit": enum (`https://developers.google.com/maps/documentation/weather/reference/rest/v1/Temperature#Unit`), "degrees": number } ``` |

| Fields ||
|---|---|
| `unit` | ``enum (`https://developers.google.com/maps/documentation/weather/reference/rest/v1/Temperature#Unit`)`` Optional. The code for the unit used to measure the temperature value. |
| `degrees` | `number` The temperature value (in degrees) in the specified unit. |

## Unit

Represents a unit used to measure temperatures.

| Enums ||
|---|---|
| `UNIT_UNSPECIFIED` | The temperature unit is unspecified. |
| `CELSIUS` | The temperature is measured in Celsius. |
| `FAHRENHEIT` | The temperature is measured in Fahrenheit. |