Search for weather conditions at a location.
HTTP request
POST https://mapstools.googleapis.com/v1:lookupWeather
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "unitsSystem": enum ( |
| Fields | |
|---|---|
unitsSystem |
Optional. The units system to use for the returned weather conditions. If not provided, the returned weather conditions will be in the metric system (default = METRIC). |
location |
Required. The location to get the weather conditions for. |
capabilities[] |
Optional. The environmental capabilities to include in the response. |
date |
Optional. Specifies the date of the requested environmental information, relative to the local timezone of the location specified in the |
hour |
Optional. Specifies the hour of the requested environmental information, in 24-hour format (0-23), relative to the local timezone of the location specified in the |
languageCode |
Optional. The BCP-47 language code for localized text in the response (e.g. "en", "ja", "fr-CA"). Defaults to "en" if not specified. |
weatherOptions |
Optional. Options specific to weather requests. |
airQualityOptions |
Optional. Options specific to air quality requests. Ignored if |
Response body
If successful, the response body contains an instance of LookupWeatherResponse.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/maps-platform.mapstools