# Visibility

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

Represents visibility conditions, the distance at which objects can be discerned.

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

| Fields ||
|---|---|
| `unit` | ``enum (`https://developers.google.com/maps/documentation/weather/reference/rest/v1/Visibility#Unit`)`` The code that represents the unit used to measure the distance. |
| `distance` | `number` The visibility distance in the specified unit. |

## Unit

Represents the unit used to measure the visibility distance.

| Enums ||
|---|---|
| `UNIT_UNSPECIFIED` | The visibility unit is unspecified. |
| `KILOMETERS` | The visibility is measured in kilometers. |
| `MILES` | The visibility is measured in miles. |