ภาพรวมของ Weather API
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Weather API ช่วยให้คุณขอข้อมูลสภาพอากาศแบบเรียลไทม์และเจาะจงเฉพาะพื้นที่สำหรับ
สถานที่ต่างๆ ทั่วโลกได้ ข้อมูลสภาพอากาศประกอบด้วยอุณหภูมิ
ปริมาณน้ำฝน ความชื้น และอื่นๆ
สำหรับสถานที่ที่ละติจูดและลองจิจูดที่กำหนด API จะมีปลายทาง
ที่ช่วยให้คุณค้นหาข้อมูลต่อไปนี้ได้
- สภาพอากาศปัจจุบัน: สภาพอากาศปัจจุบัน
- พยากรณ์รายชั่วโมง: สภาพที่คาดการณ์ไว้สูงสุด 240 ชั่วโมงสำหรับทุกองค์ประกอบ
- พยากรณ์อากาศรายวัน: สภาพอากาศที่พยากรณ์ไว้สูงสุด 10 วันสำหรับองค์ประกอบทั้งหมด
- ประวัติรายชั่วโมง: สภาพอากาศที่ผ่านมาที่แคชไว้ในช่วง 24 ชั่วโมงที่ผ่านมาสำหรับทุกองค์ประกอบ
ฟีเจอร์ของ Weather API
ข้อมูล Weather API ประกอบด้วยข้อมูลต่อไปนี้
- สภาพอากาศและไอคอน: คำอธิบายและไอคอนที่เกี่ยวข้อง
ซึ่งระบุสภาพอากาศปัจจุบัน (เช่น "มีเมฆมาก" หรือ
"หิมะตกเป็นหย่อมๆ")
- อุณหภูมิ: อุณหภูมิต่ำสุด สูงสุด และอุณหภูมิที่รู้สึก ("รู้สึกเหมือน")
- หยาดน้ำฟ้า: ปริมาณหยาดน้ำฟ้าทั้งหมดและประเภทหยาดน้ำฟ้า (หิมะ ฝน
น้ำแข็ง ผสม)
- ลม: อุณหภูมิที่รู้สึกจากลมโดยเฉลี่ย ทิศทางลม ความเร็วสูงสุด และลมกระโชก
- ความหนาของน้ำแข็ง: ความหนาของน้ำแข็ง
- ความชื้น: จุดน้ำค้าง ดัชนีความร้อน อุณหภูมิกระเปาะเปียก และความชื้นสัมพัทธ์
- ดัชนีรังสียูวี: ดัชนีรังสีอัลตราไวโอเลต (UV)
- ความน่าจะเป็นที่จะเกิดพายุฝนฟ้าคะนอง: โอกาสที่จะเกิดพายุฝนฟ้าคะนองเป็นเปอร์เซ็นต์
- ทัศนวิสัย: ระยะทางที่มองเห็นวัตถุได้อย่างชัดเจน
- ความกดอากาศ: ความกดอากาศที่ระดับน้ำทะเลโดยเฉลี่ย
- เหตุการณ์เกี่ยวกับดวงอาทิตย์และดวงจันทร์: เวลาดวงอาทิตย์ขึ้น ดวงอาทิตย์ตก ดวงจันทร์ขึ้น และดวงจันทร์ตก
- เมฆปกคลุม: เปอร์เซ็นต์ของท้องฟ้าที่ปกคลุมด้วยเมฆ
วิธีใช้ Weather API
ขั้นตอนถัดไป
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-29 UTC
[null,null,["อัปเดตล่าสุด 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)"]]