Visibility
Stay organized with collections
Save and categorize content based on your preferences.
Represents visibility conditions, the distance at which objects can be discerned.
JSON representation |
{
"unit": enum (Unit ),
"distance": number
} |
Fields |
unit |
enum (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. |
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,["# Visibility\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [Unit](#Unit)\n\nRepresents visibility conditions, the distance at which objects can be discerned.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------|\n| ``` { \"unit\": enum (/maps/documentation/weather/reference/rest/v1/Visibility#Unit), \"distance\": number } ``` |\n\n| Fields ||\n|------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| `unit` | `enum (`[Unit](/maps/documentation/weather/reference/rest/v1/Visibility#Unit)`)` The code that represents the unit used to measure the distance. |\n| `distance` | `number` The visibility distance in the specified unit. |\n\nUnit\n----\n\nRepresents the unit used to measure the visibility distance.\n\n| Enums ||\n|--------------------|-------------------------------------------|\n| `UNIT_UNSPECIFIED` | The visibility unit is unspecified. |\n| `KILOMETERS` | The visibility is measured in kilometers. |\n| `MILES` | The visibility is measured in miles. |"]]