{"id":131,"date":"2007-12-26T23:47:34","date_gmt":"2007-12-26T14:47:34","guid":{"rendered":"http:\/\/ke-tai.org\/blog\/2007\/12\/26\/cirius\/"},"modified":"2007-12-28T17:40:46","modified_gmt":"2007-12-28T08:40:46","slug":"cirius","status":"publish","type":"post","link":"http:\/\/ke-tai.org\/blog\/2007\/12\/26\/cirius\/","title":{"rendered":"3\u30ad\u30e3\u30ea\u30a2\u5bfe\u5fdc\u306e\u4f4d\u7f6e\u53d6\u5f97API\u300c\u30b7\u30ea\u30a6\u30b9 GeoPlatform API\u300d\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f"},"content":{"rendered":"<p>\u6628\u65e5\u306b\u5f15\u304d\u7d9a\u304dGPS\u30cd\u30bf\u3067\u3059\u3002<\/p>\n<p>\u4f4d\u7f6e\u60c5\u5831\u3092\u5229\u7528\u3057\u305f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u30b7\u30ea\u30a6\u30b9\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u30ba\u304c\u300112\/25\u4ed8\u3051\u3067\u300c\u30b7\u30ea\u30a6\u30b9 GeoPlatform API\u300d\u3092\u516c\u958b\u3057\u305f\u305d\u3046\u306a\u306e\u3067\u3001\u65e9\u901f\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u2192\u3000<a href=\"http:\/\/lab.cirius.co.jp\/GeoPlatformAPI\" target=\"_blank\">Cirius Lab\u3000\u30b7\u30ea\u30a6\u30b9 GeoPlatform API \u306b\u3064\u3044\u3066<\/a> <small>[cirius.co.jp]<\/small><\/p>\n<p>\u2192\u3000<a href=\"http:\/\/kokogiko.net\/m\/archives\/002113.html\" target=\"_blank\">\u3053\u3053\u30ae\u30b3\uff01\u3000\u30b7\u30ea\u30a6\u30b9\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u3001\u643a\u5e2f\u5411\u3051\u4f4d\u7f6e\u53d6\u5f97API &#8211; GeoForm API\u3092\u516c\u958b<\/a> <small>[kokogiko.net]<\/small><\/p>\n<p class=\"spacer-small\">&nbsp;<\/p>\n<p>\u4ee5\u4e0b\u3001\u672c\u5bb6\u30b5\u30a4\u30c8\u304b\u3089\u306e\u5f15\u7528\u3067\u3059\u3002<\/p>\n<hr size=\"1\" \/><small>GPS \u3084 i\u30a8\u30ea\u30a2\u306a\u3069\u3001\u4f4d\u7f6e\u60c5\u5831\u3092\u6d3b\u7528\u3057\u305f\u30e2\u30d0\u30a4\u30eb\u30b5\u30a4\u30c8\u3092\u4f5c\u6210\u3057\u305f\u3044\u3002\u305d\u3093\u306a\u5834\u5408\u306b\u3054\u5229\u7528\u3044\u305f\u3060\u3051\u308b API \u3067\u3059\u3002 GeoFormAPI \u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30ad\u30e3\u30ea\u30a2\u9593\u3084\u6a5f\u7a2e\u9593\u306e\u5dee\u7570\u3092\u610f\u8b58\u305b\u305a\u3001\u4f4d\u7f6e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u6a5f\u80fd\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/small><\/p>\n<ol>\n<li><small>\u7def\u5ea6\u7d4c\u5ea6\u3001\u4f4f\u6240\u3092\u53d6\u5f97\u53ef\u80fd<br \/>\n\u7def\u5ea6\u7d4c\u5ea6\u60c5\u5831\u306b\u52a0\u3048\u3066\u3001\u5bfe\u5fdc\u3059\u308b\u4f4f\u6240\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/small><\/li>\n<li><small>3\u30ad\u30e3\u30ea\u30a2\u5bfe\u5fdc<br \/>\nDoCoMo, au, SoftBank \u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002GPS\u691c\u7d22\u3001i\u30a8\u30ea\u30a2\u3001\u7c21\u6613\u4f4d\u7f6e\u60c5\u5831\u306a\u3069\u3092\u5207\u308a\u66ff\u3048\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/small><\/li>\n<li><small>\u7d71\u4e00\u3055\u308c\u305f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9<br \/>\n\u643a\u5e2f\u96fb\u8a71\u4f1a\u793e\u6bce\u306b\u7570\u306a\u308b\u4ed5\u7d44\u307f\u3092\u69cb\u7bc9\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/small><\/li>\n<\/ol>\n<hr size=\"1\" \/> \u3068\u306e\u3053\u3068\u3067\u3059\u3002\u5229\u7528\u306b\u306f\u7c21\u5358\u306a\u767b\u9332\u304c\u3044\u308a\u307e\u3059\u304c\u3001<a href=\"http:\/\/lab.cirius.co.jp\/API%E5%88%A9%E7%94%A8%E8%A6%8F%E7%B4%84\" target=\"_blank\">\u5229\u7528\u898f\u7d04<\/a> <small>[cirius.co.jp]<\/small>\u306e\u7bc4\u56f2\u5185\u3067\u3042\u308c\u3070\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p class=\"spacer-small\">&nbsp;<\/p>\n<p>\u4ee5\u4e0b\u304c\u8a66\u3057\u306b\u4f5c\u6210\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<p><em><strong>Cirius GeoPlatform API\u306ePHP\u30b5\u30f3\u30d7\u30eb<\/strong><\/em><\/p>\n<pre class=\"super-pre-small\"><code>&lt;?php\r\n\/\/ \u30e6\u30fc\u30b6\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\r\n$agent = $_SERVER['HTTP_USER_AGENT'];\r\n\r\n\/\/ \u623b\u308a\u5148URL\r\n$ret_url = 'http:\/\/example.jp\/example.php'; \/\/ *1\r\n\r\n\/\/ API\u30ad\u30fc\r\n$api_key = '[API\u30ad\u30fc]'; \/\/ *2\r\n\r\n\/\/ URL\u3092\u4f5c\u6210\r\n$url = 'http:\/\/api.cirius.co.jp\/v1\/geoform\/xhtml?';\r\n$url .= 'ua=' . urlencode($agent);\r\n$url .= '&amp;return_uri=' . urlencode($ret_url);\r\n$url .= '&amp;api_key=' . $api_key;\r\n\r\n\/\/ \u51fa\u529b\r\necho '&lt;a href=\"' . $url . '\"&gt;\u63a5\u7d9a&lt;\/a&gt;';\r\necho '&lt;hr&gt;';\r\necho '\u7def\u5ea6=' . htmlspecialchars($_GET['lat']) . '&lt;br&gt;';\r\necho '\u7d4c\u5ea6=' . htmlspecialchars($_GET['lon']) . '&lt;br&gt;';\r\necho '\u8aa4\u5dee=' . htmlspecialchars($_GET['accuracy']) . '&lt;br&gt;';\r\necho '\u4f4f\u6240=' . htmlspecialchars($_GET['address']) . '&lt;br&gt;';\r\n\r\n?&gt;\r\n<\/code><\/pre>\n<p><small>*1\u3000\u623b\u308a\u5148URL\u3092\u8a18\u8ff0\u3057\u307e\u3059<\/small><br \/>\n<small>*2\u3000\u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332\u3057\u3066\u53d6\u5f97\u3057\u305fAPI\u30ad\u30fc\u3092\u8a18\u8ff0\u3057\u307e\u3059<\/small><br \/>\n<small>*\u3000\u4f4f\u6240\u306fUTF-8\u3067\u53d6\u5f97\u3055\u308c\u307e\u3059<\/small><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/ke-tai.org\/blog\/wp-content\/uploads\/2007\/12\/cirius_api.jpg\" alt=\"cirius_api.jpg\" \/><\/p>\n<p class=\"spacer-small\">&nbsp;<\/p>\n<p>\u30ad\u30e3\u30ea\u30a2\u3084\u7aef\u672b\u306e\u5dee\u9055\u3092\u57cb\u3081\u3066\u304f\u308c\u308b\u3053\u3068\uff08\u306a\u3093\u3068\u7cbe\u5ea6\u306f\u3055\u3066\u304a\u304dmova\u3067\u8a66\u3057\u3066\u3082\u5ea7\u6a19\u304c\u53d6\u308c\u307e\u3057\u305f\uff09\u3084\u3001\u7def\u5ea6\u30fb\u7d4c\u5ea6\u3060\u3051\u3067\u306f\u306a\u304f\u4f4f\u6240\u307e\u3067\u53d6\u308c\u308b\u70b9\u304c\u7d20\u6674\u3089\u3057\u3044\u3067\u3059\u306d\u3002<\/p>\n<p><a href=\"http:\/\/lab.cirius.co.jp\/GeoPlatformAPI\/GeoFormAPI%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%82%BA%E3%82%AC%E3%82%A4%E3%83%89\" target=\"_blank\">API\u30da\u30fc\u30b8<\/a><small>[cirius.co.jp]<\/small>\u306b\u306f\u3001\u8a73\u3057\u3044\u4f7f\u3044\u65b9\u3084\u3001\u3088\u308a\u5b9f\u7528\u7684\u306a\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u304c\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u53c2\u8003\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p class=\"spacer\">&nbsp;<\/p>\n<p><strong><em>\u95a2\u9023\uff1a<\/em><\/strong><\/p>\n<ul>\n<li><em><a href=\"http:\/\/ke-tai.org\/blog\/2007\/12\/25\/wgs84\/\">\u30b1\u30fc\u30bf\u30a4\u3067\u53d6\u5f97\u3057\u305f\u4f4d\u7f6e\u60c5\u5831\u3092\u4e16\u754c\u6e2c\u5730\u7cfb\u306b\u5909\u63db\u3059\u308b\u30b5\u30f3\u30d7\u30eb<\/a><\/em><\/li>\n<li><em><a href=\"http:\/\/ke-tai.org\/blog\/2007\/12\/21\/wgs\/\">\u30b1\u30fc\u30bf\u30a4\u3067\u53d6\u5f97\u3057\u305f\u4f4d\u7f6e\u60c5\u5831\u3092GoogleMap\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u30b5\u30f3\u30d7\u30eb<\/a><\/em><\/li>\n<li><em><a href=\"http:\/\/ke-tai.org\/blog\/2007\/12\/18\/iarea\/\">FOMA\u30aa\u30fc\u30d7\u30f3i\u30a8\u30ea\u30a2\u306e\u4f4d\u7f6e\u60c5\u5831\u53d6\u5f97\u6a5f\u80fd\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f<\/a><\/em><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6628\u65e5\u306b\u5f15\u304d\u7d9a\u304dGPS\u30cd\u30bf\u3067\u3059\u3002 \u4f4d\u7f6e\u60c5\u5831\u3092\u5229\u7528\u3057\u305f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u30b7\u30ea\u30a6\u30b9\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u30ba\u304c\u300112\/25\u4ed8\u3051\u3067\u300c\u30b7\u30ea\u30a6\u30b9 GeoPlatform API\u300d\u3092\u516c\u958b\u3057\u305f\u305d\u3046\u306a\u306e\u3067\u3001\u65e9\u901f\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u2192\u3000Ciriu [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/posts\/131"}],"collection":[{"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":0,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/posts\/131\/revisions"}],"wp:attachment":[{"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/categories?post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/tags?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}