{"id":58107,"date":"2025-04-22T15:15:37","date_gmt":"2025-04-22T07:15:37","guid":{"rendered":"https:\/\/masterconcept.ai\/?p=58107"},"modified":"2025-04-23T12:16:12","modified_gmt":"2025-04-23T04:16:12","slug":"building-a-simple-weather-app-with-the-new-google-weather-api","status":"publish","type":"post","link":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528\u6700\u65b0 Google Weather API \u6253\u9020\u7c21\u6613\u7d1a\u5929\u6c23\u61c9\u7528\u7a0b\u5f0f"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5929\u6c23\u8cc7\u8a0a\u662f\u5f71\u97ff\u6211\u5011\u65e5\u5e38\u751f\u6d3b\u8207\u5546\u696d\u904b\u71df\u7684\u95dc\u9375\u56e0\u7d20\u3002\u7121\u8ad6\u662f\u898f\u5283\u901a\u52e4\u3001\u5b89\u6392\u6236\u5916\u6d3b\u52d5\uff0c\u6216\u662f\u9032\u884c\u7269\u6d41\u8abf\u5ea6\u3001\u98a8\u96aa\u8a55\u4f30\uff0c\u6e96\u78ba\u4e14\u5373\u6642\u7684\u5929\u6c23\u6578\u64da\u90fd\u626e\u6f14\u8457\u81f3\u95dc\u91cd\u8981\u7684\u89d2\u8272\u3002\u60a8\u662f\u5426\u601d\u8003\u904e\u5982\u4f55\u5c07\u5c08\u696d\u7d1a\u7684\u5929\u6c23\u8cc7\u8a0a\u6574\u5408\u5230\u60a8\u7684\u61c9\u7528\u7a0b\u5f0f\u3001\u7db2\u7ad9\u6216\u5546\u696d\u5206\u6790\u6d41\u7a0b\u4e2d\uff1f2025 Google Cloud Next \u6700\u65b0\u63a8\u51fa\u7684 <strong>Google Weather API<\/strong> \u6b63\u662f\u70ba\u6b64\u800c\u751f\uff0c\u5b83\u70ba\u958b\u767c\u8005\u548c\u4f01\u696d\u63d0\u4f9b\u4e86\u4e00\u500b\u5f37\u5927\u4e14\u6613\u65bc\u4f7f\u7528\u7684\u89e3\u6c7a\u65b9\u6848\u3002\u672c\u7bc7\u6587\u7ae0\u5c07\u6df1\u5165\u4ecb\u7d39\u6b64 API \u7684\u6838\u5fc3\u529f\u80fd\u3001\u904b\u4f5c\u539f\u7406\uff0c\u4e26\u900f\u904e\u5be6\u4f8b\uff08\u4ee5\u9999\u6e2f\u70ba\u4f8b\uff09\u5c55\u793a\u5982\u4f55\u5229\u7528\u5b83\u4f86\u5efa\u69cb\u4e00\u500b\u80fd\u986f\u793a\u5373\u6642\u5929\u6c23\u72c0\u6cc1\u8207\u672a\u4f86\u4e00\u9031\u9810\u5831\u7684\u61c9\u7528\u7a0b\u5f0f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"lazyload\" data-src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfd1q9Tx868rErZ5raRuyhNW1gP93Ojm62Biwk5elf72kqJRmCdKpSeaBhi4edaez7iQBxAFqMY0yyKY2pn5SdCBc4NdtzAj9IRHyxOpMRc-BAX-2gS8lNtJMLDrvszFN3S4qp0JA?key=BGjJ48QSKDqXQ8SaP1P4HTe_\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" alt=\"Afilab - weather API \u4f7f\u7528\u793a\u610f\u5716\"\/><noscript><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfd1q9Tx868rErZ5raRuyhNW1gP93Ojm62Biwk5elf72kqJRmCdKpSeaBhi4edaez7iQBxAFqMY0yyKY2pn5SdCBc4NdtzAj9IRHyxOpMRc-BAX-2gS8lNtJMLDrvszFN3S4qp0JA?key=BGjJ48QSKDqXQ8SaP1P4HTe_\" alt=\"Afilab - weather API \u4f7f\u7528\u793a\u610f\u5716\"><\/noscript><figcaption class=\"wp-element-caption\"><strong>Googel Weather API \u6253\u9020\u7c21\u6613\u5929\u6c23 App \u793a\u610f\u5716<br><\/strong>Source: \u601d\u60f3\u79d1\u6280<\/figcaption><\/figure>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4ec0\u9ebc\u662f Google Weather API\uff1f<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Google Weather API \u662f <a href=\"https:\/\/masterconcept.ai\/zh-hant\/partners\/google-cloud\/google-maps-platform\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Google Maps Platform<\/a> \u6700\u65b0\u767c\u5e03\u7684\u300c\u74b0\u5883\u8207\u5730\u7406\u7a7a\u9593\u5206\u6790\u5de5\u5177 ( geospatial analytics tools)\u300d\u7cfb\u5217\u4e2d\u7684\u6838\u5fc3\u529f\u80fd\u4e4b\u4e00\u3002\u8a72\u7cfb\u5217\u65e8\u5728\u900f\u904e\u63d0\u4f9b\u66f4\u7cbe\u78ba\u3001\u66f4\u6df1\u5165\u7684\u771f\u5be6\u4e16\u754c\u6d1e\u5bdf\uff0c\u652f\u63f4\u66f4\u667a\u6167\u7684\u5546\u696d\u6c7a\u7b56\u8207\u61c9\u7528\u958b\u767c\u3002\u6b64\u7cfb\u5217\u9664 Weather API \u5916\uff0c\u9084\u5305\u542b Places Insights API\uff08\u5730\u9ede\u5546\u696d\u6d1e\u5bdf\uff09\u3001Photorealistic 3D Tiles\uff08\u9ad8\u64ec\u771f 3D \u5730\u5716\u74e6\u7247\uff09\u4ee5\u53ca Air Quality API\uff08\u7a7a\u6c23\u54c1\u8cea\u6307\u6578\uff09\u7b49\u91cd\u8981\u5de5\u5177\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-background wp-block-paragraph\" style=\"background-color:#f6f6f6\">\ud83d\udcda \u5ef6\u4f38\u95b1\u8b80\uff1a<a href=\"https:\/\/masterconcept.ai\/zh-hant\/blog\/google-cloud-next-2025-in-depth-analysis-of-4-new-google-maps-platform-features-and-potential-industry-applications\/\" target=\"_blank\" rel=\"noopener\" title=\"Google Cloud Next 2025 \u91cd\u78c5\u767c\u8868\uff1aGoogle Maps Platform \u56db\u5927\u65b0\u529f\u80fd\u6df1\u5ea6\u89e3\u6790\u8207\u7522\u696d\u61c9\u7528\u524d\u77bb\">Google Cloud Next 2025 \u91cd\u78c5\u767c\u8868\uff1aGoogle Maps Platform \u56db\u5927\u65b0\u529f\u80fd\u6df1\u5ea6\u89e3\u6790\u8207\u7522\u696d\u61c9\u7528\u524d\u77bb<\/a><\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Weather API \u7684\u6838\u5fc3\u80fd\u529b\u5728\u65bc\uff0c\u8b93\u4f7f\u7528\u8005\u80fd\u5920\u64f7\u53d6\u5168\u7403\u4efb\u4f55\u6307\u5b9a\u5730\u9ede\u7684 <strong>\u5373\u6642<\/strong>\u3001<strong>\u8d85\u5728\u5730\u5316 (hyperlocal)<\/strong> \u7684\u7576\u524d\u5929\u6c23\u72c0\u6cc1\u8207\u9810\u6e2c\u6578\u64da\u3002\u6240\u8b02\u300c\u8d85\u5728\u5730\u5316\u300d\uff0c\u610f\u6307\u5176\u6578\u64da\u7cbe\u5ea6\u80fd\u9054\u5230\u975e\u5e38\u7cbe\u7d30\u7684\u5730\u7406\u7bc4\u570d\uff0c\u9060\u8d85\u50b3\u7d71\u57ce\u5e02\u7d1a\u5225\u7684\u9810\u5831\u3002API \u63d0\u4f9b\u6975\u70ba\u5168\u9762\u7684\u5929\u6c23\u53c3\u6578\uff0c\u5305\u62ec\u6eab\u5ea6\u3001\u964d\u6c34\u6a5f\u7387\u8207\u5f37\u5ea6\u3001\u98a8\u901f\u98a8\u5411\u3001\u7d2b\u5916\u7dda\u6307\u6578\u3001\u76f8\u5c0d\u6fd5\u5ea6\u3001\u6c23\u58d3\u7b49\u591a\u7dad\u5ea6\u8cc7\u8a0a\u3002\u9019\u4f7f\u5f97\u958b\u767c\u8005\u80fd\u8f15\u6613\u5730\u5c07 Weather API \u8207\u4ea4\u901a\u8def\u6cc1 (\u5982 Google Routes API)\u3001\u5730\u7406\u7a7a\u9593\u6578\u64da (\u5982 Google Geocoding API) \u6216\u5176\u4ed6\u74b0\u5883\u6578\u64da\u6e90\u7d50\u5408\uff0c\u5275\u5efa\u51fa\u5177\u5099\u9ad8\u5ea6\u300c\u5929\u6c23\u611f\u77e5\u300d\u80fd\u529b\u7684\u5275\u65b0\u61c9\u7528\u3002<\/p>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Google Weather API \u5982\u4f55\u904b\u4f5c\uff1f<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Google Weather API \u7684\u6578\u64da\u4f86\u81ea\u591a\u5143\u7684\u6c23\u8c61\u89c0\u6e2c\u4f86\u6e90\u3002\u5176\u7368\u7279\u4e4b\u8655\u5728\u65bc\uff0cGoogle \u904b\u7528\u4e86\u5176\u5c08\u6709\u7684 \u6574\u5408\u5f0f\u9810\u5831\u7cfb\u7d71 (Integrated Forecasting System, IFS) \u4f86\u8655\u7406\u8207\u5206\u6790\u9019\u4e9b\u539f\u59cb\u6578\u64da\u3002\u6b64\u7cfb\u7d71\u5de7\u5999\u5730\u878d\u5408\u4e86 \u4eba\u5de5\u667a\u6167 (AI) \u6a5f\u5668\u5b78\u7fd2\u6280\u8853\u8207\u7269\u7406\u5b78\u6280\u8853\uff0c\u80fd\u5920\u751f\u6210\u5168\u7403\u7bc4\u570d\u5167\u4efb\u610f\u5730\u9ede\u7684\u9ad8\u89e3\u6790\u5ea6\u5373\u6642\u5929\u6c23\u3001\u672a\u4f86\u9810\u5831\uff08\u5305\u542b\u77ed\u671f\u8207\u4e2d\u671f\uff09\u4ee5\u53ca\u6b77\u53f2\u5929\u6c23\u56de\u6eaf\u6578\u64da\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0cGoogle \u5df2\u5c07\u6b64\u5148\u9032\u7684\u5929\u6c23\u6a21\u578b\u61c9\u7528\u65bc\u5176\u641c\u5c0b\u5f15\u64ce\u7684\u5929\u6c23\u7d50\u679c\u5c55\u793a\u8d85\u904e\u4e00\u5e74\uff0c\u4e26\u7372\u5f97\u4e86\u5ee3\u6cdb\u9a57\u8b49\u3002\u800c Google Weather API \u7684\u767c\u5e03\uff0c\u5247\u662f Google \u9996\u6b21 \u5c07\u6b64\u5f37\u5927\u7684\u81ea\u7814\u5929\u6c23\u6a21\u578b\u80fd\u529b\uff0c\u4ee5 API \u7684\u5f62\u5f0f\u6b63\u5f0f\u958b\u653e\u7d66\u958b\u767c\u8005\u793e\u7fa4\u8207\u4f01\u696d\u7528\u6236\u4f7f\u7528\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64 API \u4e3b\u8981\u900f\u904e\u4ee5\u4e0b\u4e09\u500b\u6838\u5fc3\u7aef\u9ede (Endpoint) \u63d0\u4f9b\u670d\u52d9\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\/currentConditions<\/code>\uff1a\u63d0\u4f9b\u6307\u5b9a\u5730\u9ede<strong>\u7576\u4e0b<\/strong>\u7684\u8a73\u7d30\u5929\u6c23\u72c0\u6cc1\u3002<\/li>\n\n\n\n<li><code>\/forecast<\/code>\uff1a\u63d0\u4f9b\u672a\u4f86\u9577\u9054 <strong>10 \u5929<\/strong> \u7684<strong>\u6bcf\u65e5<\/strong>\u5929\u6c23\u9810\u5831\uff0c\u4ee5\u53ca\u7cbe\u7d30\u81f3<strong>\u6bcf\u5c0f\u6642<\/strong>\u7684\u5929\u6c23\u9810\u6e2c\u3002<\/li>\n\n\n\n<li><code>\/history<\/code>\uff1a\u63d0\u4f9b\u6307\u5b9a\u5730\u9ede\u904e\u53bb 24 \u5c0f\u6642\u5167\uff08\u5f9e\u8acb\u6c42\u6642\u9593\u9ede\u56de\u6eaf\uff09\u7684<strong>\u6bcf\u5c0f\u6642<\/strong>\u6b77\u53f2\u5929\u6c23\u6578\u64da\u3002<\/li>\n<\/ul>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u5be6\u52d9\u64cd\u4f5c (\u4e00)\uff1a\u53d6\u5f97\u300c\u5373\u6642\u5929\u6c23\u72c0\u6cc1\u300d(\/currentConditions)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u547c\u53eb <code>\/currentConditions<\/code> \u7aef\u9ede\u7684\u8acb\u6c42\u76f8\u7576\u76f4\u63a5\uff0c\u4e3b\u8981\u9700\u63d0\u4f9b\u76ee\u6a19\u5730\u9ede\u7684\u5730\u7406\u5ea7\u6a19\uff08\u7def\u5ea6\u8207\u7d93\u5ea6\uff09\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>GET https:\/\/weather.googleapis.com\/v1\/currentConditions:lookup?key={YOUR_API_KEY}&amp;location.latitude={LATITUDE}&amp;location.longitude={LONGITUDE}&amp;unitsSystem={UNITS}<\/code><\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>{YOUR_API_KEY}<\/code> (<strong>\u5fc5\u8981\u53c3\u6578<\/strong>): \u60a8\u5728 Google Cloud Platform \u4e0a\u8a2d\u5b9a\u4e26\u5df2\u6388\u6b0a\u4f7f\u7528 Weather API \u7684 API \u91d1\u9470\u3002\u9019\u662f\u9a57\u8b49\u60a8\u8acb\u6c42\u6b0a\u9650\u7684\u6191\u8b49\u3002<\/li>\n\n\n\n<li><code>{LATITUDE}<\/code> (<strong>\u5fc5\u8981\u53c3\u6578<\/strong>): \u67e5\u8a62\u5730\u9ede\u7684\u7def\u5ea6\u5ea7\u6a19 (\u4f8b\u5982\uff1a\u9999\u6e2f 22.302711)\u3002<\/li>\n\n\n\n<li><code>{LONGITUDE}<\/code> (<strong>\u5fc5\u8981\u53c3\u6578<\/strong>): \u67e5\u8a62\u5730\u9ede\u7684\u7d93\u5ea6\u5ea7\u6a19 (\u4f8b\u5982\uff1a\u9999\u6e2f 114.177216)\u3002<\/li>\n\n\n\n<li><code>{UNITS} <\/code>(\u975e\u5fc5\u8981\u53c3\u6578): \u6307\u5b9a\u56de\u50b3\u6578\u64da\u7684\u55ae\u4f4d\u7cfb\u7d71\u3002\u53ef\u9078 <code>METRIC<\/code> (\u516c\u5236\uff0c\u9810\u8a2d\u503c\uff0c\u5982\u651d\u6c0f\u6eab\u5ea6\u3001\u516c\u91cc\/\u5c0f\u6642\u98a8\u901f) \u6216 <code>IMPERIAL<\/code> (\u82f1\u5236\uff0c\u5982\u83ef\u6c0f\u6eab\u5ea6\u3001\u82f1\u91cc\/\u5c0f\u6642\u98a8\u901f)\u3002<\/li>\n<\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u88dc\u5145\u8aaa\u660e\uff1a<\/strong> API \u91d1\u9470\u7684\u53d6\u5f97\u6d41\u7a0b\u901a\u5e38\u6d89\u53ca\u5728 Google Cloud Console \u5efa\u7acb\u5c08\u6848\u3001\u555f\u7528 Google Maps Platform \u53ca Weather API \u670d\u52d9\uff0c\u4e26\u7522\u751f\u5c08\u7528\u7684 API \u91d1\u9470\u3002\u5efa\u8b70\u53c3\u8003\u5b98\u65b9\u6587\u4ef6\u4ee5\u7372\u53d6\u8a73\u7d30\u6b65\u9a5f\uff0c\u4e26\u59a5\u5584\u7ba1\u7406\u60a8\u7684\u91d1\u9470\u5b89\u5168\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u662f\u91dd\u5c0d\u9999\u6e2f (22.302711, 114.177216) \u67e5\u8a62 <code>\/currentConditions<\/code> \u7684\u90e8\u5206 JSON \u7bc4\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"currentTime\": \"2025-04-18T09:03:56.202537583Z\",\n    \"timeZone\": {\n        \"id\": \"Asia\/Hong_Kong\"\n    },\n    \"isDaytime\": true,\n    \"weatherCondition\": {\n        \"iconBaseUri\": \"https:\/\/maps.gstatic.com\/weather\/v1\/cloudy\",\n        \"description\": {\n            \"text\": \"Cloudy\", \/\/ \u5929\u6c23\u63cf\u8ff0\u6587\u5b57 &#91;cite: 16]\n            \"languageCode\": \"en\" &#91;cite: 16]\n        },\n        \"type\": \"CLOUDY\"\n    },\n    \"temperature\": { \/\/ \u6eab\u5ea6 &#91;cite: 16]\n        \"degrees\": 24.9,\n        \"unit\": \"CELSIUS\"\n    },\n    \"feelsLikeTemperature\": { \/\/ \u9ad4\u611f\u6eab\u5ea6 &#91;cite: 17]\n        \"degrees\": 27.6,\n        \"unit\": \"CELSIUS\"\n    },\n    \"dewPoint\": { \/\/ \u9732\u9ede &#91;cite: 17]\n        \"degrees\": 23.1,\n        \"unit\": \"CELSIUS\" &#91;cite: 17]\n    },\n    \"heatIndex\": { \/\/ \u9177\u71b1\u6307\u6578 &#91;cite: 17]\n        \"degrees\": 27.6,\n        \"unit\": \"CELSIUS\"\n    },\n    \"windChill\": { \/\/ \u98a8\u5bd2\u6307\u6578 &#91;cite: 17]\n        \"degrees\": 24.9,\n        \"unit\": \"CELSIUS\"\n    },\n    \"relativeHumidity\": 90, \/\/ \u76f8\u5c0d\u6fd5\u5ea6 &#91;cite: 18]\n    \"uvIndex\": 0, \/\/ \u7d2b\u5916\u7dda\u6307\u6578 &#91;cite: 18]\n    \"precipitation\": { \/\/ \u964d\u6c34 &#91;cite: 18]\n        \"probability\": {\n            \"percent\": 20,\n            \"type\": \"RAIN\" &#91;cite: 18]\n        },\n        \"snowQpf\": {\n            \"quantity\": 0,\n            \"unit\": \"MILLIMETERS\"\n        },\n        \"qpf\": {\n            \"quantity\": 0,\n            \"unit\": \"MILLIMETERS\" &#91;cite: 19]\n        }\n    },\n    \"thunderstormProbability\": 40, \/\/ \u96f7\u66b4\u6a5f\u7387 &#91;cite: 19]\n    \"airPressure\": { \/\/ \u6c23\u58d3 &#91;cite: 19]\n        \"meanSeaLevelMillibars\": 1007.72\n    },\n    \"wind\": { \/\/ \u98a8 &#91;cite: 19]\n        \"direction\": { \/\/ \u98a8\u5411 &#91;cite: 19]\n            \"degrees\": 180,\n            \"cardinal\": \"SOUTH\"\n        },\n        \"speed\": { \/\/ \u98a8\u901f &#91;cite: 20]\n            \"value\": 13,\n            \"unit\": \"KILOMETERS_PER_HOUR\" &#91;cite: 20]\n        },\n        \"gust\": { \/\/ \u9663\u98a8 &#91;cite: 20]\n            \"value\": 23,\n            \"unit\": \"KILOMETERS_PER_HOUR\"\n        }\n    },\n    \"visibility\": { \/\/ \u80fd\u898b\u5ea6 &#91;cite: 20]\n        \"distance\": 16,\n        \"unit\": \"KILOMETERS\"\n    },\n    \"cloudCover\": 95, \/\/ \u96f2\u91cf &#91;cite: 21]\n    \"currentConditionsHistory\": { \/\/ \u8fd1\u671f\u5929\u6c23\u6b77\u53f2 &#91;cite: 21]\n        \"temperatureChange\": {\n            \"degrees\": 0.7,\n            \"unit\": \"CELSIUS\"\n        },\n        \"maxTemperature\": { \/\/ \u6700\u9ad8\u6eab &#91;cite: 21]\n            \"degrees\": 25.5,\n            \"unit\": \"CELSIUS\"\n        },\n        \"minTemperature\": { \/\/ \u6700\u4f4e\u6eab &#91;cite: 22]\n            \"degrees\": 23.2,\n            \"unit\": \"CELSIUS\" &#91;cite: 22]\n        },\n        \"snowQpf\": {\n            \"quantity\": 0,\n            \"unit\": \"MILLIMETERS\"\n        },\n        \"qpf\": {\n            \"quantity\": 0.0356, &#91;cite: 23]\n            \"unit\": \"MILLIMETERS\" &#91;cite: 23]\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f9e\u97ff\u61c9\u4e2d\u53ef\u898b\uff0cAPI \u63d0\u4f9b\u7684\u6578\u64da\u6975\u70ba\u8a73\u76e1\uff0c\u9664\u4e86\u57fa\u790e\u7684\u6eab\u5ea6 (<code>temperature<\/code>)\u3001\u5929\u6c23\u63cf\u8ff0 (<code>description.text<\/code>) \u548c\u5716\u793a\u9023\u7d50\uff0c\u9084\u5305\u62ec\u9ad4\u611f\u6eab\u5ea6 (<code>feelsLikeTemperature<\/code>)\u3001\u964d\u6c34\u6a5f\u7387\u8207\u9810\u4f30\u91cf (<code>precipitation<\/code>)\u3001\u98a8\u901f\u98a8\u5411 (<code>wind<\/code>)\u3001\u76f8\u5c0d\u6fd5\u5ea6 (<code>relativeHumidity<\/code>) \u7b49\u591a\u9805\u5c08\u696d\u6c23\u8c61\u53c3\u6578\u3002<br><\/p>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Forecast (\u5929\u6c23\u9810\u5831) \u7aef\u9ede<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8207 Current Conditions \u7aef\u9ede\u985e\u4f3c\uff0cForecast \u7aef\u9ede\u4e5f\u53ea\u9700\u8981\u60a8\u60f3\u67e5\u8a62\u5929\u6c23\u6578\u64da\u5730\u9ede\u7684\u5730\u7406\u5ea7\u6a19 \u3002&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>GET https:\/\/weather.googleapis.com\/v1\/forecast\/days:lookup?key=YOUR_API_KEY&amp;location.latitude=LATITUDE&amp;location.longitude=LONGITUDE&nbsp;<\/code>&nbsp;<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>YOUR_API_KEY<\/code> (<strong>\u5fc5\u8981<\/strong>): \u60a8\u5df2\u555f\u7528 Weather API \u7684 Google Maps API \u91d1\u9470 \u3002&nbsp;&nbsp;<\/li>\n\n\n\n<li><code>LATITUDE <\/code>(<strong>\u5fc5\u8981<\/strong>): \u60a8\u67e5\u8a62\u5730\u9ede\u7684\u7def\u5ea6\uff0c\u4f8b\u5982\u9999\u6e2f\u70ba 22.302711 \u3002&nbsp;&nbsp;<\/li>\n\n\n\n<li><code>LONGITUDE<\/code> (<strong>\u5fc5\u8981<\/strong>): \u60a8\u67e5\u8a62\u5730\u9ede\u7684\u7d93\u5ea6\uff0c\u4f8b\u5982\u9999\u6e2f\u70ba 114.177216 \u3002&nbsp;&nbsp;<\/li>\n<\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u9810\u8a2d\u60c5\u6cc1\u4e0b\uff0c<code>forecast\/days<\/code> \u7aef\u9ede\u6703\u56de\u50b3\u5f9e\u7576\u524d\u5c0f\u6642\u8d77\u7b97\u7684 10 \u5929\u6578\u64da \u3002\u60a8\u53ef\u4ee5\u900f\u904e\u5728\u8acb\u6c42\u4e2d\u52a0\u5165 <code>days<\/code> \u53c3\u6578\u4f86\u6307\u5b9a\u7279\u5b9a\u5929\u6578\u7684\u9810\u5831\uff0c\u4f8b\u5982\uff1a<code>https:\/\/weather.googleapis.com\/v1\/forecast\/days:lookup?key={YOUR_API_KEY}&amp;location.latitude=22.302711&amp;location.longitude=114.177216&amp;days=2<\/code> \u6703\u56de\u50b3\u9999\u6e2f\u672a\u4f86\u5169\u5929\u7684\u5929\u6c23\u9810\u5831 \u3002&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u662f\u8acb\u6c42\u9999\u6e2f <strong>\u672a\u4f86\u5169\u5929\u6bcf\u65e5\u9810\u5831<\/strong> (<code>\/forecast\/days \u52a0\u4e0a &amp;days=2<\/code>) \u7684\u90e8\u5206 JSON \u7bc4\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"forecastDays\": &#91; \/\/ \u9810\u5831\u5929\u6578\u9663\u5217 &#91;cite: 31, 85]\n        { \/\/ \u7b2c\u4e00\u5929\u9810\u5831\n            \"interval\": { \/\/ \u6642\u9593\u5340\u9593 &#91;cite: 31]\n                \"startTime\": \"2025-04-17T23:00:00Z\",\n                \"endTime\": \"2025-04-18T23:00:00Z\"\n            },\n            \"displayDate\": { \/\/ \u986f\u793a\u65e5\u671f &#91;cite: 32]\n                \"year\": 2025, &#91;cite: 32]\n                \"month\": 4,\n                \"day\": 18\n            },\n            \"daytimeForecast\": { \/\/ \u767d\u5929\u9810\u5831 &#91;cite: 32, 85]\n                \"interval\": {\n                    \"startTime\": \"2025-04-17T23:00:00Z\",\n                    \"endTime\": \"2025-04-18T11:00:00Z\" &#91;cite: 33]\n                },\n                \"weatherCondition\": { \/\/ \u5929\u6c23\u72c0\u6cc1 &#91;cite: 33]\n                    \"iconBaseUri\": \"https:\/\/maps.gstatic.com\/weather\/v1\/drizzle\",\n                    \"description\": {\n                        \"text\": \"Light rain\", \/\/ \u63cf\u8ff0\u6587\u5b57\uff1a\u5c0f\u96e8 &#91;cite: 34]\n                        \"languageCode\": \"en\"\n                    },\n                    \"type\": \"LIGHT_RAIN\" &#91;cite: 35]\n                },\n                \"relativeHumidity\": 90, \/\/ \u76f8\u5c0d\u6fd5\u5ea6 &#91;cite: 35]\n                \"uvIndex\": 4, \/\/ \u7d2b\u5916\u7dda\u6307\u6578 &#91;cite: 35]\n                \"precipitation\": { \/\/ \u964d\u6c34 &#91;cite: 35, 85]\n                    \"probability\": {\n                        \"percent\": 20, &#91;cite: 36]\n                        \"type\": \"RAIN\"\n                    },\n                    \"snowQpf\": {\n                        \"quantity\": 0,\n                        \"unit\": \"MILLIMETERS\" &#91;cite: 37]\n                    },\n                    \"qpf\": {\n                        \"quantity\": 0.0356,\n                        \"unit\": \"MILLIMETERS\" &#91;cite: 38]\n                    }\n                },\n                \"thunderstormProbability\": 40, \/\/ \u96f7\u66b4\u6a5f\u7387 &#91;cite: 38]\n                \"wind\": { \/\/ \u98a8 &#91;cite: 38, 85]\n                    \"direction\": { \/\/ \u98a8\u5411 &#91;cite: 39]\n                        \"degrees\": 165,\n                        \"cardinal\": \"SOUTH_SOUTHEAST\"\n                    },\n                    \"speed\": { \/\/ \u98a8\u901f &#91;cite: 40]\n                        \"value\": 14,\n                        \"unit\": \"KILOMETERS_PER_HOUR\"\n                    },\n                    \"gust\": { \/\/ \u9663\u98a8 &#91;cite: 41]\n                        \"value\": 24,\n                        \"unit\": \"KILOMETERS_PER_HOUR\"\n                    }\n                },\n                \"cloudCover\": 100, \/\/ \u96f2\u91cf &#91;cite: 41]\n                \"iceThickness\": { \/\/ \u7d50\u51b0\u539a\u5ea6 &#91;cite: 42]\n                    \"thickness\": 0,\n                    \"unit\": \"MILLIMETERS\"\n                }\n            },\n            \"nighttimeForecast\": { \/\/ \u591c\u9593\u9810\u5831 &#91;cite: 42, 85]\n                \"interval\": { &#91;cite: 43]\n                    \"startTime\": \"2025-04-18T11:00:00Z\",\n                    \"endTime\": \"2025-04-18T23:00:00Z\"\n                },\n                \"weatherCondition\": {\n                    \"iconBaseUri\": \"https:\/\/maps.gstatic.com\/weather\/v1\/drizzle\",\n                    \"description\": { &#91;cite: 44]\n                        \"text\": \"Light rain\",\n                        \"languageCode\": \"en\"\n                    },\n                    \"type\": \"LIGHT_RAIN\" &#91;cite: 45]\n                },\n                \"relativeHumidity\": 93, &#91;cite: 45]\n                \"uvIndex\": 0, &#91;cite: 45]\n                \"precipitation\": {\n                    \"probability\": {\n                        \"percent\": 20, &#91;cite: 46]\n                        \"type\": \"RAIN\"\n                    },\n                    \"snowQpf\": {\n                        \"quantity\": 0, &#91;cite: 47]\n                        \"unit\": \"MILLIMETERS\"\n                    },\n                    \"qpf\": {\n                        \"quantity\": 0, &#91;cite: 48]\n                        \"unit\": \"MILLIMETERS\"\n                    }\n                },\n                \"thunderstormProbability\": 40, &#91;cite: 48]\n                \"wind\": { &#91;cite: 49]\n                    \"direction\": {\n                        \"degrees\": 175,\n                        \"cardinal\": \"SOUTH\"\n                    },\n                    \"speed\": { &#91;cite: 50]\n                        \"value\": 13,\n                        \"unit\": \"KILOMETERS_PER_HOUR\"\n                    },\n                    \"gust\": { &#91;cite: 51]\n                        \"value\": 23,\n                        \"unit\": \"KILOMETERS_PER_HOUR\"\n                    }\n                },\n                \"cloudCover\": 100, &#91;cite: 52]\n                \"iceThickness\": {\n                    \"thickness\": 0,\n                    \"unit\": \"MILLIMETERS\"\n                }\n            },\n            \"maxTemperature\": { \/\/ \u6700\u9ad8\u6eab &#91;cite: 53]\n                \"degrees\": 25.8,\n                \"unit\": \"CELSIUS\"\n            },\n            \"minTemperature\": { \/\/ \u6700\u4f4e\u6eab &#91;cite: 53]\n                \"degrees\": 23.6,\n                \"unit\": \"CELSIUS\" &#91;cite: 54]\n            },\n            \"feelsLikeMaxTemperature\": { \/\/ \u6700\u9ad8\u9ad4\u611f\u6eab\u5ea6 &#91;cite: 54]\n                \"degrees\": 28.9,\n                \"unit\": \"CELSIUS\"\n            },\n            \"feelsLikeMinTemperature\": { \/\/ \u6700\u4f4e\u9ad4\u611f\u6eab\u5ea6 &#91;cite: 54]\n                \"degrees\": 25.9,\n                \"unit\": \"CELSIUS\" &#91;cite: 55]\n            },\n            \"sunEvents\": { \/\/ \u65e5\u51fa\u65e5\u843d\u6642\u9593 &#91;cite: 55]\n                \"sunriseTime\": \"2025-04-17T22:01:02.724182325Z\",\n                \"sunsetTime\": \"2025-04-18T10:44:33.202524577Z\"\n            },\n            \"moonEvents\": { \/\/ \u6708\u76f8\u3001\u6708\u51fa\u6708\u843d\u6642\u9593 &#91;cite: 56]\n                \"moonPhase\": \"WANING_GIBBOUS\",\n                \"moonriseTimes\": &#91;\n                    \"2025-04-18T15:30:01.703719186Z\"\n                ],\n                \"moonsetTimes\": &#91;\n                    \"2025-04-18T01:16:17.718137080Z\" &#91;cite: 57]\n                ]\n            },\n            \"maxHeatIndex\": { \/\/ \u6700\u9ad8\u9177\u71b1\u6307\u6578 &#91;cite: 57]\n                \"degrees\": 28.9,\n                \"unit\": \"CELSIUS\"\n            }\n        },\n        { \/\/ \u7b2c\u4e8c\u5929\u9810\u5831 &#91;cite: 58]\n           \/\/ ... (\u7b2c\u4e8c\u5929\u9810\u5831\u6578\u64da\uff0c\u7d50\u69cb\u985e\u4f3c\u7b2c\u4e00\u5929)\n        }\n    ],\n    \"timeZone\": { \/\/ \u6642\u5340 &#91;cite: 84]\n        \"id\": \"Asia\/Hong_Kong\"\n    }\n}\n\n<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u97ff\u61c9\u4e2d\uff0c\u60a8\u53ef\u4ee5\u5728 <code>forecastDays<\/code> \u9663\u5217\u7684\u6bcf\u500b\u689d\u76ee\u4e2d\uff0c\u627e\u5230\u6bcf\u65e5\uff08\u5305\u542b <code>daytimeForecast<\/code> \u767d\u5929\u9810\u5831\u548c <code>nighttimeForecast<\/code> \u591c\u9593\u9810\u5831\uff09\u7684 <code>temperature<\/code> (\u6eab\u5ea6)\u3001<code>description.text<\/code> (\u63cf\u8ff0\u6587\u5b57) \u548c\u5c0d\u61c9\u7684\u5929\u6c23\u5716\u793a\uff0c\u4ee5\u53ca\u5176\u4ed6\u6709\u7528\u7684\u8cc7\u8a0a\uff0c\u5982 <code>feelsLikeTemperature<\/code> (\u9ad4\u611f\u6eab\u5ea6)\u3001<code>precipitation<\/code> (\u964d\u6c34)\u3001<code>wind.direction<\/code> (\u98a8\u5411) \u548c <code>humidity<\/code> (\u6fd5\u5ea6) \u3002&nbsp;&nbsp;<\/p>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u65e5\u66c6\u5c0f\u5de5\u5177 (Calendar Widget)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u65e6\u60a8\u5f9e Google Weather API \u7372\u5f97\u97ff\u61c9\uff0c\u5c31\u53ef\u4ee5\u900f\u904e\u57fa\u672c\u7684 HTML \u548c Javascript\uff0c\u6839\u64da\u9700\u8981\u683c\u5f0f\u5316 <code>forecastDays<\/code> \u9663\u5217\uff0c\u8f15\u9b06\u88fd\u4f5c\u4e00\u500b\u65e5\u66c6\u5929\u6c23\u5c0f\u5de5\u5177 \u3002&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(\u4ee5\u4e0b\u70ba Javascript \u7a0b\u5f0f\u78bc\u7bc4\u4f8b\uff0c\u7528\u4ee5\u66f4\u65b0\u9810\u5831\u986f\u793a)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function updateForecast(forecastDays) {\n  const container = document.getElementById(\"forecast-container\"); \/\/ \u53d6\u5f97\u5bb9\u5668\u5143\u7d20 &#91;cite: 86]\n  const template = document.getElementById(\"forecast-card-template\"); \/\/ \u53d6\u5f97\u6a21\u677f\u5143\u7d20 &#91;cite: 87]\n\n  \/\/ \u5132\u5b58\u6a21\u677f\u5167\u5bb9 &#91;cite: 87]\n  const templateContent = template.content.cloneNode(true);\n  \/\/ \u6e05\u9664\u73fe\u6709\u7684\u9810\u5831\u5361\u7247 &#91;cite: 88]\n  container.innerHTML = \"\";\n  forecastDays.forEach((day) =&gt; { \/\/ \u904d\u6b77\u6bcf\u4e00\u5929\u7684\u9810\u5831 &#91;cite: 88]\n    const date = new Date(day.interval.startTime); \/\/ \u53d6\u5f97\u65e5\u671f\u7269\u4ef6 &#91;cite: 88]\n    \/\/ \u683c\u5f0f\u5316\u661f\u671f\u5e7e &#91;cite: 88]\n    const dayOfWeek = new Intl.DateTimeFormat(\"en-US\", {\n      weekday: \"short\",\n    }).format(date);\n    \/\/ \u683c\u5f0f\u5316\u6708\u65e5 &#91;cite: 88]\n    const monthDay = new Intl.DateTimeFormat(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n    }).format(date);\n\n    \/\/ \u8907\u88fd\u6a21\u677f &#91;cite: 88]\n    const card = templateContent.cloneNode(true);\n\n    \/\/ \u66f4\u65b0\u65e5\u671f\u5167\u5bb9 &#91;cite: 89]\n    card.querySelector(\".forecast-date\").textContent = `${dayOfWeek}, ${monthDay}`; &#91;cite: 89]\n\n    \/\/ \u767d\u5929\u9810\u5831 &#91;cite: 89]\n    const dayTemp = card.querySelector(\".day-temp\");\n    dayTemp.textContent = `${Math.round(day.maxTemperature.degrees)}\u00b0`; \/\/ \u8a2d\u5b9a\u6700\u9ad8\u6eab &#91;cite: 89]\n\n    const dayIcon = card.querySelector(\".day-temp .weather-icon\"); \/\/ \u53d6\u5f97\u767d\u5929\u5716\u793a\u5143\u7d20 &#91;cite: 89]\n    if (!dayIcon) { \/\/ \u5982\u679c\u6c92\u6709\u5716\u793a\u5143\u7d20\uff0c\u5247\u5275\u5efa\u4e00\u500b &#91;cite: 89]\n      const icon = document.createElement(\"img\");\n      icon.className = \"weather-icon\";\n      icon.src = `${day.daytimeForecast.weatherCondition.iconBaseUri}.png`; \/\/ \u8a2d\u5b9a\u5716\u793a\u4f86\u6e90 &#91;cite: 89]\n      icon.alt = day.daytimeForecast.weatherCondition.description.text; \/\/ \u8a2d\u5b9a\u66ff\u4ee3\u6587\u5b57 &#91;cite: 89]\n      dayTemp.appendChild(icon); \/\/ \u52a0\u5165\u5716\u793a &#91;cite: 89]\n    } else { \/\/ \u5982\u679c\u5df2\u6709\u5716\u793a\u5143\u7d20\uff0c\u5247\u66f4\u65b0\u5b83 &#91;cite: 90]\n      dayIcon.src = `${day.daytimeForecast.weatherCondition.iconBaseUri}.png`; &#91;cite: 90]\n      dayIcon.alt = day.daytimeForecast.weatherCondition.description.text; &#91;cite: 90]\n    }\n\n    \/\/ \u8a2d\u5b9a\u767d\u5929\u63cf\u8ff0 &#91;cite: 91]\n    card.querySelector(\".day-description\").textContent = day.daytimeForecast.weatherCondition.description.text;\n\n    \/\/ \u591c\u9593\u9810\u5831 &#91;cite: 92]\n    const nightTemp = card.querySelector(\".night-temp\");\n    nightTemp.textContent = `${Math.round(day.minTemperature.degrees)}\u00b0`; \/\/ \u8a2d\u5b9a\u6700\u4f4e\u6eab &#91;cite: 92]\n\n    const nightIcon = card.querySelector(\".night-temp .weather-icon\"); \/\/ \u53d6\u5f97\u591c\u9593\u5716\u793a\u5143\u7d20 &#91;cite: 92]\n    if (!nightIcon) { \/\/ \u5982\u679c\u6c92\u6709\u5716\u793a\u5143\u7d20\uff0c\u5247\u5275\u5efa\u4e00\u500b &#91;cite: 93]\n      const icon = document.createElement(\"img\");\n      icon.className = \"weather-icon\";\n      icon.src = `${day.nighttimeForecast.weatherCondition.iconBaseUri}.png`; \/\/ \u8a2d\u5b9a\u5716\u793a\u4f86\u6e90 &#91;cite: 93]\n      icon.alt = day.nighttimeForecast.weatherCondition.description.text; \/\/ \u8a2d\u5b9a\u66ff\u4ee3\u6587\u5b57 &#91;cite: 94]\n      nightTemp.appendChild(icon); \/\/ \u52a0\u5165\u5716\u793a &#91;cite: 94]\n    } else { \/\/ \u5982\u679c\u5df2\u6709\u5716\u793a\u5143\u7d20\uff0c\u5247\u66f4\u65b0\u5b83 &#91;cite: 94]\n      nightIcon.src = `${day.nighttimeForecast.weatherCondition.iconBaseUri}.png`; &#91;cite: 94]\n      nightIcon.alt = day.nighttimeForecast.weatherCondition.description.text; &#91;cite: 95]\n    }\n\n    \/\/ \u8a2d\u5b9a\u591c\u9593\u63cf\u8ff0 &#91;cite: 95]\n    card.querySelector(\".night-description\").textContent = day.nighttimeForecast.weatherCondition.description.text;\n\n    \/\/ \u5c07\u5b8c\u6210\u7684\u5361\u7247\u52a0\u5165\u5bb9\u5668 &#91;cite: 95]\n    container.appendChild(card);\n  });\n}\n<\/code><\/pre>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Google Weather API \u7684\u8cbb\u7528\u5982\u4f55\uff1f<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u622a\u81f3\u672c\u6587\u767c\u5e03\u6642 (2025 \u5e74 4 \u6708)\uff0cGoogle Weather API \u4ecd\u8655\u65bc\u516c\u958b\u9810\u89bd (Public Preview) \u968e\u6bb5\uff0c\u5728\u6b64\u968e\u6bb5\u7121\u9700\u4ed8\u8cbb\u5373\u53ef\u4f7f\u7528\u3002\u9019\u70ba\u958b\u767c\u8005\u63d0\u4f9b\u4e86\u4e00\u500b\u7d55\u4f73\u7684\u8a55\u4f30\u8207\u6574\u5408\u6a5f\u6703\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u95dc\u65bc\u6b63\u5f0f\u767c\u5e03 (General Availability, GA) \u5f8c\u7684\u5b9a\u50f9\u7b56\u7565\uff0c\u5efa\u8b70\u5bc6\u5207\u95dc\u6ce8 Google Maps Platform \u7684\u5b98\u65b9\u516c\u544a \u3002\u5982\u60f3\u4e86\u89e3\u66f4\u591a\u525b\u7063\u8cc7\u8a0a\uff0c\u6b61\u8fce\u627e\u6211\u5011\u5c08\u696d\u7684 <a href=\"https:\/\/masterconcept.ai\/zh-hant\/solutions\/get\/\" target=\"_blank\" rel=\"noopener\" title=\"\">GIS \u5718\u968a\u8aee\u8a62<\/a>\u3002&nbsp;&nbsp;<\/p>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u7d50<\/strong>\u8a9e<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Google Weather API \u4f5c\u70ba Google Maps Platform \u74b0\u5883\u8207\u5730\u7406\u7a7a\u9593\u5206\u6790\u5de5\u5177\u7cfb\u5217\u7684\u91cd\u8981\u4e00\u74b0\uff0c\u70ba\u958b\u767c\u8005\u548c\u4f01\u696d\u63d0\u4f9b\u4e86\u4e00\u7a2e\u7372\u53d6\u9ad8\u8cea\u91cf\u3001\u9ad8\u7cbe\u5ea6\u5168\u7403\u5929\u6c23\u6578\u64da\u7684\u5f37\u5927\u9014\u5f91\u3002\u5176\u6613\u7528\u6027\u3001\u6578\u64da\u7684\u5168\u9762\u6027\u4ee5\u53ca\u8207 Google \u751f\u614b\u7cfb\u7d71 (\u5982 Places API\u3001Routes API) \u7684\u7121\u7e2b\u6574\u5408\u80fd\u529b\uff0c\u4f7f\u5176\u6210\u70ba\u958b\u767c\u5929\u6c23\u76f8\u95dc\u61c9\u7528\u7684\u7406\u60f3\u9078\u64c7\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7121\u8ad6\u662f\u9700\u8981\u5373\u6642\u5929\u6c23\u72c0\u6cc1\u3001\u77ed\u671f\u6bcf\u5c0f\u6642\u9810\u5831\uff0c\u9084\u662f\u9577\u9054\u5341\u5929\u7684\u6bcf\u65e5\u8da8\u52e2\uff0cWeather API \u90fd\u80fd\u63d0\u4f9b\u53ef\u9760\u7684\u6578\u64da\u652f\u6301\u3002\u5176\u5728\u7269\u6d41\u3001\u96f6\u552e\u3001\u80fd\u6e90\u3001\u8fb2\u696d\u3001\u4fdd\u96aa\u7b49\u591a\u500b\u884c\u696d\u7684\u61c9\u7528\u6f5b\u529b\u5de8\u5927\uff0c\u6709\u671b\u9a45\u52d5\u65b0\u4e00\u8f2a\u7684\u6578\u64da\u9a45\u52d5\u5275\u65b0\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u5011\u9f13\u52f5\u60a8\u6df1\u5165\u63a2\u7d22 Google Weather API \u7684\u529f\u80fd\u8207\u6f5b\u529b\u3002\u82e5\u60a8\u5728\u8a55\u4f30\u6216\u4f7f\u7528\u904e\u7a0b\u4e2d\u9047\u5230\u4efb\u4f55\u6280\u8853\u554f\u984c\uff0c\u6216\u5e0c\u671b\u4e86\u89e3\u5982\u4f55\u5c07 Google Maps Platform \u7684\u5730\u7406\u7a7a\u9593\u89e3\u6c7a\u65b9\u6848\u61c9\u7528\u65bc\u60a8\u7684\u5177\u9ad4\u696d\u52d9\u5834\u666f\uff0c\u6b61\u8fce\u96a8\u6642\u8207\u6211\u5011\u7684\u5c08\u696d\u6280\u8853\u9867\u554f\u5718\u968a\u806f\u7e6b\uff01<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/share.hsforms.com\/22KAScCmuRUiZegi1WhkYJw2231b \" target=\"_blank\" rel=\" noreferrer noopener\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"256\" data-src=\"https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/TC-Mobility-CTA-contact-us\uff08GIS\uff09-1024x256.png\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" alt=\"\" class=\"wp-image-58120 lazyload\"\/><noscript><img decoding=\"async\" width=\"1024\" height=\"256\" src=\"https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/TC-Mobility-CTA-contact-us\uff08GIS\uff09-1024x256.png\" alt=\"\" class=\"wp-image-58120\" srcset=\"https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/TC-Mobility-CTA-contact-us\uff08GIS\uff09-1024x256.png 1024w, https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/TC-Mobility-CTA-contact-us\uff08GIS\uff09-300x75.png 300w, https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/TC-Mobility-CTA-contact-us\uff08GIS\uff09-768x192.png 768w, https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/TC-Mobility-CTA-contact-us\uff08GIS\uff09-1536x384.png 1536w, https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/TC-Mobility-CTA-contact-us\uff08GIS\uff09-2048x512.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/noscript><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u5929\u6c23\u8cc7\u8a0a\u662f\u5f71\u97ff\u6211\u5011\u65e5\u5e38\u751f\u6d3b\u8207\u5546\u696d\u904b\u71df\u7684\u95dc\u9375\u56e0\u7d20\u3002\u7121\u8ad6\u662f\u898f\u5283\u901a\u52e4\u3001\u5b89\u6392\u6236\u5916\u6d3b\u52d5\uff0c\u6216\u662f\u9032\u884c\u7269\u6d41\u8abf\u5ea6\u3001\u98a8\u96aa\u8a55\u4f30\uff0c\u6e96\u78ba [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":58108,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[109],"tags":[559,929,363],"region":[],"class_list":["post-58107","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-google-maps-platform-zh-hant","tag-geospatial-gis","tag-363"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u91cb\u653e Google Weather API \u6f5b\u529b\uff01\u6574\u5408 AI \u9a45\u52d5\u7684\u8d85\u5728\u5730\u5316\u5373\u6642\u5929\u6c23\u3001\u6bcf\u5c0f\u6642\/\u6bcf\u65e5\u9810\u5831\u53ca\u6b77\u53f2\u6578\u64da\uff0c\u70ba\u60a8\u7684\u61c9\u7528\u7a0b\u5f0f\u589e\u6dfb\u5c08\u696d\u6c23\u8c61\u6d1e\u5bdf\u529b\u3002\u5e6b\u52a9\u4f01\u696d\u958b\u767c\u5718\u968a\u904b\u7528\u6b64\u5f37\u5927\u5730\u7406\u7a7a\u9593\u5de5\u5177\u512a\u5316\u6c7a\u7b56\u3001\u63d0\u5347\u4f7f\u7528\u8005\u9ad4\u9a57\u3002\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Julia Wu\"\/>\n\t<meta name=\"keywords\" content=\"google maps platform,\u5730\u7406\u8cc7\u8a0a,\u5730\u7406\u8cc7\u8a0a\u7cfb\u7d71,\u7db2\u8a8c\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"zh_TW\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Master Concept\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\u5982\u4f55\u4f7f\u7528\u6700\u65b0 Google Weather API \u6253\u9020\u7c21\u6613\u7d1a\u5929\u6c23\u61c9\u7528\u7a0b\u5f0f | \u601d\u60f3\u79d1\u6280 Master Concept\" \/>\n\t\t<meta property=\"og:description\" content=\"\u91cb\u653e Google Weather API \u6f5b\u529b\uff01\u6574\u5408 AI \u9a45\u52d5\u7684\u8d85\u5728\u5730\u5316\u5373\u6642\u5929\u6c23\u3001\u6bcf\u5c0f\u6642\/\u6bcf\u65e5\u9810\u5831\u53ca\u6b77\u53f2\u6578\u64da\uff0c\u70ba\u60a8\u7684\u61c9\u7528\u7a0b\u5f0f\u589e\u6dfb\u5c08\u696d\u6c23\u8c61\u6d1e\u5bdf\u529b\u3002\u5e6b\u52a9\u4f01\u696d\u958b\u767c\u5718\u968a\u904b\u7528\u6b64\u5f37\u5927\u5730\u7406\u7a7a\u9593\u5de5\u5177\u512a\u5316\u6c7a\u7b56\u3001\u63d0\u5347\u4f7f\u7528\u8005\u9ad4\u9a57\u3002\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/Weather-API.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/Weather-API.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1440\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-04-22T07:15:37+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-04-23T04:16:12+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Hkmci\/\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"\u5982\u4f55\u4f7f\u7528\u6700\u65b0 Google Weather API \u6253\u9020\u7c21\u6613\u7d1a\u5929\u6c23\u61c9\u7528\u7a0b\u5f0f | \u601d\u60f3\u79d1\u6280 Master Concept\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u91cb\u653e Google Weather API \u6f5b\u529b\uff01\u6574\u5408 AI \u9a45\u52d5\u7684\u8d85\u5728\u5730\u5316\u5373\u6642\u5929\u6c23\u3001\u6bcf\u5c0f\u6642\/\u6bcf\u65e5\u9810\u5831\u53ca\u6b77\u53f2\u6578\u64da\uff0c\u70ba\u60a8\u7684\u61c9\u7528\u7a0b\u5f0f\u589e\u6dfb\u5c08\u696d\u6c23\u8c61\u6d1e\u5bdf\u529b\u3002\u5e6b\u52a9\u4f01\u696d\u958b\u767c\u5718\u968a\u904b\u7528\u6b64\u5f37\u5927\u5730\u7406\u7a7a\u9593\u5de5\u5177\u512a\u5316\u6c7a\u7b56\u3001\u63d0\u5347\u4f7f\u7528\u8005\u9ad4\u9a57\u3002\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/Weather-API.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/blog\\\/building-a-simple-weather-app-with-the-new-google-weather-api\\\/#article\",\"name\":\"\\u5982\\u4f55\\u4f7f\\u7528\\u6700\\u65b0 Google Weather API \\u6253\\u9020\\u7c21\\u6613\\u7d1a\\u5929\\u6c23\\u61c9\\u7528\\u7a0b\\u5f0f | \\u601d\\u60f3\\u79d1\\u6280 Master Concept\",\"headline\":\"\\u5982\\u4f55\\u4f7f\\u7528\\u6700\\u65b0 Google Weather API \\u6253\\u9020\\u7c21\\u6613\\u7d1a\\u5929\\u6c23\\u61c9\\u7528\\u7a0b\\u5f0f\",\"author\":{\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/author\\\/julia\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/masterconcept.ai\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/Weather-API.png\",\"width\":2560,\"height\":1440,\"caption\":\"Google Weather API\"},\"datePublished\":\"2025-04-22T15:15:37+08:00\",\"dateModified\":\"2025-04-23T12:16:12+08:00\",\"inLanguage\":\"zh-TW\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/blog\\\/building-a-simple-weather-app-with-the-new-google-weather-api\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/blog\\\/building-a-simple-weather-app-with-the-new-google-weather-api\\\/#webpage\"},\"articleSection\":\"\\u7db2\\u8a8c, Google Maps Platform, \\u5730\\u7406\\u8cc7\\u8a0a, \\u5730\\u7406\\u8cc7\\u8a0a\\u7cfb\\u7d71, \\u53ef\\u9078\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/blog\\\/building-a-simple-weather-app-with-the-new-google-weather-api\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/\\u5206\\u985e\\\/blog\\\/#listItem\",\"name\":\"\\u7db2\\u8a8c\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/\\u5206\\u985e\\\/blog\\\/#listItem\",\"position\":2,\"name\":\"\\u7db2\\u8a8c\",\"item\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/\\u5206\\u985e\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/blog\\\/building-a-simple-weather-app-with-the-new-google-weather-api\\\/#listItem\",\"name\":\"\\u5982\\u4f55\\u4f7f\\u7528\\u6700\\u65b0 Google Weather API \\u6253\\u9020\\u7c21\\u6613\\u7d1a\\u5929\\u6c23\\u61c9\\u7528\\u7a0b\\u5f0f\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/blog\\\/building-a-simple-weather-app-with-the-new-google-weather-api\\\/#listItem\",\"position\":3,\"name\":\"\\u5982\\u4f55\\u4f7f\\u7528\\u6700\\u65b0 Google Weather API \\u6253\\u9020\\u7c21\\u6613\\u7d1a\\u5929\\u6c23\\u61c9\\u7528\\u7a0b\\u5f0f\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/\\u5206\\u985e\\\/blog\\\/#listItem\",\"name\":\"\\u7db2\\u8a8c\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/#organization\",\"name\":\"Master Concept\",\"description\":\"\\u4e9e\\u592a\\u5730\\u5340\\u9818\\u5148\\u7d1a\\u96f2\\u7aef\\u6280\\u8853\\u9867\\u554f\",\"url\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/\",\"telephone\":\"+85235896700\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/hkmci.com\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/mci_logo.png\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/blog\\\/building-a-simple-weather-app-with-the-new-google-weather-api\\\/#organizationLogo\"},\"image\":{\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/blog\\\/building-a-simple-weather-app-with-the-new-google-weather-api\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/author\\\/julia\\\/#author\",\"url\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/author\\\/julia\\\/\",\"name\":\"Julia Wu\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/blog\\\/building-a-simple-weather-app-with-the-new-google-weather-api\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cfb0d282a9c0a989c976c696df8a1bed55dd64b57f17537f2d50d21d9e53ee33?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Julia Wu\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/blog\\\/building-a-simple-weather-app-with-the-new-google-weather-api\\\/#webpage\",\"url\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/blog\\\/building-a-simple-weather-app-with-the-new-google-weather-api\\\/\",\"name\":\"\\u5982\\u4f55\\u4f7f\\u7528\\u6700\\u65b0 Google Weather API \\u6253\\u9020\\u7c21\\u6613\\u7d1a\\u5929\\u6c23\\u61c9\\u7528\\u7a0b\\u5f0f | \\u601d\\u60f3\\u79d1\\u6280 Master Concept\",\"description\":\"\\u91cb\\u653e Google Weather API \\u6f5b\\u529b\\uff01\\u6574\\u5408 AI \\u9a45\\u52d5\\u7684\\u8d85\\u5728\\u5730\\u5316\\u5373\\u6642\\u5929\\u6c23\\u3001\\u6bcf\\u5c0f\\u6642\\\/\\u6bcf\\u65e5\\u9810\\u5831\\u53ca\\u6b77\\u53f2\\u6578\\u64da\\uff0c\\u70ba\\u60a8\\u7684\\u61c9\\u7528\\u7a0b\\u5f0f\\u589e\\u6dfb\\u5c08\\u696d\\u6c23\\u8c61\\u6d1e\\u5bdf\\u529b\\u3002\\u5e6b\\u52a9\\u4f01\\u696d\\u958b\\u767c\\u5718\\u968a\\u904b\\u7528\\u6b64\\u5f37\\u5927\\u5730\\u7406\\u7a7a\\u9593\\u5de5\\u5177\\u512a\\u5316\\u6c7a\\u7b56\\u3001\\u63d0\\u5347\\u4f7f\\u7528\\u8005\\u9ad4\\u9a57\\u3002\",\"inLanguage\":\"zh-TW\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/blog\\\/building-a-simple-weather-app-with-the-new-google-weather-api\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/author\\\/julia\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/author\\\/julia\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/masterconcept.ai\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/Weather-API.png\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/blog\\\/building-a-simple-weather-app-with-the-new-google-weather-api\\\/#mainImage\",\"width\":2560,\"height\":1440,\"caption\":\"Google Weather API\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/blog\\\/building-a-simple-weather-app-with-the-new-google-weather-api\\\/#mainImage\"},\"datePublished\":\"2025-04-22T15:15:37+08:00\",\"dateModified\":\"2025-04-23T12:16:12+08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/#website\",\"url\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/\",\"name\":\"Master Concept\",\"description\":\"\\u4e9e\\u592a\\u5730\\u5340\\u9818\\u5148\\u7d1a\\u96f2\\u7aef\\u6280\\u8853\\u9867\\u554f\",\"inLanguage\":\"zh-TW\",\"publisher\":{\"@id\":\"https:\\\/\\\/masterconcept.ai\\\/zh-hant\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u5982\u4f55\u4f7f\u7528\u6700\u65b0 Google Weather API \u6253\u9020\u7c21\u6613\u7d1a\u5929\u6c23\u61c9\u7528\u7a0b\u5f0f | \u601d\u60f3\u79d1\u6280 Master Concept","description":"\u91cb\u653e Google Weather API \u6f5b\u529b\uff01\u6574\u5408 AI \u9a45\u52d5\u7684\u8d85\u5728\u5730\u5316\u5373\u6642\u5929\u6c23\u3001\u6bcf\u5c0f\u6642\/\u6bcf\u65e5\u9810\u5831\u53ca\u6b77\u53f2\u6578\u64da\uff0c\u70ba\u60a8\u7684\u61c9\u7528\u7a0b\u5f0f\u589e\u6dfb\u5c08\u696d\u6c23\u8c61\u6d1e\u5bdf\u529b\u3002\u5e6b\u52a9\u4f01\u696d\u958b\u767c\u5718\u968a\u904b\u7528\u6b64\u5f37\u5927\u5730\u7406\u7a7a\u9593\u5de5\u5177\u512a\u5316\u6c7a\u7b56\u3001\u63d0\u5347\u4f7f\u7528\u8005\u9ad4\u9a57\u3002","canonical_url":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/","robots":"max-image-preview:large","keywords":"google maps platform,\u5730\u7406\u8cc7\u8a0a,\u5730\u7406\u8cc7\u8a0a\u7cfb\u7d71,\u7db2\u8a8c","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/#article","name":"\u5982\u4f55\u4f7f\u7528\u6700\u65b0 Google Weather API \u6253\u9020\u7c21\u6613\u7d1a\u5929\u6c23\u61c9\u7528\u7a0b\u5f0f | \u601d\u60f3\u79d1\u6280 Master Concept","headline":"\u5982\u4f55\u4f7f\u7528\u6700\u65b0 Google Weather API \u6253\u9020\u7c21\u6613\u7d1a\u5929\u6c23\u61c9\u7528\u7a0b\u5f0f","author":{"@id":"https:\/\/masterconcept.ai\/zh-hant\/author\/julia\/#author"},"publisher":{"@id":"https:\/\/masterconcept.ai\/zh-hant\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/Weather-API.png","width":2560,"height":1440,"caption":"Google Weather API"},"datePublished":"2025-04-22T15:15:37+08:00","dateModified":"2025-04-23T12:16:12+08:00","inLanguage":"zh-TW","mainEntityOfPage":{"@id":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/#webpage"},"isPartOf":{"@id":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/#webpage"},"articleSection":"\u7db2\u8a8c, Google Maps Platform, \u5730\u7406\u8cc7\u8a0a, \u5730\u7406\u8cc7\u8a0a\u7cfb\u7d71, \u53ef\u9078"},{"@type":"BreadcrumbList","@id":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/masterconcept.ai\/zh-hant\/#listItem","position":1,"name":"Home","item":"https:\/\/masterconcept.ai\/zh-hant\/","nextItem":{"@type":"ListItem","@id":"https:\/\/masterconcept.ai\/zh-hant\/\u5206\u985e\/blog\/#listItem","name":"\u7db2\u8a8c"}},{"@type":"ListItem","@id":"https:\/\/masterconcept.ai\/zh-hant\/\u5206\u985e\/blog\/#listItem","position":2,"name":"\u7db2\u8a8c","item":"https:\/\/masterconcept.ai\/zh-hant\/\u5206\u985e\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/#listItem","name":"\u5982\u4f55\u4f7f\u7528\u6700\u65b0 Google Weather API \u6253\u9020\u7c21\u6613\u7d1a\u5929\u6c23\u61c9\u7528\u7a0b\u5f0f"},"previousItem":{"@type":"ListItem","@id":"https:\/\/masterconcept.ai\/zh-hant\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/#listItem","position":3,"name":"\u5982\u4f55\u4f7f\u7528\u6700\u65b0 Google Weather API \u6253\u9020\u7c21\u6613\u7d1a\u5929\u6c23\u61c9\u7528\u7a0b\u5f0f","previousItem":{"@type":"ListItem","@id":"https:\/\/masterconcept.ai\/zh-hant\/\u5206\u985e\/blog\/#listItem","name":"\u7db2\u8a8c"}}]},{"@type":"Organization","@id":"https:\/\/masterconcept.ai\/zh-hant\/#organization","name":"Master Concept","description":"\u4e9e\u592a\u5730\u5340\u9818\u5148\u7d1a\u96f2\u7aef\u6280\u8853\u9867\u554f","url":"https:\/\/masterconcept.ai\/zh-hant\/","telephone":"+85235896700","logo":{"@type":"ImageObject","url":"https:\/\/hkmci.com\/wp-content\/uploads\/2020\/05\/mci_logo.png","@id":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/#organizationLogo"},"image":{"@id":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/masterconcept.ai\/zh-hant\/author\/julia\/#author","url":"https:\/\/masterconcept.ai\/zh-hant\/author\/julia\/","name":"Julia Wu","image":{"@type":"ImageObject","@id":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/cfb0d282a9c0a989c976c696df8a1bed55dd64b57f17537f2d50d21d9e53ee33?s=96&d=mm&r=g","width":96,"height":96,"caption":"Julia Wu"}},{"@type":"WebPage","@id":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/#webpage","url":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/","name":"\u5982\u4f55\u4f7f\u7528\u6700\u65b0 Google Weather API \u6253\u9020\u7c21\u6613\u7d1a\u5929\u6c23\u61c9\u7528\u7a0b\u5f0f | \u601d\u60f3\u79d1\u6280 Master Concept","description":"\u91cb\u653e Google Weather API \u6f5b\u529b\uff01\u6574\u5408 AI \u9a45\u52d5\u7684\u8d85\u5728\u5730\u5316\u5373\u6642\u5929\u6c23\u3001\u6bcf\u5c0f\u6642\/\u6bcf\u65e5\u9810\u5831\u53ca\u6b77\u53f2\u6578\u64da\uff0c\u70ba\u60a8\u7684\u61c9\u7528\u7a0b\u5f0f\u589e\u6dfb\u5c08\u696d\u6c23\u8c61\u6d1e\u5bdf\u529b\u3002\u5e6b\u52a9\u4f01\u696d\u958b\u767c\u5718\u968a\u904b\u7528\u6b64\u5f37\u5927\u5730\u7406\u7a7a\u9593\u5de5\u5177\u512a\u5316\u6c7a\u7b56\u3001\u63d0\u5347\u4f7f\u7528\u8005\u9ad4\u9a57\u3002","inLanguage":"zh-TW","isPartOf":{"@id":"https:\/\/masterconcept.ai\/zh-hant\/#website"},"breadcrumb":{"@id":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/#breadcrumblist"},"author":{"@id":"https:\/\/masterconcept.ai\/zh-hant\/author\/julia\/#author"},"creator":{"@id":"https:\/\/masterconcept.ai\/zh-hant\/author\/julia\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/Weather-API.png","@id":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/#mainImage","width":2560,"height":1440,"caption":"Google Weather API"},"primaryImageOfPage":{"@id":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/#mainImage"},"datePublished":"2025-04-22T15:15:37+08:00","dateModified":"2025-04-23T12:16:12+08:00"},{"@type":"WebSite","@id":"https:\/\/masterconcept.ai\/zh-hant\/#website","url":"https:\/\/masterconcept.ai\/zh-hant\/","name":"Master Concept","description":"\u4e9e\u592a\u5730\u5340\u9818\u5148\u7d1a\u96f2\u7aef\u6280\u8853\u9867\u554f","inLanguage":"zh-TW","publisher":{"@id":"https:\/\/masterconcept.ai\/zh-hant\/#organization"}}]},"og:locale":"zh_TW","og:site_name":"Master Concept","og:type":"article","og:title":"\u5982\u4f55\u4f7f\u7528\u6700\u65b0 Google Weather API \u6253\u9020\u7c21\u6613\u7d1a\u5929\u6c23\u61c9\u7528\u7a0b\u5f0f | \u601d\u60f3\u79d1\u6280 Master Concept","og:description":"\u91cb\u653e Google Weather API \u6f5b\u529b\uff01\u6574\u5408 AI \u9a45\u52d5\u7684\u8d85\u5728\u5730\u5316\u5373\u6642\u5929\u6c23\u3001\u6bcf\u5c0f\u6642\/\u6bcf\u65e5\u9810\u5831\u53ca\u6b77\u53f2\u6578\u64da\uff0c\u70ba\u60a8\u7684\u61c9\u7528\u7a0b\u5f0f\u589e\u6dfb\u5c08\u696d\u6c23\u8c61\u6d1e\u5bdf\u529b\u3002\u5e6b\u52a9\u4f01\u696d\u958b\u767c\u5718\u968a\u904b\u7528\u6b64\u5f37\u5927\u5730\u7406\u7a7a\u9593\u5de5\u5177\u512a\u5316\u6c7a\u7b56\u3001\u63d0\u5347\u4f7f\u7528\u8005\u9ad4\u9a57\u3002","og:url":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/","og:image":"https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/Weather-API.png","og:image:secure_url":"https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/Weather-API.png","og:image:width":2560,"og:image:height":1440,"article:published_time":"2025-04-22T07:15:37+00:00","article:modified_time":"2025-04-23T04:16:12+00:00","article:publisher":"https:\/\/www.facebook.com\/Hkmci\/","twitter:card":"summary","twitter:title":"\u5982\u4f55\u4f7f\u7528\u6700\u65b0 Google Weather API \u6253\u9020\u7c21\u6613\u7d1a\u5929\u6c23\u61c9\u7528\u7a0b\u5f0f | \u601d\u60f3\u79d1\u6280 Master Concept","twitter:description":"\u91cb\u653e Google Weather API \u6f5b\u529b\uff01\u6574\u5408 AI \u9a45\u52d5\u7684\u8d85\u5728\u5730\u5316\u5373\u6642\u5929\u6c23\u3001\u6bcf\u5c0f\u6642\/\u6bcf\u65e5\u9810\u5831\u53ca\u6b77\u53f2\u6578\u64da\uff0c\u70ba\u60a8\u7684\u61c9\u7528\u7a0b\u5f0f\u589e\u6dfb\u5c08\u696d\u6c23\u8c61\u6d1e\u5bdf\u529b\u3002\u5e6b\u52a9\u4f01\u696d\u958b\u767c\u5718\u968a\u904b\u7528\u6b64\u5f37\u5927\u5730\u7406\u7a7a\u9593\u5de5\u5177\u512a\u5316\u6c7a\u7b56\u3001\u63d0\u5347\u4f7f\u7528\u8005\u9ad4\u9a57\u3002","twitter:image":"https:\/\/masterconcept.ai\/wp-content\/uploads\/2025\/04\/Weather-API.png"},"aioseo_meta_data":{"post_id":"58107","title":null,"description":"\u91cb\u653e Google Weather API \u6f5b\u529b\uff01\u6574\u5408 AI \u9a45\u52d5\u7684\u8d85\u5728\u5730\u5316\u5373\u6642\u5929\u6c23\u3001\u6bcf\u5c0f\u6642\/\u6bcf\u65e5\u9810\u5831\u53ca\u6b77\u53f2\u6578\u64da\uff0c\u70ba\u60a8\u7684\u61c9\u7528\u7a0b\u5f0f\u589e\u6dfb\u5c08\u696d\u6c23\u8c61\u6d1e\u5bdf\u529b\u3002\u5e6b\u52a9\u4f01\u696d\u958b\u767c\u5718\u968a\u904b\u7528\u6b64\u5f37\u5927\u5730\u7406\u7a7a\u9593\u5de5\u5177\u512a\u5316\u6c7a\u7b56\u3001\u63d0\u5347\u4f7f\u7528\u8005\u9ad4\u9a57\u3002","keywords":null,"keyphrases":{"focus":{"keyphrase":"Weather API","score":91,"analysis":{"keyphraseInTitle":{"score":9,"maxScore":9,"error":0},"keyphraseInDescription":{"score":9,"maxScore":9,"error":0},"keyphraseLength":{"score":9,"maxScore":9,"error":0,"length":2},"keyphraseInURL":{"score":5,"maxScore":5,"error":0},"keyphraseInIntroduction":{"score":9,"maxScore":9,"error":0},"keyphraseInSubHeadings":{"score":3,"maxScore":9,"error":1},"keyphraseInImageAlt":{"score":9,"maxScore":9,"error":0},"keywordDensity":{"type":"best","score":9,"maxScore":9,"error":0}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2025-04-22 06:40:54","updated":"2025-04-23 04:16:12","seo_analyzer_scan_date":null,"focus_keyword":"Weather API","additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/masterconcept.ai\/zh-hant\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/masterconcept.ai\/zh-hant\/\u5206\u985e\/blog\/\" title=\"\u7db2\u8a8c\">\u7db2\u8a8c<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u5982\u4f55\u4f7f\u7528\u6700\u65b0 Google Weather API \u6253\u9020\u7c21\u6613\u7d1a\u5929\u6c23\u61c9\u7528\u7a0b\u5f0f\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/masterconcept.ai\/zh-hant\/"},{"label":"\u7db2\u8a8c","link":"https:\/\/masterconcept.ai\/zh-hant\/\u5206\u985e\/blog\/"},{"label":"\u5982\u4f55\u4f7f\u7528\u6700\u65b0 Google Weather API \u6253\u9020\u7c21\u6613\u7d1a\u5929\u6c23\u61c9\u7528\u7a0b\u5f0f","link":"https:\/\/masterconcept.ai\/zh-hant\/blog\/building-a-simple-weather-app-with-the-new-google-weather-api\/"}],"permalink_manager":null,"_links":{"self":[{"href":"https:\/\/masterconcept.ai\/zh-hant\/wp-json\/wp\/v2\/posts\/58107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/masterconcept.ai\/zh-hant\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/masterconcept.ai\/zh-hant\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/masterconcept.ai\/zh-hant\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/masterconcept.ai\/zh-hant\/wp-json\/wp\/v2\/comments?post=58107"}],"version-history":[{"count":0,"href":"https:\/\/masterconcept.ai\/zh-hant\/wp-json\/wp\/v2\/posts\/58107\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/masterconcept.ai\/zh-hant\/wp-json\/wp\/v2\/media\/58108"}],"wp:attachment":[{"href":"https:\/\/masterconcept.ai\/zh-hant\/wp-json\/wp\/v2\/media?parent=58107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/masterconcept.ai\/zh-hant\/wp-json\/wp\/v2\/categories?post=58107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/masterconcept.ai\/zh-hant\/wp-json\/wp\/v2\/tags?post=58107"},{"taxonomy":"region","embeddable":true,"href":"https:\/\/masterconcept.ai\/zh-hant\/wp-json\/wp\/v2\/region?post=58107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}