{"id":50853,"date":"2023-04-01T00:00:00","date_gmt":"2023-04-01T07:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/"},"modified":"2026-03-30T13:21:13","modified_gmt":"2026-03-30T20:21:13","slug":"visualize-global-population-data-with-mapbox-node-js-and-griddb","status":"publish","type":"post","link":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/","title":{"rendered":"Mapbox\u3001Node.js\u3001GridDB\u306b\u3088\u308b\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316"},"content":{"rendered":"<h2>\u79c1\u305f\u3061\u306f\u4f55\u3092\u4f5c\u308b\u306e\u304b\uff1f<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u30a6\u30a7\u30d6\u30d9\u30fc\u30b9\u306e\u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306f<a href=\"https:\/\/www.worldometers.info\/\">worldometers<\/a> \u304b\u3089\u62bd\u51fa\u3057\u3001React\u3001Mapbox GL JS\u3001Node.js\u3001GridDB\u3092\u4f7f\u7528\u3057\u3066\u30a6\u30a7\u30d6\u30d9\u30fc\u30b9\u306e\u5730\u56f3\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u3092\u69cb\u7bc9\u3057\u3066\u3044\u307e\u3059\u3002\u4e16\u754c\u5730\u56f3\u306b\u306f\u3001\u4eba\u53e3\u30c7\u30fc\u30bf\u306e\u591a\u3044\u4e0a\u4f4d10\u30ab\u56fd\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u5b9f\u884c\u3059\u308b<\/h2>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u8d77\u52d5\u3059\u308b\u306b\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e<a href=\"https:\/\/github.com\/junwatu\/griddb-codes\">\u30ea\u30dd\u30b8\u30c8\u30ea<\/a>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3057\u3001Node.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c18\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3001\u5fc5\u8981\u306a\u4f9d\u5b58\u95a2\u4fc2\u3092\u3059\u3079\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u958b\u59cb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">git clone git@github.com:junwatu\/griddb-codes.git\n\ncd griddb-codes\n\ncore enable\n\ncorepack prepare pnpm@7.30.0 --activate\n\npnpm install\n\ncd packages\/data-server\/\n\npnpm install\n\ncd ..\/client\n\npnpm install\n\ncd ..\/..\/\n\nnpm start<\/code><\/pre>\n<\/div>\n<p><a href=\"https:\/\/griddb.net\/en\/wp-content\/uploads\/2023\/03\/run-world-population-project.gif\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/griddb.net\/en\/wp-content\/uploads\/2023\/03\/run-world-population-project.gif\" alt=\"\" width=\"1280\" height=\"720\" class=\"aligncenter size-full wp-image-29519\" \/><\/a><\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067 http:\/\/localhost:5173 \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30a6\u30a7\u30d6\u30de\u30c3\u30d7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u958b\u767a\u306e\u6d41\u308c<\/h2>\n<p><a href=\"https:\/\/griddb.net\/en\/wp-content\/uploads\/2023\/03\/project-diagram.svg\"><img decoding=\"async\" src=\"https:\/\/griddb.net\/en\/wp-content\/uploads\/2023\/03\/project-diagram.svg\" alt=\"\" width=\"1681\" height=\"1031\" class=\"aligncenter size-full wp-image-29518\" \/><\/a>\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u958b\u767a\u30d5\u30ed\u30fc\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u30b9\u30c6\u30c3\u30d7\u306b\u5206\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30c7\u30fc\u30bf\u53ce\u96c6<\/h2>\n<p>\u307e\u305a\u3001<a href=\"https:\/\/www.worldometers.info\/\">worldometers<\/a>\u304b\u3089\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Web\u30b5\u30a4\u30c8\u3092\u30b9\u30af\u30e9\u30c3\u30d7\u3057\u305f\u308a\u3001API\u3092\u5229\u7528\u3057\u305f\u308a\u3057\u3066\u3001\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u306f\u4e00\u5b9a\u6642\u9593\u3054\u3068\u306b\u62bd\u51fa\u3057\u3001GridDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002\u4fdd\u5b58\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306f\u3001\u3055\u3089\u306a\u308b\u5206\u6790\u3001\u4e88\u6e2c\u3001\u30ec\u30dd\u30fc\u30c8\u4f5c\u6210\u306a\u3069\u306b\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u958b\u767a<\/h2>\n<p>\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306b\u306fNode.js\u3092\u4f7f\u7528\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<p>\u306a\u305cNode.js\u306a\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<blockquote><p>\n  JavaScript\u306f\u30d5\u30eb\u30b9\u30bf\u30c3\u30af\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306e\u5171\u901a\u8a00\u8a9e\u3067\u3042\u308a\u3001\u5f53\u7136\u306e\u9078\u629e\u3067\u3059\u3002\n<\/p><\/blockquote>\n<p>\u79c1\u305f\u3061\u304c\u4f5c\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306fWebSocket\u30d9\u30fc\u30b9\u3067\u3001Node.js\u306f\u30c7\u30fc\u30bf\u30b9\u30c8\u30ec\u30fc\u30b8\u3068\u3057\u3066GridDB\u3068\u3084\u308a\u3068\u308a\u3057\u3001\u30ef\u30fc\u30eb\u30c9\u30e1\u30fc\u30bf\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8UI\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u51e6\u7406\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a<\/h2>\n<p>\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u4f5c\u6210\u306b\u306fReact.js\u3092\u4f7f\u7528\u3057\u3001\u4e16\u754c\u4eba\u53e3\u30c7\u30fc\u30bf\u3092\u8996\u899a\u7684\u306b\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u3001\u5f37\u529b\u306a\u5730\u56f3\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308bMapbox GL JS\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3088\u308a\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u3067\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u53ef\u80fd\u306a\u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Mapbox GL JS\u3092React\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u7d71\u5408\u3057\u3066\u3001\u4eba\u53e3\u30c7\u30fc\u30bf\u3092\u8868\u3059\u30e9\u30d9\u30eb\u3092\u6301\u3064\u4e16\u754c\u5730\u56f3\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u524d\u306b\u3001\u958b\u767a\u7528\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3068\u30c4\u30fc\u30eb\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001WSL 2 on Windows 11\u306eOS\u306bUbuntu 20.04\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote><p>\n  WSL\u306fWindows 10\u306e\u30d0\u30fc\u30b8\u30e7\u30f32004\u4ee5\u4e0a\uff08Build 19041\u4ee5\u4e0a\uff09\u306e\u307f\u3067\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002WSL\u306e\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3053\u3061\u3089\u306e<a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/wsl\/install\">link<\/a>\u306b\u9032\u3093\u3067\u304f\u3060\u3055\u3044\u3002\n<\/p><\/blockquote>\n<h2>GridDB<\/h2>\n<p><a href=\"https:\/\/griddb.net\/en\/\">GridDB<\/a>\u2122\u306f\u3001IoT\u3084\u30d3\u30c3\u30b0\u30c7\u30fc\u30bf\u306b\u6700\u9069\u5316\u3055\u308c\u305f\u3001\u62e1\u5f35\u6027\u306e\u9ad8\u3044\u30a4\u30f3\u30e1\u30e2\u30eaNoSQL\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u3002\u6ce8\u76ee\u3059\u3079\u304d\u306f\u30012\u7a2e\u985e\u306e\u30b3\u30f3\u30c6\u30ca\u30fb\u30ab\u30c6\u30b4\u30ea\u30fc\u3092\u5099\u3048\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<h3>\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30b3\u30f3\u30c6\u30ca<\/h3>\n<p>\u3053\u306e\u30bf\u30a4\u30d7\u306e\u30b3\u30f3\u30c6\u30ca\u306f\u3001\u5f93\u6765\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30fb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4f3c\u3066\u3044\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306f\u30ad\u30fc\u5024\u3068\u3057\u3066\u4fdd\u5b58\u3055\u308c\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30b3\u30f3\u30c6\u30ca\u306f\u57fa\u672c\u7684\u306aCRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u53d6\u308a\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u64cd\u4f5c\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<h3>\u6642\u7cfb\u5217\u30b3\u30f3\u30c6\u30ca<\/h3>\n<p>\u3053\u306e\u30b3\u30f3\u30c6\u30ca\u306f\u3001\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\uff08\u6642\u9593\u306b\u3088\u3063\u3066\u7d22\u5f15\u4ed8\u3051\u3055\u308c\u305f\u4e00\u9023\u306e\u30c7\u30fc\u30bf\u30dd\u30a4\u30f3\u30c8\uff09\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u7279\u5225\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002TimeSeries \u30b3\u30f3\u30c6\u30ca\u5185\u306e\u5404\u30ec\u30b3\u30fc\u30c9\u306f\u3001\u4e00\u610f\u306a\u30ad\u30fc\u3068\u306a\u308b\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u6301\u3061\u3001\u3053\u306e\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30c7\u30fc\u30bf\u306f\u3001\u8981\u6c42\u304c\u3042\u308c\u3070\u524a\u9664\u3059\u308b\u4ee5\u5916\u306f\u300c\u8ffd\u8a18\u306e\u307f\u300d\u3067\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>WSL\u306bGridDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u3044\u304f\u3064\u304b\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u26a0\ufe0f GridDB \u306e deb \u30d1\u30c3\u30b1\u30fc\u30b8\u306f <code>systemd<\/code> \u3092\u4f7f\u7528\u3057\u307e\u3059\u304c\u3001WSL 2 Windows 11 \u4e0a\u306e Ubuntu 20.04 \u306f <code>SysVinit<\/code> \u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u3001Ubuntu WSL \u3067\u306f <code>\/etc\/wsl.conf<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3066\u3001<code>systemd<\/code> \u3092\u6709\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff08\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u4f5c\u6210\u3057\u307e\u3059\uff09\u3002<\/p>\n<p>Ubuntu\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u5185\u90e8\u3067\u3001<code>\/etc\/wsl.conf<\/code><sup id=\"fnref-1\"><a href=\"#fn-1\" rel=\"footnote\">1<\/a><\/sup>\u306b\u4ee5\u4e0b\u306e\u4fee\u6b63\u3092\u52a0\u3048\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">[boot]\nsystemd=true<\/code><\/pre>\n<\/div>\n<p>Windows\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067wsl\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code>wsl --shutdown<\/code><\/pre>\n<\/div>\n<p>\u305d\u306e\u5f8c\u3001\u30b3\u30de\u30f3\u30c9\u3067\u518d\u3073wsl\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code>wsl<\/code><\/pre>\n<\/div>\n<p>GridDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001<a href=\"https:\/\/docs.griddb.net\/jp\/installation\/ubuntu.html\">https:\/\/docs.griddb.net\/ja\/latest\/gettingstarted\/using-apt\/#apt-get\u3066\u3099\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a>\u306e\u624b\u9806\u306b\u5f93\u3044\u307e\u3059\u3002<\/p>\n<p>GridDB\u3092\u8d77\u52d5\u3057\u3001\u30b5\u30fc\u30d3\u30b9\u304c\u7a3c\u50cd\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code>sudo systemctl status gridstore<\/code><\/pre>\n<\/div>\n<p>\u305d\u3057\u3066\u3001\u554f\u984c\u304c\u306a\u3051\u308c\u3070\u3001\u3053\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">\u25cf gridstore.service - GridDB database server.\n     Loaded: loaded (\/lib\/systemd\/system\/gridstore.service; enabled; vendor preset: enabled)\n     Active: active (running) since Thu 2023-03-16 18:56:13 +07; 58min ago\n    Process: 314 ExecStart=\/usr\/griddb\/bin\/gridstore start (code=exited, status=0\/SUCCESS)\n   Main PID: 393 (gsserver)\n      Tasks: 34 (limit: 4605)\n     Memory: 138.5M\n        CPU: 20.129s\n     CGroup: \/system.slice\/gridstore.service\n             \u2514\u2500393 \/usr\/bin\/gsserver --conf \/var\/lib\/gridstore\/conf\n\nMar 16 18:56:10 GenAI systemd[1]: Starting GridDB database server....\nMar 16 18:56:10 GenAI gridstore[314]: Starting gridstore service:\nMar 16 18:56:13 GenAI gridstore[392]: ..\nMar 16 18:56:13 GenAI gridstore[392]: Started node.\nMar 16 18:56:13 GenAI gridstore[314]: [ OK ]\nMar 16 18:56:13 GenAI systemd[1]: Started GridDB database server..<\/code><\/pre>\n<\/div>\n<p>OS\u3092\u518d\u8d77\u52d5\u3059\u308b\u305f\u3073\u306bGridDB\u304c\u8d77\u52d5\u3059\u308b\u306e\u3067\u3001\u624b\u52d5\u3067\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h2>Node.js<\/h2>\n<p>Node.js LTS\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<sup id=\"fnref-2\"><a href=\"#fn-2\" rel=\"footnote\">2<\/a><\/sup>\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">curl -fsSL https:\/\/deb.nodesource.com\/setup_18.x | sudo -E bash - &&\nsudo apt-get install -y nodejs<\/code><\/pre>\n<\/div>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068GridDB\u306e\u63a5\u7d9a\u306b\u306f<a href=\"https:\/\/github.com\/griddb\/node-api\">griddb node-api<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3059\u304c\u3001\u305d\u306e\u524d\u306b<a href=\"https:\/\/github.com\/griddb\/c_client\">griddb c client<\/a>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002GridDB C Client\u306f\u3001GridDB\u306eC\u8a00\u8a9e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">wget https:\/\/github.com\/griddb\/c_client\/releases\/download\/v5.0.0\/griddb-c-client_5.0.0_amd64.deb\nsudo dpkg -i griddb-c-client_5.0.0_amd64.deb<\/code><\/pre>\n<\/div>\n<h3>GridDB node-api<\/h3>\n<p>Node.js\u304b\u3089GridDB\u306b\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001<code>griddb-node-api<\/code>\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306fnode-addon-api\u3092\u4f7f\u3063\u3066\u30d3\u30eb\u30c9\u3055\u308c\u3066\u304a\u308a\u30012\u3064\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>1.  \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3002\u3053\u306e\u65b9\u6cd5\u306f\u3001\u7279\u5b9a\u306enode.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067griddb-node-api\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001\u6b63\u3057\u3044\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">git clone git@github.com:griddb\/node-api.git\ncd node-api\nnpm install<\/code><\/pre>\n<\/div>\n<p>\u3053\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305f\u5834\u5408\u306f\u3001<\/p>\n<div class=\"clipboard\">\n<pre><code>gyp ERR! stack Error: not found: make<\/code><\/pre>\n<\/div>\n<p>Ubuntu\u306e<code>build-essentials<\/code>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002\u3059\u3079\u3066\u304c\u6210\u529f\u3059\u308c\u3070\u3001<code>griddb.node<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u305d\u308c\u3092<code>NODE_PATH<\/code>\u306b\u542b\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code>export NODE_PATH=$(pwd)<\/code><\/pre>\n<\/div>\n<p>2.  npm \u30d1\u30c3\u30b1\u30fc\u30b8 <code>griddb-node-api<\/code> \u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u76f4\u63a5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code>npm install griddb-node-api<\/code><\/pre>\n<\/div>\n<p>\u4eca\u56de\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u3088\u308a\u30b7\u30f3\u30d7\u30eb\u306a\u306e\u30672\u756a\u76ee\u306e\u65b9\u6cd5\u3067\u3001Node 18 LTS\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2>VSCode<\/h2>\n<p>\u524d\u8ff0\u306e\u901a\u308a\u3001OS\u306fUbuntu 20.04\u3092WSL Windows 11\u4e0a\u3067\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002Windows\u304b\u3089\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u5834\u5408\u306f\u3001Visual Studio Code\u306e<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-vscode-remote.remote-wsl\">remote WSL plugin<\/a>\u304c\u5145\u5b9f\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u308c\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/en\/wp-content\/uploads\/2023\/03\/vscode-remote.png\"><img decoding=\"async\" src=\"https:\/\/griddb.net\/en\/wp-content\/uploads\/2023\/03\/vscode-remote.png\" alt=\"\" width=\"1920\" height=\"1080\" class=\"aligncenter size-full wp-image-29512\" srcset=\"\/wp-content\/uploads\/2023\/03\/vscode-remote.png 1920w, \/wp-content\/uploads\/2023\/03\/vscode-remote-300x169.png 300w, \/wp-content\/uploads\/2023\/03\/vscode-remote-1024x576.png 1024w, \/wp-content\/uploads\/2023\/03\/vscode-remote-768x432.png 768w, \/wp-content\/uploads\/2023\/03\/vscode-remote-1536x864.png 1536w, \/wp-content\/uploads\/2023\/03\/vscode-remote-150x85.png 150w, \/wp-content\/uploads\/2023\/03\/vscode-remote-600x338.png 600w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a><\/p>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u81ea\u4f53\u3092\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u524d\u306b\u9577\u3044\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304c\u5fc5\u8981\u3067\u3059\u304c\u3001\u958b\u767a\u74b0\u5883\u3092\u900f\u660e\u5316\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u3053\u3068\u3067\u3059\u3002<\/p>\n<h2>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u69cb\u6210\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/h2>\n<p>npm\u306e\u4ee3\u308f\u308a\u306b<code>pnpm<\/code>\u3092\u4f7f\u3046\u306e\u306f\u3001<code>pnpm<\/code>\u304c\u30b9\u30c8\u30ec\u30fc\u30b8\u52b9\u7387\u304c\u3088\u304f\u3001\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30b3\u30fc\u30c9\u3092\u4fdd\u6301\u3059\u308bmonorepo\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><code>pnpm<\/code>\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f\u3001Node.js\u306e<code>corepack<\/code>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code>corepack prepare pnpm@7.30.0 --activate<\/code><\/pre>\n<\/div>\n<p>\u306a\u305cmonorepo\u306a\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<blockquote><p>\n  \u5c06\u6765\u306e\u958b\u767a\u306b\u6709\u5229\u3060\u304b\u3089\u3067\u3059\u3002\u3082\u3057\u3001\u5225\u306e\u5354\u529b\u8005\u3092\u8ffd\u52a0\u3057\u305f\u3044\u5834\u5408\u3001\u8ab0\u3082\u304c\u540c\u3058\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3067\u4f5c\u696d\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\n<\/p><\/blockquote>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u958b\u59cb\u3059\u308b\u306b\u306f\u3001monorepo\u7528\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">mkdir world-population\ncd world-population\npnpm init<\/code><\/pre>\n<\/div>\n<p>\u6b21\u306b\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30fc\u30c9\u3092\u683c\u7d0d\u3059\u308b <code>packages<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30b3\u30fc\u30c9\u306f <code>data-server<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b3\u30fc\u30c9\u306f <code>client<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">mkdir packages\nmkdir packages\/data-server\nmkdir packages\/client<\/code><\/pre>\n<\/div>\n<p><code>pnpm<\/code> \u306f <code>pnpm-workspaces.yaml<\/code> \u304b\u3089\u8a2d\u5b9a\u3092\u8aad\u307f\u8fbc\u3093\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3092\u6271\u3046\u306e\u3067\u3001\u305d\u308c\u3092\u4f5c\u6210\u3057\u3066\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8a18\u5165\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\"># pnpm-workspaces.yaml\npackages:\n  # all packages in direct subdirs of packages\/\n  - \"packages\/*<\/code><\/pre>\n<\/div>\n<p>\u3053\u306e\u30c4\u30ea\u30fc\u69cb\u9020\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u30b5\u30fc\u30d0\u30fc\u306e\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u304c\u5206\u304b\u308c\u3066\u3044\u308bNode.js\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u5178\u578b\u7684\u306b\u898b\u3089\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002monorepo\u5185\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3057\u3066\u6574\u7406\u3055\u308c\u3001<code>pnpm<\/code>\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3067\u7ba1\u7406\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">.\n\u251c\u2500\u2500 .gitignore\n\u251c\u2500\u2500 package.json\n\u251c\u2500\u2500 packages\n\u2502   \u251c\u2500\u2500 data-server\n\u2502   \u2514\u2500\u2500 client\n\u2514\u2500\u2500 pnpm-workspaces.yaml<\/code><\/pre>\n<\/div>\n<h2>\u3055\u3063\u305d\u304f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u307f\u307e\u3057\u3087\u3046<\/h2>\n<p>\u307e\u305a\u3001\u30b5\u30fc\u30d0\u30fc\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u521d\u671f\u5316\u3057\u3001\u4e3b\u8981\u306anpm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">cd packages\/data-server\npnpm init\ncd ..\/..\/\npnpm --filter data-server install griddb-node-api express ws puppeteer<\/code><\/pre>\n<\/div>\n<h3>\u30c7\u30fc\u30bf\u62bd\u51fa<\/h3>\n<p>\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001Worldometers\u306e\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote><p>\n  Worldometers\u306f\u3001\u4e16\u754c\u306e\u4eba\u53e3\u3001\u653f\u5e9c\u3068\u7d4c\u6e08\u3001\u793e\u4f1a\u3068\u30e1\u30c7\u30a3\u30a2\u3001\u74b0\u5883\u3001\u98df\u6599\u3001\u6c34\u3001\u30a8\u30cd\u30eb\u30ae\u30fc\u3001\u5065\u5eb7\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u30c8\u30d4\u30c3\u30af\u306b\u3064\u3044\u3066\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u7d71\u8a08\u3092\u63d0\u4f9b\u3059\u308b\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3067\u3059\u3002\n<\/p><\/blockquote>\n<p>\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\uff1a<\/p>\n<ol>\n<li>API\u3092\u5229\u7528\u3059\u308b<\/li>\n<li>\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0<\/li>\n<\/ol>\n<p>\u6b8b\u5ff5\u306a\u304c\u3089\u3001Worldometers\u306fAPI\u3092\u63d0\u4f9b\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u6700\u5f8c\u306e\u9078\u629e\u80a2\u306f\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u6ce8\u610f\u70b9\u3068\u3057\u3066\u306f\u3001Worldometers\u306f\u52d5\u7684\u306a\u30c7\u30fc\u30bf\u3001\u3064\u307e\u308a\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u30c7\u30fc\u30bf\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u3002Cheerio\u306e\u3088\u3046\u306aJavaScript\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30c7\u30fc\u30bf\u62bd\u51fa\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u3053\u306e\u3088\u3046\u306a\u52d5\u7684\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001Puppeteer\u3092\u4f7f\u7528\u3059\u308b\u306e\u304c\u30d9\u30b9\u30c8\u306a\u9078\u629e\u3067\u3059\u3002<\/p>\n<blockquote><p>\n  Puppeteer\u306f\u3001\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u305f\u3081\u306b\u30d8\u30c3\u30c9\u30ec\u30b9\u30d6\u30e9\u30a6\u30b6\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8d77\u52d5\u3059\u308b\u305f\u3081\u3001\u3088\u308a\u30ea\u30bd\u30fc\u30b9\u3092\u6d88\u8cbb\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u3084\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u306e\u51e6\u7406\u306a\u3069\u3001\u3088\u308a\u591a\u304f\u306e\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n<\/p><\/blockquote>\n<p>2\u3064\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8URL\u304b\u3089\u30c7\u30fc\u30bf\u304c\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002\u3072\u3068\u3064\u306f\u4e16\u754c\u306e\u7dcf\u4eba\u53e3\u3001\u3082\u3046\u3072\u3068\u3064\u306f\u56fd\u5225\u306e\u4e16\u754c\u7dcf\u4eba\u53e3\u3067\u3059\u3002<\/p>\n<ul>\n<li>https:\/\/www.worldometers.info\/world-population\/<\/li>\n<li>https:\/\/www.worldometers.info\/world-population\/population-by-country\/<\/li>\n<\/ul>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">const worldPopDataSource = \"https:\/\/www.worldometers.info\/world-population\/\";\n\/**\n * fetch world population data\n *\/\nconst fetchWorldPopulationData = async () => {\n  const browser = await puppeteer.launch();\n  const page = await browser.newPage();\n\n  await page.goto(worldPopDataSource);\n\n  const extractData = async () => {\n    \/\/ Extract data from the page\n    const data = await page.evaluate(() => {\n      const populationElement = document.querySelector(\".rts-counter\");\n      const population = populationElement.textContent.replace(\/[ns]+\/g, \"\");\n      return { population };\n    });\n\n    return data;\n  };\n\n  const popData = await extractData();\n  await browser.close();\n\n  return popData;\n};<\/code><\/pre>\n<\/div>\n<p><code>fetchWorldPopulationData<\/code>\u95a2\u6570\u304c\u8fd4\u3059\u30c7\u30fc\u30bf\u306f\u3001\u5358\u306a\u308bJavaScript\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">{\n  type: 'worldPopulationData',\n  worldPopulation: {\n    population: '8,022,758,957',\n    timestamp: 1679222700112\n  }\n}<\/code><\/pre>\n<\/div>\n<p>\u56fd\u5225\u306e\u4e16\u754c\u4eba\u53e3\u3092\u30c7\u30fc\u30bf\u62bd\u51fa\u3059\u308b\u30b3\u30fc\u30c9\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u51fa\u529b\u306f\u914d\u5217\u3067\u3001\u30ad\u30fc\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\uff1a<code>country<\/code> <code>coordinate<\/code> <code>population<\/code> \u3092\u30ad\u30fc\u3068\u3059\u308b\u914d\u5217\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/en\/wp-content\/uploads\/2023\/03\/world-pop-by-country.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/griddb.net\/en\/wp-content\/uploads\/2023\/03\/world-pop-by-country.png\" alt=\"\" width=\"1088\" height=\"612\" class=\"aligncenter size-full wp-image-29514\" srcset=\"\/wp-content\/uploads\/2023\/03\/world-pop-by-country.png 1088w, \/wp-content\/uploads\/2023\/03\/world-pop-by-country-300x169.png 300w, \/wp-content\/uploads\/2023\/03\/world-pop-by-country-1024x576.png 1024w, \/wp-content\/uploads\/2023\/03\/world-pop-by-country-768x432.png 768w, \/wp-content\/uploads\/2023\/03\/world-pop-by-country-150x85.png 150w, \/wp-content\/uploads\/2023\/03\/world-pop-by-country-600x338.png 600w\" sizes=\"(max-width: 1088px) 100vw, 1088px\" \/><\/a><\/p>\n<h2>\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2<\/h2>\n<p>\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306b\u3001\u6642\u7cfb\u5217\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u4ed6\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u540c\u69d8\u306b\u3001\u307e\u305a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002GridDB\u3067\u306f\u3001\u30af\u30e9\u30b9\u30bf\u306b\u63a5\u7d9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30b9\u30bf\u306e\u69cb\u6210\u306f\u3001\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code>\/var\/lib\/gridstore\/conf\/gs_cluster.json<\/code><\/pre>\n<\/div>\n<p>\u305d\u3057\u3066\u3001\u305d\u3053\u306b\u3044\u304f\u3064\u304b\u306e\u30dd\u30fc\u30c8\u304c\u3042\u308b\u306e\u3067\u3001\u30b3\u30fc\u30c9\u306b\u5165\u308c\u305f\u30dd\u30fc\u30c8\u304c\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u30ad\u30fc\u306e\u5024\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">const initStore = async () => {\n  const factory = griddb.StoreFactory.getInstance();\n  try {\n    \/\/ Connect to GridDB Cluster\n    const store = await factory.getStore({\n      host: \"127.0.0.1\",\n      port: 10001,\n      clusterName: \"myCluster\",\n      username: \"admin\",\n      password: \"admin\",\n    });\n    return store;\n  } catch (e) {\n    throw e;\n  }\n};<\/code><\/pre>\n<\/div>\n<p>\u305d\u306e\u5f8c\u3001\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<code>initContainer()<\/code>\u95a2\u6570\u306f\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u30ab\u30e9\u30e0\u540d\u3084\u30c7\u30fc\u30bf\u578b\u306a\u3069\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u30b9\u30ad\u30fc\u30de\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">function initContainer() {\n  const conInfo = new griddb.ContainerInfo({\n    name: containerName,\n    columnInfoList: [\n      [\"timestamp\", griddb.Type.TIMESTAMP],\n      [\"value\", griddb.Type.DOUBLE],\n    ],\n    type: griddb.ContainerType.TIME_SERIES,\n  });\n\n  return conInfo;\n}<\/code><\/pre>\n<\/div>\n<p>\u306a\u304a\u3001<code>initContainer()<\/code>\u95a2\u6570\u306f\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3057\u307e\u305b\u3093\u3002\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001GridDB API\u304c\u63d0\u4f9b\u3059\u308b <code>putContainer()<\/code> \u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">async function createContainer(store, conInfo) {\n  try {\n    const timeSeriesDB = await store.putContainer(conInfo);\n    return timeSeriesDB;\n  } catch (err) {\n    console.error(err);\n    throw err;\n  }\n}<\/code><\/pre>\n<\/div>\n<h3>\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u65b9\u6cd5<\/h3>\n<p>\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u306f\u3068\u3066\u3082\u7c21\u5358\u3067\u3059\u3002\u307e\u305a\u3001\u30b3\u30f3\u30c6\u30ca\u63a5\u7d9a\u3092\u53d6\u5f97\u3057\u3001\u6b21\u306b <code>put()<\/code> \u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u3092GridDB\u30b3\u30f3\u30c6\u30ca\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code>db.put(data);<\/code><\/pre>\n<\/div>\n<p><code>db<\/code>\u306f<code>createConnection()<\/code> \u95a2\u6570\u304b\u3089\u8fd4\u3055\u308c\u308b\u63a5\u7d9a\u53c2\u7167\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u6ce8\u610f\u3059\u3079\u304d\u91cd\u8981\u306a\u70b9\u306f\u3001\u30c7\u30fc\u30bf\u3092\u5b9a\u671f\u7684\u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u3092\u884c\u3046\u6700\u3082\u7c21\u5358\u306a\u65b9\u6cd5\u306f\u3001JavaScript\u306e\u30cd\u30a4\u30c6\u30a3\u30d6\u95a2\u6570\u3067\u3042\u308b <code>setInterval()<\/code> \u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">function updateClientsWithWorldPopulationDataPeriodically(clients) {\n  updateClientsWithWorldPopulationData(clients);\n  setTimeout(\n    () => updateClientsWithWorldPopulationDataPeriodically(clients),\n    worldDataUpdateTime\n  );\n}\n\n\/\/ Call the function to start the periodic updates\nupdateClientsWithWorldPopulationDataPeriodically(wss.clients);<\/code><\/pre>\n<\/div>\n<p>\u30c7\u30fc\u30bf\u62bd\u51fa\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u6642\u9593\u306f\u3001\u5909\u6570 <code>worldDataUpdateTime<\/code> \u3067\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u30015\u79d2\u3067\u3059\u3002\u3064\u307e\u308a\u30015\u79d2\u3054\u3068\u306b\u30c7\u30fc\u30bf\u3092\u66f4\u65b0\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>GridDB\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080<\/h2>\n<p>GridDB\u306fSQL\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u751f\u306eSQL\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<code>query()<\/code>\u3068<code>fetch()<\/code>\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001SQL\u30af\u30a8\u30ea\u306b\u57fa\u3065\u3044\u305f\u30c7\u30fc\u30bf\u3092\u7c21\u5358\u306b\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">async function queryAll(db) {\n  const query = db.query(\n    `SELECT * FROM ${containerName} ORDER BY timestamp DESC LIMIT 1`\n  );\n\n  try {\n    const rowset = await query.fetch();\n    const results = [];\n\n    while (rowset.hasNext()) {\n      const row = rowset.next();\n      const rowData = { timestamp: `${row[0]}`, population: row[1] };\n      results.push(rowData);\n    }\n\n    return results;\n  } catch (err) {\n    console.log(err);\n    throw err;\n  }\n}<\/code><\/pre>\n<\/div>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u76ee\u7684\u306e\u305f\u3081\u306b\u306f\u3001\u6700\u65b0\u306e\u30c7\u30fc\u30bf\u3092\u6700\u65b0\u306e\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3067\u8868\u793a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306bSQL\u30af\u30a8\u30ea\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">sql\nSELECT * FROM [containerName] ORDER BY timestamp DESC LIMIT 1<\/code><\/pre>\n<\/div>\n<h2>\u30a6\u30a7\u30d6\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u30c7\u30fc\u30bf\u3092\u914d\u4fe1\u3059\u308b<\/h2>\n<p>React\u3068Mapbox\u3067\u69cb\u7bc9\u3055\u308c\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306eWeb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u30c7\u30fc\u30bf\u3092\u914d\u4fe1\u3059\u308b\u305f\u3081\u306bWebSocket\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><em>\u306a\u305c WebSocket \u3092\u4f7f\u3046\u306e\u304b?<\/em><\/p>\n<blockquote><p>\n  WebSocket\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u30b5\u30fc\u30d0\u30fc\u9593\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306a\u53cc\u65b9\u5411\u901a\u4fe1\u3092\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u3001\u96c6\u4e2d\u7684\u306a\u30c7\u30fc\u30bf\u5229\u7528\u3092\u5fc5\u8981\u3068\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6700\u9069\u306a\u9078\u629e\u3067\u3059\u3002WebSocket\u306f\u52b9\u7387\u7684\u306a\u30c7\u30fc\u30bf\u8ee2\u9001\u3092\u53ef\u80fd\u306b\u3057\u3001\u5f85\u3061\u6642\u9593\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u7d99\u7d9a\u7684\u306a\u66f4\u65b0\u3068\u8fc5\u901f\u306a\u5fdc\u7b54\u304c\u91cd\u8981\u306a\u30c7\u30fc\u30bf\u96c6\u7d04\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u4e0d\u53ef\u6b20\u3067\u3059\u3002\n<\/p><\/blockquote>\n<p>\u3053\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u30b3\u30fc\u30c9\u3067\u306f\u3001\u4e16\u754c\u4eba\u53e3\u306e\u30c7\u30fc\u30bf\u3092GridDB\u306b\u4fdd\u5b58\u3057\u3066\u7167\u4f1a\u3057\u3001WebSocket <code>ws<\/code>\u3092\u4ecb\u3057\u3066Web\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u9001\u4fe1\u3057\u3066\u3044\u308b\u69d8\u5b50\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">const worldPopData = [worldPopulation.timestamp, worldPopulation.population];\nawait GridDB.insert(worldPopData, timeSeriesDb);\n\nconst result = await GridDB.queryAll(timeSeriesDb);\n\nconst jsonArray = result.map((item) => {\n  return {\n    timestamp: item.timestamp.toString(),\n    population: item.population,\n  };\n});\n\n\/\/ client is WebSocket client\nclients.forEach((client) => {\n  if (client.readyState === WebSocket.OPEN) {\n    try {\n      client.send(JSON.stringify(jsonArray));\n    } catch (error) {\n      console.error(\"Error sending data to client:\", error);\n    }\n  }\n});<\/code><\/pre>\n<\/div>\n<p>\u4eca\u56de\u306f\u3001WebSocket\u306b<a href=\"https:\/\/github.com\/websockets\/ws\">ws<\/a>\u3001HTTP\u30b5\u30fc\u30d0\u30fc\u306b<a href=\"http:\/\/expressjs.com\/\">express.js<\/a>\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30a6\u30a7\u30d6\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 React + Mapbox GL JS<\/h2>\n<p>\u73fe\u5728\u3001React\u30d9\u30fc\u30b9\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u306f\u975e\u5e38\u306b\u591a\u304f\u5b58\u5728\u3057\u307e\u3059\u3002<a href=\"https:\/\/vitejs.dev\/\">Vite<\/a>\u306f\u3001\u6b21\u4e16\u4ee3\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30c4\u30fc\u30eb\u3067\u3059\u3002\u5f37\u5316\u3055\u308c\u305f\u30b9\u30d4\u30fc\u30c9\u3092\u63d0\u4f9b\u3057\u3001ESM\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001React\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002\u5091\u51fa\u3057\u305f\u9078\u629e\u80a2\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Vite\u3092\u4f7f\u3063\u3066\u65b0\u3057\u3044\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">pnpm create vite\ncd client\npnpm install<\/code><\/pre>\n<\/div>\n<p>\u30b3\u30de\u30f3\u30c9\u306f\u3044\u304f\u3064\u304b\u306e\u8cea\u554f\u3092\u3059\u308b\u306e\u3067\u3001JavaScript\u3068React\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002Web\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u3001<code>packages\/client<\/code>\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306b\u751f\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u69cb\u6210\u3067\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">.\n\u251c\u2500\u2500 index.html\n\u251c\u2500\u2500 node_modules\n\u251c\u2500\u2500 package.json\n\u251c\u2500\u2500 pnpm-lock.yaml\n\u251c\u2500\u2500 public\n\u2502   \u2514\u2500\u2500 vite.svg\n\u251c\u2500\u2500 src\n\u2502   \u251c\u2500\u2500 App.css\n\u2502   \u251c\u2500\u2500 App.jsx\n\u2502   \u251c\u2500\u2500 assets\n\u2502   \u2502   \u2514\u2500\u2500 react.svg\n\u2502   \u251c\u2500\u2500 index.css\n\u2502   \u2514\u2500\u2500 main.jsx\n\u2514\u2500\u2500 vite.config.js<\/code><\/pre>\n<\/div>\n<p>Vite\u3067\u4f5c\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3001<code>App.jsx<\/code>\u3068<code>index.css<\/code>\u30d5\u30a1\u30a4\u30eb\u4ee5\u5916\u306f\u3042\u307e\u308a\u5909\u66f4\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><code>App.jsx<\/code>\u306fMapbox\u7528\u306ereact\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068UI\u3092\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u5834\u6240\u3067\u3059\u3002\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f2\u3064\u3060\u3051\u3067\u3059\u3002\u4e00\u3064\u306f\u4e16\u754c\u306e\u7dcf\u4eba\u53e3\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e <code>sidebar<\/code> \u3067\u3001\u3082\u3046\u4e00\u3064\u306f\u4e16\u754c\u5730\u56f3\u3092\u8868\u793a\u3057\u3066\u5404\u56fd\u306e\u7dcf\u4eba\u53e3\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e <code>map-container<\/code> \u3067\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\"><div className=\"App\">\n  <div className=\"sidebar\">World Population: {worldPopulation}<\/div>\n  <div ref=\"{mapContainer}\" className=\"map-container\" \/>\n<\/div><\/code><\/pre>\n<\/div>\n<h3>Mapbox GL JS<\/h3>\n<p><a href=\"https:\/\/www.mapbox.com\/mapbox-gljs\">Mapbox GL JS<\/a> \u306f\u3001\u30a6\u30a7\u30d6\u4e0a\u306e\u30d9\u30af\u30bf\u30fc\u30de\u30c3\u30d7\u7528\u306e JavaScript \u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002\u305d\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u6a5f\u80fd\u306f\u3001\u9ad8\u901f\u3067\u6ca1\u5165\u611f\u306e\u3042\u308b\u30a6\u30a7\u30d6\u30de\u30c3\u30d7\u3092\u69cb\u7bc9\u3059\u308b\u3059\u3079\u3066\u306e\u4eba\u306e\u305f\u3081\u306e\u30d0\u30fc\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>Mapbox GL JS \u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code>pnpm install mapbox-gl<\/code><\/pre>\n<\/div>\n<p>\u6700\u8fd1\u306e\u30d6\u30e9\u30a6\u30b6\u306f\u3059\u3067\u306bWebSocket\u3092\u30cd\u30a4\u30c6\u30a3\u30d6\u306b\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u306e\u3067\u3001WebSocket\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u8ffd\u52a0\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">const ws = new WebSocket(\"ws:\/\/localhost:3000\");\nsetSocket(ws);<\/code><\/pre>\n<\/div>\n<p>\u307e\u305f\u3001\u4e16\u754c\u4eba\u53e3\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001<code>message<\/code>\u30a4\u30d9\u30f3\u30c8\u3092\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">ws.addEventListener(\"message\", (event) => {\n  const data = JSON.parse(event.data);\n\n  if (data[0].country) {\n    console.log(\"country\", data);\n    updateLabels(data);\n  } else {\n    setWorldPopulation(data[0].population);\n  }\n});<\/code><\/pre>\n<\/div>\n<p><code>updateLabels(data)<\/code> \u95a2\u6570\u306f\u3001\u4e16\u754c\u4eba\u53e3\u4e0a\u4f4d10\u4f4d\u307e\u3067\u306e\u3059\u3079\u3066\u306e\u56fd\u306e\u30e9\u30d9\u30eb\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/en\/wp-content\/uploads\/2023\/03\/country-map-label.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/griddb.net\/en\/wp-content\/uploads\/2023\/03\/country-map-label.png\" alt=\"\" width=\"760\" height=\"428\" class=\"aligncenter size-full wp-image-29516\" srcset=\"\/wp-content\/uploads\/2023\/03\/country-map-label.png 760w, \/wp-content\/uploads\/2023\/03\/country-map-label-300x169.png 300w, \/wp-content\/uploads\/2023\/03\/country-map-label-150x85.png 150w, \/wp-content\/uploads\/2023\/03\/country-map-label-600x338.png 600w\" sizes=\"(max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<h3>React<\/h3>\n<p>React\u3092\u4f7f\u3048\u3070\u3001\u7c21\u5358\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u4f5c\u6210\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/en\/wp-content\/uploads\/2023\/03\/sidebar.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/griddb.net\/en\/wp-content\/uploads\/2023\/03\/sidebar.png\" alt=\"\" width=\"667\" height=\"71\" class=\"aligncenter size-full wp-image-29520\" srcset=\"\/wp-content\/uploads\/2023\/03\/sidebar.png 667w, \/wp-content\/uploads\/2023\/03\/sidebar-300x32.png 300w, \/wp-content\/uploads\/2023\/03\/sidebar-600x64.png 600w\" sizes=\"(max-width: 667px) 100vw, 667px\" \/><\/a><\/p>\n<p>\u3053\u306eUI\u306f\u3001\u4e16\u754c\u306e\u7dcf\u4eba\u53e3\u3092\u8868\u793a\u3057\u307e\u3059\u3002React \u306e <code>useState<\/code> \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001WebSocket \u304b\u3089\u306e\u30c7\u30fc\u30bf\u66f4\u65b0\u306e\u305f\u3073\u306b\u30c8\u30ea\u30ac\u30fc\u304c\u304b\u304b\u308a\u3001\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">const [worldPopulation, setWorldPopulation] = useState(0);\n\n\/\/...\/\/\n\nws.addEventListener(\"message\", (event) => {\n  const data = JSON.parse(event.data);\n\n  if (data[0].country) {\n    console.log(\"country\", data);\n    updateLabels(data);\n  } else {\n    setWorldPopulation(data[0].population);\n  }\n});<\/code><\/pre>\n<\/div>\n<p>\u6982\u5ff5\u7684\u306b\u306f\u3001\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u7c21\u5358\u305d\u3046\u306b\u898b\u3048\u307e\u3059\u3002\u3057\u304b\u3057\u3001Mapbox\u3001Node.js\u3001GridDB\u3092\u4f7f\u7528\u3057\u3066\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u3092\u8996\u899a\u5316\u3059\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u30e9\u30a4\u30d6\u30c7\u30fc\u30bf\u7d71\u5408\u3068\u30e9\u30a4\u30d6UI\u66f4\u65b0\u3067\u5b9f\u88c5\u3059\u308b\u3053\u3068\u306f\u3001\u3088\u308a\u8907\u96d1\u306a\u8ab2\u984c\u3092\u63d0\u793a\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306e\u5b9f\u4e16\u754c\u7684\u306a\u6027\u8cea\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u52d5\u7684\u306a\u5074\u9762\u304c\u4f55\u91cd\u306b\u3082\u8907\u96d1\u306b\u7d61\u307f\u5408\u3044\u3001\u52b9\u679c\u7684\u306b\u5b9f\u884c\u3059\u308b\u306e\u306f\u81ea\u660e\u306a\u8ab2\u984c\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<div class=\"footnotes\">\n<hr \/>\n<ol>\n<li id=\"fn-1\">\nhttps:\/\/ubuntu.com\/blog\/ubuntu-wsl-enable-systemd\u00a0<a href=\"#fnref-1\" rev=\"footnote\">\u21a9<\/a>\n<\/li>\n<li id=\"fn-2\">\nhttps:\/\/github.com\/nodesource\/distribution\u00a0<a href=\"#fnref-2\" rev=\"footnote\">\u21a9<\/a>\n<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u79c1\u305f\u3061\u306f\u4f55\u3092\u4f5c\u308b\u306e\u304b\uff1f \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u30a6\u30a7\u30d6\u30d9\u30fc\u30b9\u306e\u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306fworldometers \u304b\u3089\u62bd\u51fa\u3057\u3001React\u3001Mapbox GL JS\u3001Node.js\u3001Grid [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":49526,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1005],"tags":[],"class_list":["post-50853","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1005"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Mapbox\u3001Node.js\u3001GridDB\u306b\u3088\u308b\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316 | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"\u79c1\u305f\u3061\u306f\u4f55\u3092\u4f5c\u308b\u306e\u304b\uff1f \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u30a6\u30a7\u30d6\u30d9\u30fc\u30b9\u306e\u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306fworldometers\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mapbox\u3001Node.js\u3001GridDB\u306b\u3088\u308b\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316 | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"\u79c1\u305f\u3061\u306f\u4f55\u3092\u4f5c\u308b\u306e\u304b\uff1f \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u30a6\u30a7\u30d6\u30d9\u30fc\u30b9\u306e\u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306fworldometers\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-01T07:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-30T20:21:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/griddb.net\/wp-content\/uploads\/2023\/03\/world-map.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"974\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"griddb-admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"griddb-admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"5\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/\"},\"author\":{\"name\":\"griddb-admin\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\"},\"headline\":\"Mapbox\u3001Node.js\u3001GridDB\u306b\u3088\u308b\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316\",\"datePublished\":\"2023-04-01T07:00:00+00:00\",\"dateModified\":\"2026-03-30T20:21:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/\"},\"wordCount\":230,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2023\/03\/world-map.png\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/\",\"url\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/\",\"name\":\"Mapbox\u3001Node.js\u3001GridDB\u306b\u3088\u308b\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316 | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2023\/03\/world-map.png\",\"datePublished\":\"2023-04-01T07:00:00+00:00\",\"dateModified\":\"2026-03-30T20:21:13+00:00\",\"description\":\"\u79c1\u305f\u3061\u306f\u4f55\u3092\u4f5c\u308b\u306e\u304b\uff1f \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u30a6\u30a7\u30d6\u30d9\u30fc\u30b9\u306e\u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306fworldometers\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2023\/03\/world-map.png\",\"contentUrl\":\"\/wp-content\/uploads\/2023\/03\/world-map.png\",\"width\":1920,\"height\":974},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#website\",\"url\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\",\"name\":\"griddb-admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g\",\"caption\":\"griddb-admin\"},\"url\":\"https:\/\/griddb.net\/ja\/author\/griddb-admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mapbox\u3001Node.js\u3001GridDB\u306b\u3088\u308b\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316 | GridDB: Open Source Time Series Database for IoT","description":"\u79c1\u305f\u3061\u306f\u4f55\u3092\u4f5c\u308b\u306e\u304b\uff1f \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u30a6\u30a7\u30d6\u30d9\u30fc\u30b9\u306e\u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306fworldometers","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/","og_locale":"ja_JP","og_type":"article","og_title":"Mapbox\u3001Node.js\u3001GridDB\u306b\u3088\u308b\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316 | GridDB: Open Source Time Series Database for IoT","og_description":"\u79c1\u305f\u3061\u306f\u4f55\u3092\u4f5c\u308b\u306e\u304b\uff1f \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u30a6\u30a7\u30d6\u30d9\u30fc\u30b9\u306e\u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306fworldometers","og_url":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2023-04-01T07:00:00+00:00","article_modified_time":"2026-03-30T20:21:13+00:00","og_image":[{"width":1920,"height":974,"url":"https:\/\/griddb.net\/wp-content\/uploads\/2023\/03\/world-map.png","type":"image\/png"}],"author":"griddb-admin","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"\u57f7\u7b46\u8005":"griddb-admin","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"5\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/#article","isPartOf":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/"},"author":{"name":"griddb-admin","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233"},"headline":"Mapbox\u3001Node.js\u3001GridDB\u306b\u3088\u308b\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316","datePublished":"2023-04-01T07:00:00+00:00","dateModified":"2026-03-30T20:21:13+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/"},"wordCount":230,"commentCount":0,"publisher":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2023\/03\/world-map.png","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/","url":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/","name":"Mapbox\u3001Node.js\u3001GridDB\u306b\u3088\u308b\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316 | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/#primaryimage"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2023\/03\/world-map.png","datePublished":"2023-04-01T07:00:00+00:00","dateModified":"2026-03-30T20:21:13+00:00","description":"\u79c1\u305f\u3061\u306f\u4f55\u3092\u4f5c\u308b\u306e\u304b\uff1f \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u4e16\u754c\u306e\u4eba\u53e3\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u30a6\u30a7\u30d6\u30d9\u30fc\u30b9\u306e\u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306fworldometers","inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/visualize-global-population-data-with-mapbox-node-js-and-griddb\/#primaryimage","url":"\/wp-content\/uploads\/2023\/03\/world-map.png","contentUrl":"\/wp-content\/uploads\/2023\/03\/world-map.png","width":1920,"height":974},{"@type":"WebSite","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#website","url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization","name":"Fixstars","url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233","name":"griddb-admin","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g","caption":"griddb-admin"},"url":"https:\/\/griddb.net\/ja\/author\/griddb-admin\/"}]}},"_links":{"self":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/comments?post=50853"}],"version-history":[{"count":2,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50853\/revisions"}],"predecessor-version":[{"id":55139,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50853\/revisions\/55139"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/media\/49526"}],"wp:attachment":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/media?parent=50853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/categories?post=50853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/tags?post=50853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}