Panoramica dell'API Weather
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
L'API Weather ti consente di richiedere dati meteo iperlocali in tempo reale per
località in tutto il mondo. Le informazioni meteo includono temperatura,
precipitazioni, umidità e altro ancora.
Per una località a una determinata latitudine e longitudine, l'API fornisce endpoint
che ti consentono di eseguire query su:
- Condizioni attuali:le condizioni meteo attuali.
- Previsione oraria:fino a 240 ore di condizioni previste per tutti gli elementi.
- Previsione giornaliera: fino a 10 giorni di condizioni previste per tutti gli elementi.
- Cronologia oraria:fino a 24 ore di condizioni passate memorizzate nella cache per tutti gli elementi.
Funzionalità dell'API Weather
I dati dell'API Weather includono quanto segue:
- Condizioni meteorologiche e icone: una descrizione e l'icona corrispondente
che indica le condizioni meteorologiche attuali (ad esempio, "Nuvoloso" o
"Nevicate sparse").
- Temperatura:temperature minima, massima e percepita ("sensazione termica").
- Precipitazioni:precipitazioni totali e tipo di precipitazioni (neve, pioggia,
ghiaccio, miste).
- Vento:raffreddamento e direzione del vento medi, velocità massima e raffica.
- Spessore del ghiaccio:spessore del ghiaccio.
- Umidità:punto di rugiada, indice di calore, temperatura di bulbo umido e umidità relativa.
- Indice UV: indice ultravioletto (UV).
- Probabilità di temporale: la probabilità percentuale che si verifichi un temporale.
- Visibilità: la distanza alla quale un oggetto è chiaramente visibile.
- Pressione atmosferica: la pressione atmosferica media al livello del mare.
- Eventi di sole e luna: orari di alba, tramonto, sorgere della luna e tramonto della luna.
- Copertura nuvolosa: la percentuale di cielo coperta dalle nuvole.
Come utilizzare l'API Weather
Passaggi successivi
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-08-29 UTC.
[null,null,["Ultimo aggiornamento 2025-08-29 UTC."],[],[],null,["# Weather API overview\n\nThe Weather API lets you request real-time, hyperlocal weather data for\nlocations around the world. Weather information includes temperature,\nprecipitation, humidity, and more.\n\nFor a location at a given latitude and longitude, the API provides endpoints\nthat let you query:\n\n- **Current conditions:** The current weather conditions.\n- **Hourly forecast:** Up to 240 hours of forecasted conditions for all elements.\n- **Daily forecast:** Up to 10 days of forecasted conditions for all elements.\n- **Hourly history:** Up to 24 hours of cached past conditions for all elements.\n\nFeatures of the Weather API\n---------------------------\n\nWeather API data includes the following:\n\n- **Weather conditions and icons:** A description and corresponding icon indicating the current weather conditions (for example, \"Cloudy\" or \"Scattered snow showers\").\n- **Temperature:** Minimum, maximum, and apparent (\"feels like\") temperatures.\n- **Precipitation:** Total precipitation and precipitation type (snow, rain, ice, mix).\n- **Wind:** Average windchill, wind direction, maximum speed, and gust.\n- **Ice thickness:** Thickness of ice.\n- **Humidity:** Dew point, heat index, wet-bulb temperature, and relative humidity.\n- **UV index:** Ultraviolet (UV) index.\n- **Thunderstorm probability:** The percent chance of a thunderstorm occurring.\n- **Visibility:** The distance at which an object is clearly visible.\n- **Air pressure:** The average sea level air pressure.\n- **Sun and moon events:** Sunrise, sunset, moonrise, and moonset times.\n- **Cloud cover:** The percentage of the sky covered by clouds.\n\nHow to use the Weather API\n--------------------------\n\n|---|----------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| 1 | **Get set up** | Start with [Set up your Google Cloud project](/maps/documentation/weather/cloud-setup) and complete the instructions that follow. |\n| 2 | **Get current conditions** | See [Get current conditions](/maps/documentation/weather/current-conditions). |\n| 3 | **Get hourly forecast** | See [Get hourly forecast](/maps/documentation/weather/hourly-forecast). |\n| 4 | **Get daily forecast** | See [Get daily forecast](/maps/documentation/weather/daily-forecast). |\n| 5 | **Get hourly history** | See [Get hourly history](/maps/documentation/weather/hourly-history). |\n\nWhat's next\n-----------\n\n- [Set up your Google Cloud project](/maps/documentation/weather/cloud-setup)\n- [Get current conditions](/maps/documentation/weather/current-conditions)\n- [Get hourly forecast](/maps/documentation/weather/hourly-forecast)\n- [Get daily forecast](/maps/documentation/weather/daily-forecast)\n- [Get hourly history](/maps/documentation/weather/hourly-history)"]]