Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Weather API cho phép bạn yêu cầu dữ liệu thời tiết theo thời gian thực, theo từng khu vực cụ thể cho các vị trí trên khắp thế giới. Thông tin thời tiết bao gồm nhiệt độ, lượng mưa, độ ẩm và nhiều thông tin khác.
Đối với một vị trí ở một vĩ độ và kinh độ nhất định, API này cung cấp các điểm cuối cho phép bạn truy vấn:
Tình hình thời tiết hiện tại: Tình hình thời tiết hiện tại.
Dự báo hằng giờ: Dự báo điều kiện thời tiết trong tối đa 240 giờ cho tất cả các yếu tố.
Dự báo hằng ngày: Dự báo điều kiện thời tiết trong tối đa 10 ngày cho tất cả các yếu tố.
Nhật ký theo giờ: Tối đa 24 giờ điều kiện trong quá khứ được lưu vào bộ nhớ đệm cho tất cả các phần tử.
Các tính năng của Weather API
Dữ liệu Weather API bao gồm những thông tin sau:
Điều kiện thời tiết và biểu tượng: Nội dung mô tả và biểu tượng tương ứng cho biết điều kiện thời tiết hiện tại (ví dụ: "Nhiều mây" hoặc "Tuyết rơi rải rác").
Nhiệt độ: Nhiệt độ tối thiểu, tối đa và nhiệt độ cảm nhận ("cảm thấy như").
Lượng mưa: Tổng lượng mưa và loại mưa (tuyết, mưa, băng, mưa tuyết).
Gió: Nhiệt độ cảm nhận trung bình, hướng gió, tốc độ tối đa và gió giật.
Độ dày của băng: Độ dày của băng.
Độ ẩm: Điểm sương, chỉ số nóng bức, nhiệt độ bầu ướt và độ ẩm tương đối.
Chỉ số UV: Chỉ số tia cực tím (UV).
Xác suất có bão kèm theo sấm sét: Tỷ lệ phần trăm khả năng xảy ra bão kèm theo sấm sét.
Tầm nhìn: Khoảng cách mà một vật thể có thể nhìn thấy rõ ràng.
Áp suất không khí: Áp suất không khí trung bình ở mực nước biển.
Sự kiện về mặt trời và mặt trăng: Thời điểm bình minh, hoàng hôn, trăng mọc và trăng lặn.
Độ che phủ của mây: Tỷ lệ phần trăm bầu trời bị mây che phủ.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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)"]]