{"id":2625,"date":"2023-10-01T12:09:32","date_gmt":"2023-10-01T03:09:32","guid":{"rendered":"https:\/\/dalomo.net\/blog\/?p=2625"},"modified":"2023-10-10T22:09:48","modified_gmt":"2023-10-10T13:09:48","slug":"%e7%b7%af%e5%ba%a6%e3%83%bb%e7%b5%8c%e5%ba%a6%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1%e3%81%8b%e3%82%89%e9%ab%98%e5%ba%a6%e3%83%bb%e6%a8%99%e9%ab%98%e3%82%92%e5%8f%96%e5%be%97%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/dalomo.net\/blog\/2023\/10\/01\/2625\/","title":{"rendered":"\u7def\u5ea6\u30fb\u7d4c\u5ea6\u306e\u4f4d\u7f6e\u60c5\u5831\u304b\u3089\u9ad8\u5ea6\u30fb\u6a19\u9ad8\u3092\u53d6\u5f97\u3057\u305f\u3044"},"content":{"rendered":"<h1>\u6a19\u9ad8\u3092\u77e5\u308a\u305f\u3044<\/h1>\n<p>\u5148\u65e5\u884c\u3063\u305f\u6a29\u73fe\u5cb3\u3078\u306e\u5c71\u884c\u306e\u969b\u3001\u30ed\u30b0\u53d6\u308a\u3092\u884c\u3063\u3066\u3044\u305f\u3082\u306e\u306e\u3001\u30bb\u30f3\u30b5\u30fc\u304c\u5916\u308c\u3066\u3057\u307e\u3063\u3066\u304a\u308a\u6c17\u5727\u3068\u6e29\u5ea6\u306e\u30ed\u30b0\u304c\u53d6\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u3002\u3044\u3064\u3082\u306f\u3053\u308c\u304b\u3089\u9ad8\u5ea6\u3092\u7b97\u51fa\u3057\u5c71\u884c\u6642\u306e\u9ad8\u5ea6\u306e\u5909\u5316\u3092\u30b0\u30e9\u30d5\u5316\u3057\u3066\u3044\u305f\u304c\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002\u5e78\u3044\u4f4d\u7f6e\u60c5\u5831\u306b\u3064\u3044\u3066\u306f\u53d6\u308c\u3066\u3044\u305f\u305f\u3081\u3001\u3053\u3053\u304b\u3089\u306a\u3093\u3068\u304b\u3067\u304d\u3093\u3060\u308d\u304b\u3068\u601d\u3063\u305f\u3002<\/p>\n<h2>\u9ad8\u5ea6\u60c5\u5831\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308bAPI<\/h2>\n<p>\u307e\u3041\u305d\u3046\u3044\u3046\u60c5\u5831\u63d0\u4f9b\u3057\u3066\u3044\u308bAPI\u3042\u308b\u3058\u3083\u308d\u306a\u30fc\u3068\u8efd\u3044\u6c17\u6301\u3061\u3067\u30b0\u30b0\u3063\u3066\u51fa\u3066\u304d\u305f\u3082\u306e\u3092\u898b\u3066\u307f\u308b\u3002\u76ee\u7684\u3068\u5916\u308c\u308b\u306e\u3067\u8a73\u7d30\u306a\u6bd4\u8f03\u3068\u304b\u306f\u3057\u3066\u304b\u306a\u3044\u3002<\/p>\n<h3>Google Maps JavaScript API<\/h3>\n<p><a href=\"https:\/\/developers.google.com\/maps\/documentation\/javascript\/elevation?hl=ja\">https:\/\/developers.google.com\/maps\/documentation\/javascript\/elevation?hl=ja<\/a><\/p>\n<p>\u767b\u9332\u5fc5\u8981\u3001\u6709\u6599\u3002\u9ad8\u5ea6\u30c7\u30fc\u30bf\u306f\u4f55\u3092\u57fa\u306b\u3057\u3066\u308b\u304b\u5206\u304b\u3093\u306a\u3044\u3002<\/p>\n<h3>Open-Elevation API<\/h3>\n<p><a href=\"https:\/\/open-elevation.com\/\">https:\/\/open-elevation.com\/<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/Jorl17\/open-elevation\/blob\/master\/docs\/api.md\">https:\/\/github.com\/Jorl17\/open-elevation\/blob\/master\/docs\/api.md<\/a><\/p>\n<p>\u767b\u9332\u4e0d\u8981\u3001\u7121\u6599\u3002\u7c21\u5358\u306b\u4f7f\u3048\u308b\u3002GET\u30671024\u30d0\u30a4\u30c8\u307e\u3067\u3001POST\u306f\u5236\u9650\u306a\u3057(\uff01)\u3002\u9ad8\u5ea6\u30c7\u30fc\u30bf\u306f<a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/SRTM\">SRTM<\/a>\u304c\u57fa\u3089\u3057\u3044\u3002<\/p>\n<p><a href=\"https:\/\/api.open-elevation.com\/api\/v1\/lookup?locations=35.9216733,138.3979072\">\u5929\u5973\u5c71\u99d0\u8eca\u5834<\/a>\u00a01546.0m<\/p>\n<h3>Open-Meteo Elevation API<\/h3>\n<p><a href=\"https:\/\/open-meteo.com\/en\/docs\/elevation-api\">https:\/\/open-meteo.com\/en\/docs\/elevation-api<\/a><\/p>\n<p>\u30b9\u30a4\u30b9\u306e\u6c17\u8c61\u95a2\u9023\u306e\u4f1a\u793e\u3089\u3057\u3044\u3002\u63d0\u4f9b\u3057\u3066\u3044\u308bAPI\u306e\u4e00\u3064\u306b\u9ad8\u5ea6\u304c\u3042\u308b\u3002\u767b\u9332\u4e0d\u8981\u3001\u7121\u6599\u3002\u30ea\u30df\u30c3\u30c8\u306f\u3088\u304f\u5206\u304b\u3093\u306a\u3044\u3002\u3053\u308c\u3082\u7c21\u5358\u305d\u3046\u3002<a href=\"https:\/\/spacedata.copernicus.eu\/collections\/copernicus-digital-elevation-model\">Copernicus Digital Elevation Model\u306eGLO-90<\/a>\u3068\u3044\u3046\u5168\u4e16\u754c\u306e90m\u56db\u65b9\u89e3\u50cf\u5ea6\u306e\u30c7\u30fc\u30bf\u3092\u57fa\u306b\u3057\u3066\u3044\u308b\u3089\u3057\u3044\u3002<\/p>\n<p><a href=\"https:\/\/api.open-meteo.com\/v1\/elevation?latitude=35.9216733&amp;longitude=138.3979072\">\u5929\u5973\u5c71\u99d0\u8eca\u5834<\/a> 1557.0m<\/p>\n<h3>Microsoft Bing Maps Elevations API<\/h3>\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/bingmaps\/rest-services\/elevations\/\">https:\/\/learn.microsoft.com\/en-us\/bingmaps\/rest-services\/elevations\/<\/a><\/p>\n<p>\u767b\u9332\u5fc5\u8981\u3001\u4fa1\u683c\u306f\u3088\u304f\u5206\u304b\u3089\u3093\u3002\u57fa\u30c7\u30fc\u30bf\u3082\u3088\u304f\u5206\u304b\u3089\u3093\u3002<\/p>\n<h3>HUAWEI Elevation API<\/h3>\n<p><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMSCore-References\/elevation-api-0000001158669981\">https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMSCore-References\/elevation-api-0000001158669981<\/a><\/p>\n<p>\u306a\u3093\u304b\u3042\u3063\u305f\u3002\u767b\u9332\u306f\u5fc5\u8981\u305d\u3046\u3002POST\u306e\u307f\u3002<\/p>\n<h3>Opentopodata<\/h3>\n<p><a href=\"https:\/\/www.opentopodata.org\/\">https:\/\/www.opentopodata.org\/<\/a><\/p>\n<p>\u8272\u3093\u306a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u307e\u3068\u3081\u307e\u3057\u305f\u30fc\u3063\u3066\u611f\u3058\u306a\u3093\u3060\u308d\u3046\u304b\u3002\u7121\u6599\u306e\u30d1\u30d6\u30ea\u30c3\u30afAPI\u306f<\/p>\n<blockquote>\n<ul>\n<li>Max 100 locations per request.<\/li>\n<li>Max 1 call per second.<\/li>\n<li>Max 1000 calls per day.<\/li>\n<\/ul>\n<\/blockquote>\n<p>\u3068\u3044\u3046\u5236\u9650\u304c\u3042\u308b\u3002\u2193\u3067\u8a66\u3057\u3066\u307f\u305f\u304c\u4ed6\u3068\u306e\u5dee\u304c\u3059\u3054\u3044\u3002<\/p>\n<p><a href=\"https:\/\/api.opentopodata.org\/v1\/test-dataset?locations=35.9216733,138.3979072\">\u5929\u5973\u5c71\u99d0\u8eca\u5834<\/a> 671.7135620117188m<\/p>\n<h3>\u56fd\u571f\u5730\u7406\u9662 \u30b5\u30fc\u30d0\u30b5\u30a4\u30c9\u3067\u7d4c\u7def\u5ea6\u304b\u3089\u6a19\u9ad8\u3092\u6c42\u3081\u308b\u30d7\u30ed\u30b0\u30e9\u30e0<\/h3>\n<p><a href=\"https:\/\/maps.gsi.go.jp\/development\/elevation_s.html\">https:\/\/maps.gsi.go.jp\/development\/elevation_s.html<\/a><\/p>\n<p>\u56fd\u571f\u5730\u7406\u9662\u306e\u2026\u2026API\u3068\u3044\u3063\u3066\u3044\u3044\u3068\u601d\u3046\u3093\u3067\u3059\u304c\u3002\u767b\u9332\u4e0d\u8981\u3001\u7121\u6599\u3067\u4f7f\u3048\u308b\u3002\u5236\u9650\u306f\u5e38\u8b58\u7684\u306a\u7bc4\u56f2\u3067\u306e\u5229\u7528\u3001\u3068\u306a\u3002<a href=\"https:\/\/developer.yahoo.co.jp\/webapi\/map\/openlocalplatform\/v1\/altitude.html\">Yahoo\u306e\u6a19\u9ad8API<\/a>\u3068\u304b\u3067\u3082\u4f7f\u308f\u308c\u3066\u308b\u30c7\u30fc\u30bf\u304b\u3089\u4f5c\u3089\u308c\u3066\u308b\u305d\u3046\u3002\u30c7\u30fc\u30bf\u3068\u3057\u3066\u306f<a href=\"https:\/\/maps.gsi.go.jp\/help\/pdf\/demapi.pdf\">\u5b9f\u6e2c\u5024\u306e\u6700\u8fd1\u70b94\u70b9\u3092\u5e73\u6ed1\u5316\u3057\u305f\u3082\u306e<\/a>\u3060\u305d\u3046\u3002<\/p>\n<p><a href=\"https:\/\/cyberjapandata2.gsi.go.jp\/general\/dem\/scripts\/getelevation.php?lon=138.3979072&amp;lat=35.9216733&amp;outtype=JSON\">\u5929\u5973\u5c71\u99d0\u8eca\u5834<\/a> 1533.4m<\/p>\n<p>&nbsp;<\/p>\n<p>\u3068\u307e\u3041\u8272\u3005\u898b\u3066\u304d\u305f\u3051\u3069\u7d50\u5c40\u56fd\u571f\u5730\u7406\u9662\u304c\u7121\u96e3\u304b\u306a\u30fc\u3002\u3042\u3068\u306f\u5236\u9650\u304c\u304b\u304b\u3089\u306a\u3044\u304b\u304c\u3042\u308c\u3060\u3051\u3069\u3002\u3069\u308c\u3082\u3053\u308c\u3082\u623b\u308a\u5024\u306fJSON\u306a\u306e\u3067\u3084\u3063\u3071Javascript\u3067\u66f8\u304f\u306e\u304c\u3044\u3044\u3093\u304b\u306a\u3002\u3076\u3063\u3061\u3083\u3051\u3042\u3093\u307e\u308a\u597d\u304d\u3058\u3083\u306a\u3044\u3093\u3088\u306d\uff5e\u3002\u3042\u3068\u306a\u3093\u304bCORS\u306e\u30a8\u30e9\u30fc\u3067\u305d\u3046\u30fc\u3002<\/p>\n<h2>\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089WebAPI\u3068\u3084\u308a\u3068\u308a<\/h2>\n<p>\u4f55\u306e\u8a00\u8a9e\u3067\u3084\u308d\u3046\u304b\u306a\uff1f\u3068\u3044\u3046\u3068\u3053\u308d\u3067\u3001\u60a9\u307e\u3057\u3044\u3002\u3082\u3046VBA\u3067\u3044\u3044\u3093\u3058\u3083\u306a\u3044\u304b\u3002<\/p>\n<h3>VBA<\/h3>\n<p>\u305f\u3081\u3057\u306b<\/p>\n<pre>Sub req()\r\n\r\nDim httpobj As XMLHTTP60\r\nSet httpobj = New XMLHTTP60\r\n\r\nhttpobj.Open \"GET\", \"https:\/\/cyberjapandata2.gsi.go.jp\/general\/dem\/scripts\/getelevation.php?lon=138.3979072&amp;lat=35.9216733&amp;outtype=JSON\"\r\nhttpobj.send\r\n\r\nDo While httpobj.readyState &lt; 4\r\n  DoEvents\r\nLoop\r\n\r\nDebug.Print httpobj.responseText\r\n\r\nEnd Sub<\/pre>\n<p>\u7d50\u679c<\/p>\n<pre>{\"elevation\":1533.4,\"hsrc\":\"5m\\uff08\\u30ec\\u30fc\\u30b6\\uff09\"}<\/pre>\n<p>\u3044\u3044\u3067\u3059\u306d\uff5e\u3002JSON\u306e\u30d1\u30fc\u30b5\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/VBA-tools\/VBA-JSON\">https:\/\/github.com\/VBA-tools\/VBA-JSON<\/a><\/p>\n<p>\u305d\u3057\u305f\u3089\u3053\u3046<\/p>\n<pre>Sub req()\r\n\r\nDim httpobj As XMLHTTP60\r\nSet httpobj = New XMLHTTP60\r\n\r\nhttpobj.Open \"GET\", \"https:\/\/cyberjapandata2.gsi.go.jp\/general\/dem\/scripts\/getelevation.php?lon=138.3979072&amp;lat=35.9216733&amp;outtype=JSON\"\r\nhttpobj.send\r\n\r\nDo While httpobj.readyState &lt; 4\r\nDoEvents\r\nLoop\r\n\r\nDim Json As Object\r\nSet Json = JsonConverter.ParseJson(httpobj.responseText)\r\n\r\nDebug.Print Json(\"elevation\")\r\n\r\nEnd Sub<\/pre>\n<p>\u7d50\u679c<\/p>\n<pre> 1533.4<\/pre>\n<p>\u3075\u3080\u30fc\u3002\u3042\u3068\u306f\u3082\u3046\u30ed\u30b0\u306e1\u884c\u3054\u3068\u306b\u53d6\u5f97\u3059\u308b\u3088\u3046\u306b\u3059\u308a\u3083\u3044\u3044\u306d\u3002\u79c1\u306f\u5e38\u8b58\u6751\u306e\u5e38\u8b58\u7684\u306a\u5e38\u8b58\u4eba\u306a\u306e\u30671\u79d2\u306e\u30b9\u30ea\u30fc\u30d7\u3092\u5165\u308c\u3066\u304a\u3053\u3046\u3002<\/p>\n<pre>Sub req()\r\n\r\nDim httpobj As XMLHTTP60\r\nSet httpobj = New XMLHTTP60\r\n\r\nFor i = 1 To Cells(Rows.Count, 1).End(xlUp).Row\r\n\r\n  httpobj.Open \"GET\", \"https:\/\/cyberjapandata2.gsi.go.jp\/general\/dem\/scripts\/getelevation.php?lon=\" _\r\n                       &amp; Range(\"D\" &amp; i).Value &amp; \"&amp;lat=\" &amp; Range(\"C\" &amp; i).Value &amp; \"&amp;outtype=JSON\"\r\n  httpobj.send\r\n\r\n  Do While httpobj.readyState &lt; 4\r\n    DoEvents\r\n  Loop\r\n\r\n  Dim Json As Object\r\n  Set Json = JsonConverter.ParseJson(httpobj.responseText)\r\n\r\n  Range(\"F\" &amp; i).Value = Json(\"elevation\")\r\n\r\n  Application.Wait Now() + TimeValue(\"00:00:01\")\r\n\r\nNext i\r\n\r\nEnd Sub<\/pre>\n<p>\u3053\u3046\u306e<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/10\/ele.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2627\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/10\/ele-300x113.png\" alt=\"\" width=\"300\" height=\"113\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/10\/ele-300x113.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/10\/ele-1024x386.png 1024w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/10\/ele-768x290.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/10\/ele.png 1238w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002\u610f\u5916\u3068\u304d\u308c\u3044\u300215000\u4ef6\u3068\u304b\u3060\u306815000\/60\/60\u3067\u7d044\u6642\u9593\u5f37\u2026\u2026\u3002\u30bb\u30f3\u30b5\u30fc\u306e\u63a5\u7d9a\u306f\u3061\u3083\u3093\u3068\u30c1\u30a7\u30c3\u30af\u3057\u3088\u3046\u306d\u3002<\/p>\n<h3>Python<\/h3>\n<p>\u4e45\u3057\u3076\u308a\u306bPython\u3002\u5358\u7d14\u306b\u8003\u3048\u3066\u3001CSV\u8aad\u307f\u8fbc\u307f\u2192\u884c\u3054\u3068\u306bAPI\u306b\u30a2\u30af\u30bb\u30b9\u2192\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u307f\u2192CSV\u3092\u51fa\u529b\u3063\u3066\u6d41\u308c\u3067\u3067\u304d\u308b\u3068\u601d\u308f\u308c\u308b\u3002<\/p>\n<pre><code class=\"python\">import csv\r\nimport time\r\nimport requests\r\n\r\nl = []\r\n\r\nwith open(\"test.csv\", \"r\") as f:\r\n    reader = csv.reader(f)\r\n    for row in reader:\r\n        url = (\r\n            \"https:\/\/cyberjapandata2.gsi.go.jp\/general\/dem\/scripts\/getelevation.php?lon=\"\r\n            + row[3]\r\n            + \"&amp;lat=\"\r\n            + row[2]\r\n            + \"&amp;outtype=JSON\"\r\n        )\r\n        headers = {\"User-Agent\": \"Mozilla\/5.0\"}\r\n\r\n        res = requests.get(url=url, headers=headers)\r\n        data = res.json()\r\n        row.append(data[\"elevation\"])\r\n        l.append(row)\r\n\r\n        time.sleep(1)\r\n\r\nwith open(\"output.csv\", \"w\", newline=\"\") as f:\r\n    writer = csv.writer(f)\r\n    for row in l:\r\n        writer.writerow(row)<\/code><\/pre>\n<p>\u3053\u3046\u3002\u3067\u3001\u8ffd\u8a18\u6e08\u307f\u306eoutput.csv\u304c\u51fa\u529b\u3055\u308c\u308b\u3002\u3044\u3064\u3082\u306a\u304c\u3089\u30ad\u30ec\u30a4\u306b\u66f8\u3051\u3093\u306a\u3041\u3002<\/p>\n<h4>ChatGPT\u3068Bard\u306b\u30ec\u30d3\u30e5\u30fc\u3057\u3066\u3082\u3089\u3063\u305f<\/h4>\n<p>\u305d\u3046\u3044\u3048\u3070\u6700\u8fd1\u8a71\u984c\u306e\u5bfe\u8a71\u578bAI\u304c\u30ec\u30d3\u30e5\u30fc\u3082\u3067\u304d\u308b\u3063\u3066\u8a71\u306a\u306e\u3067\u3084\u3063\u3066\u3082\u3089\u3063\u305f\u3002\u4ee5\u4e0b\u7d50\u679c<\/p>\n<h5>ChatGPT<\/h5>\n<p>\u6539\u5584\u70b9\u3068\u6ce8\u610f\u70b9:<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>\u30b3\u30fc\u30c9\u306e\u6a5f\u80fd\u306f\u7406\u89e3\u3067\u304d\u307e\u3057\u305f\u304c\u3001\u30a8\u30e9\u30fc\u51e6\u7406\u304c\u4e0d\u8db3\u3057\u3066\u3044\u307e\u3059\u3002HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5931\u6557\u3057\u305f\u5834\u5408\u3084JSON\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u306b\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306b\u5099\u3048\u3066\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/li>\n<li>time.sleep(1)\u306b\u3088\u308b1\u79d2\u306e\u5f85\u6a5f\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u8ca0\u8377\u3092\u8efd\u6e1b\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3068\u601d\u308f\u308c\u307e\u3059\u304c\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>\u30b3\u30fc\u30c9\u5185\u306e\u5909\u6570\u540d\u3084\u30b3\u30e1\u30f3\u30c8\u306f\u5341\u5206\u306b\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u304c\u3001\u3082\u3057\u4ed6\u306e\u4eba\u304c\u30b3\u30fc\u30c9\u3092\u8aad\u3080\u3053\u3068\u3092\u8003\u3048\u308b\u5834\u5408\u3001\u3088\u308a\u8a73\u7d30\u306a\u30b3\u30e1\u30f3\u30c8\u3084\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3059\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/li>\n<li>Python\u306erequests\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u30a8\u30e9\u30fc\u51e6\u7406\u3068\u30ea\u30c8\u30e9\u30a4\u306e\u5b9f\u88c5\u3082\u691c\u8a0e\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>\u3053\u308c\u306f\u57fa\u672c\u7684\u306a\u6982\u8981\u3067\u3059\u304c\u3001\u30b3\u30fc\u30c9\u306f\u6a5f\u80fd\u7684\u306b\u898b\u3048\u307e\u3059\u3002\u8a73\u7d30\u306a\u6539\u5584\u3084\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h5>Bard<\/h5>\n<p>\u30ec\u30d3\u30e5\u30fc<\/p>\n<p>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001\u308f\u304b\u308a\u3084\u3059\u304f\u3001\u8aad\u307f\u3084\u3059\u3044\u30b3\u30fc\u30c9\u3067\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001API\u306e\u547c\u3073\u51fa\u3057\u983b\u5ea6\u3092\u5236\u9650\u3059\u308b\u305f\u3081\u306btime.sleep()\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u70b9\u3082\u9069\u5207\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u6b21\u306e\u70b9\u306b\u6ce8\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>CSV\u30d5\u30a1\u30a4\u30eb\u306e\u5404\u884c\u306b\u6a19\u9ad8\u3092\u8ffd\u52a0\u3059\u308b\u3068\u304d\u306b\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u56de\u907f\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<pre>Python\r\ntry:\r\n\u3000\u3000row.append(data[\"elevation\"])\r\nexcept KeyError:\r\n\u3000\u3000pass<\/pre>\n<ul>\n<li>\u51fa\u529bCSV\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3068\u304d\u306b\u3001newline=&#8221;&#8221;\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001Windows\u74b0\u5883\u3067CSV\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u8fbc\u3080\u3068\u304d\u306b\u3001\u4e0d\u8981\u306a\u6539\u884c\u6587\u5b57\u304c\u633f\u5165\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3067\u3059\u3002\u305f\u3060\u3057\u3001Mac\u3084Linux\u74b0\u5883\u3067CSV\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u8fbc\u3080\u3068\u304d\u306f\u3001newline=&#8221;&#8221;\u3092\u6307\u5b9a\u3057\u306a\u3044\u65b9\u304c\u3088\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u306e\u70b9\u306b\u6ce8\u610f\u3059\u308c\u3070\u3001\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b89\u5fc3\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3059\u3054\u3044\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6a19\u9ad8\u3092\u77e5\u308a\u305f\u3044 \u5148\u65e5\u884c\u3063\u305f\u6a29\u73fe\u5cb3\u3078\u306e\u5c71\u884c\u306e\u969b\u3001\u30ed\u30b0\u53d6\u308a\u3092\u884c\u3063\u3066\u3044\u305f\u3082\u306e\u306e\u3001\u30bb\u30f3\u30b5\u30fc\u304c\u5916\u308c\u3066\u3057\u307e\u3063\u3066\u304a\u308a\u6c17\u5727\u3068\u6e29\u5ea6\u306e\u30ed\u30b0\u304c\u53d6\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u3002\u3044\u3064\u3082\u306f\u3053\u308c\u304b\u3089\u9ad8\u5ea6\u3092\u7b97\u51fa\u3057\u5c71\u884c\u6642\u306e\u9ad8\u5ea6\u306e\u5909\u5316\u3092\u30b0\u30e9\u30d5\u5316\u3057\u3066\u3044\u305f\u304c\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057 &hellip; <a href=\"https:\/\/dalomo.net\/blog\/2023\/10\/01\/2625\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2627,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[50,121,195],"class_list":["post-2625","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-8","tag-python","tag-vba","tag-195"],"_links":{"self":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/2625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/comments?post=2625"}],"version-history":[{"count":6,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/2625\/revisions"}],"predecessor-version":[{"id":2634,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/2625\/revisions\/2634"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media\/2627"}],"wp:attachment":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media?parent=2625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/categories?post=2625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/tags?post=2625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}