{"id":42347,"date":"2019-02-21T23:00:14","date_gmt":"2019-02-21T14:00:14","guid":{"rendered":"http:\/\/kako.com\/blog\/?p=42347"},"modified":"2019-02-22T09:26:18","modified_gmt":"2019-02-22T00:26:18","slug":"windows-10%e3%81%a7google-maps-geolocation-api%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"http:\/\/kako.com\/blog\/?p=42347","title":{"rendered":"Windows 10\u3067Google Maps Geolocation API\u3092\u4f7f\u3063\u3066\u307f\u308b"},"content":{"rendered":"<p>Windows 10\u3067Google Maps Geolocation API\u3092\u4f7f\u3063\u3066\u307f\u308b\u3002<\/p>\n<p><a href=\"http:\/\/kako.com\/blog\/?p=42339\">Windows 10\u306ecurl<\/a>\u3092\u4f7f\u3063\u305f\u3002<\/p>\n<p><a href=\"http:\/\/www.kako.com\/neta\/2012-015\/2012-015.html\">\u3060\u3044\u3076\u4ee5\u524d\u306b\u3082Google Geolocation API\u3092\u8a66\u3057\u305f\u3053\u3068\u304c\u3042\u308b<\/a>\u306e\u3060\u304c\u3001API\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3063\u305f\u3002<br \/>\nAPI Key\u304c\u5fc5\u9808\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u53d6\u5f97\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3002<br \/>\nGoogle Maps\u306eAPI v1\u306e\u6642\u4ee3\u306bAPI Key\u3092\u53d6\u5f97\u3057\u3066\u3042\u3063\u305f\u306e\u3060\u304c\u3001\u53e4\u3044API Key\u306f\u65b0\u3057\u3044API\u3067\u306f\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u3002(\u3067\u304d\u306a\u304b\u3063\u305f)<\/p>\n<p>\u307e\u305a\u6e96\u5099\u3068\u3057\u3066\u3001API Key\u3092\u53d6\u5f97\u3059\u308b\u3002<br \/>\n\u2192 <a href=\"https:\/\/developers.google.com\/maps\/documentation\/javascript\/get-api-key\">Get API Key \u00a0|\u00a0 Maps JavaScript API \u00a0|\u00a0 Google Developers<\/a><\/p>\n<p>\u82f1\u8a9e\u3060\u304c\u7279\u306b\u96e3\u3057\u3044\u3053\u3068\u306f\u7121\u304b\u3063\u305f\u3002\u4e0a\u8a18\u306eGoogle\u306e\u30da\u30fc\u30b8\u306eGET STARTED\u3068\u3044\u3046\u3068\u3053\u308d\u304b\u3089\u59cb\u3081\u3066\u3001Google Cloud Platform Console\u3068\u3044\u3046\u30b5\u30a4\u30c8\u3067\u30d5\u30a9\u30fc\u30e0\u306b\u60c5\u5831\u3092\u57cb\u3081\u3066\u3044\u3051\u3070API Key\u3092\u53d6\u5f97\u3067\u304d\u308b\u3002<br \/>\nGoogle Cloud Platform\u306f\u3001Google\u306e\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u306e\u3053\u3068\u3067\u3001\u30af\u30e9\u30a6\u30c9\u306e\u8a08\u7b97\u8cc7\u6e90\u3068\u304b\u5404\u7a2e\u30a2\u30d7\u30ea\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30b5\u30fc\u30d3\u30b9\u3060\u3002<br \/>\nGoogle Maps\u306e\u5229\u7528\u306f\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u3068\u306f\u3061\u3087\u3063\u3068\u9055\u3046\u306e\u3060\u304c\u3001\u30e6\u30fc\u30b6\u30fc\u7ba1\u7406\u3068\u304b\u8ab2\u91d1\u306e\u30b5\u30a4\u30c8\u3092\u5225\u3005\u306b\u4f5c\u308b\u306e\u304c\u9762\u5012\u306a\u306e\u304b\u3001\u7d71\u5408\u3055\u308c\u3066\u3044\u308b\u307f\u305f\u3044\u3060\u3002<br \/>\n\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u60c5\u5831\u3082\u767b\u9332\u3059\u308b\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u7dca\u5f35\u3059\u308b\u306e\u3060\u304c\u3001\u3053\u3061\u3089\u304c\u6709\u6599\u30b5\u30fc\u30d3\u30b9\u306b\u5207\u308a\u66ff\u3048\u306a\u3044\u304b\u304e\u308a\u8ab2\u91d1\u306f\u767a\u751f\u305b\u305a\u3001\u7121\u6599\u5206\u306e\u30b5\u30fc\u30d3\u30b9\u306e\u307f\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3001\u767b\u9332\u3057\u305f\u3002<\/p>\n<p>\u6b21\u306b\u3001Google Cloud Platforn Console\u3068\u3044\u3046\u8a2d\u5b9a\u306a\u3069\u3092\u7ba1\u7406\u3059\u308b\u30da\u30fc\u30b8\u3067\u3001API Key\u3092\u6709\u52b9\u306b\u3059\u308bGoogle Maps\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u3002<br \/>\n\u81ea\u5206\u306fGeolocation API\u3068\u3001Static Maps API\u3092\u4f7f\u3046\u3064\u3082\u308a\u306a\u306e\u3067\u3001\u3053\u306e2\u3064\u306e\u307f\u3067API Key\u304c\u4f7f\u3048\u308b\u8a2d\u5b9a\u306b\u3057\u305f\u3002<\/p>\n<p>API Key\u306f\u5404\u30e6\u30fc\u30b6\u30fc\u500b\u4eba\u306e\u56fa\u6709\u306e\u3082\u306e\u306a\u306e\u3067\u3001\u4ed6\u306b\u6f0f\u3089\u3055\u306a\u3044\u3088\u3046\u306b\u7ba1\u7406\u3059\u308b\u3002<br \/>\n<!--more--><\/p>\n<p>&#8212;<br \/>\nAPI Key\u3092\u5b9f\u969b\u306b\u4f7f\u3063\u3066Geolocation API\u3092\u4f7f\u3063\u3066\u307f\u308b\u3002<\/p>\n<p>\u6b21\u306e\u30da\u30fc\u30b8\u306esample Request\u3068\u3044\u3046\u306e\u3092\u8a66\u3057\u3066\u307f\u305f\u3002<br \/>\n\u2192 <a href=\"https:\/\/developers.google.com\/maps\/documentation\/geolocation\/intro?hl=ja\">Developer Guide  |  Geolocation API  |  Google Developers<\/a><\/p>\n<p>\u307e\u305a\u3001JSON\u5f62\u5f0f\u3067WiFi\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u3092\u8a18\u8ff0\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3059\u308b\u3002<br \/>\n\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u3001\u300cyour_filename.json\u300d\u3068\u3044\u3046\u540d\u524d\u3067\u4fdd\u5b58\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n{\r\n  &quot;considerIp&quot;: &quot;false&quot;,\r\n  &quot;wifiAccessPoints&quot;: [\r\n    {\r\n        &quot;macAddress&quot;: &quot;00:25:9c:cf:1c:ac&quot;,\r\n        &quot;signalStrength&quot;: -43,\r\n        &quot;signalToNoiseRatio&quot;: 0\r\n    },\r\n    {\r\n        &quot;macAddress&quot;: &quot;00:25:9c:cf:1c:ad&quot;,\r\n        &quot;signalStrength&quot;: -55,\r\n        &quot;signalToNoiseRatio&quot;: 0\r\n    }\r\n  ]\r\n}\r\n<\/pre>\n<p>\u305d\u3057\u3066\u3001\u6b21\u306e\u3088\u3046\u306abat\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u5b9f\u884c\u3057\u305f\u3002\u305f\u3060\u3057\u3001&#8221;\u3053\u3053\u306b\u81ea\u5206\u306eAPI\u30ad\u30fc\u3092\u66f8\u304f&#8221;\u3068\u3044\u3046\u90e8\u5206\u306f\u5404\u81ea\u306eAPI Key\u306b\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ncurl -d @your_filename.json -H &quot;Content-Type: application\/json&quot; -i &quot;https:\/\/www.googleapis.com\/geolocation\/v1\/geolocate?key=\u3053\u3053\u306b\u81ea\u5206\u306eAPI\u30ad\u30fc\u3092\u66f8\u304f&quot;\r\npause\r\n<\/pre>\n<p>\u7d50\u679c\u3001\u7def\u5ea6\u7d4c\u5ea6\u306e\u60c5\u5831\u304cJSON\u5f62\u5f0f\u3067\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3060\u3002<\/p>\n<p>\u30a6\u30a4\u30eb\u30b9\u5bfe\u7b56\u30bd\u30d5\u30c8\u304c\u30d6\u30ed\u30c3\u30af\u3057\u3066\u305f\u308a\u3059\u308b\u3068\u3001\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u306e\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u308a\u3059\u308b\u3002(\u81ea\u5206\u3082\u305d\u308c\u306b\u5f15\u3063\u304b\u304b\u3063\u3066\u539f\u56e0\u304c\u5206\u304b\u3089\u305a\u3061\u3087\u3063\u3068\u60a9\u3093\u3060)<\/p>\n<p>&#8212;<br \/>\n\u3042\u3068\u306f\u3001\u81ea\u5206\u304c\u4f5c\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u3053\u308c\u3092\u547c\u3073\u51fa\u3059\u3088\u3046\u306b\u3059\u308b\u3002<br \/>\ncurl\u30b3\u30de\u30f3\u30c9\u3092\u5916\u90e8\u30d7\u30ed\u30bb\u30b9\u3092\u8d77\u52d5\u3059\u308b\u5f62\u3067\u547c\u3073\u51fa\u3059\u306e\u3067\u3082\u3088\u3044\u306e\u3060\u304c\u3001curl\u306e\u6a5f\u80fd\u3092\u4f7f\u3046\u305f\u3081\u306elibcurl\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u4f7f\u3046\u3068\u3044\u3046\u65b9\u6cd5\u3082\u3042\u308b\u3002<br \/>\n\u81ea\u5206\u306e\u5834\u5408\u306flibcurl\u3092\u4f7f\u3046\u306e\u304c\u597d\u304d\u306a\u306e\u3067\u3001\u4ee5\u524d\u306b\u3082\u4f7f\u3063\u3066\u3044\u305f\u3057\u3001\u4eca\u56de\u3082libcurl\u3092\u4f7f\u3063\u3066\u307f\u308b\u3002<\/p>\n<p>\u3064\u3065\u304f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows 10\u3067Google Maps Geolocation API\u3092\u4f7f\u3063\u3066\u307f\u308b\u3002 Windows 10\u306ecurl\u3092\u4f7f\u3063\u305f\u3002 \u3060\u3044\u3076\u4ee5\u524d\u306b\u3082Google Geolocation API\u3092\u8a66\u3057\u305f\u3053\u3068\u304c\u3042\u308b\u306e\u3060\u304c\u3001A [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13,14],"tags":[],"_links":{"self":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/42347"}],"collection":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=42347"}],"version-history":[{"count":2,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/42347\/revisions"}],"predecessor-version":[{"id":42349,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/42347\/revisions\/42349"}],"wp:attachment":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42347"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}