{"id":104,"date":"2008-10-27T22:49:56","date_gmt":"2008-10-27T13:49:56","guid":{"rendered":"http:\/\/convivial-web.net\/?p=104"},"modified":"2024-02-17T22:09:10","modified_gmt":"2024-02-17T13:09:10","slug":"geolocation_api","status":"publish","type":"post","link":"https:\/\/convivial-web.net\/?p=104","title":{"rendered":"Geolocation API\u3000\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u3066\u307f\u305f"},"content":{"rendered":"<p>\nGoogle\u304b\u3089\u3001<a href=\"http:\/\/code.google.com\/apis\/gears\/\">Gears API<\/a> \u3068\u3044\u3046\u30d6\u30e9\u30a6\u30b6\u3092\u30aa\u30d5\u30e9\u30a4\u30f3\u3067\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u62e1\u5f35\u6a5f\u80fd\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4e2d\u306e\u4e00\u3064\u306b\u3001<a href=\"http:\/\/code.google.com\/apis\/gears\/api_geolocation.html\">Geolocation API<\/a>\u3068\u3044\u3046\u6a5f\u80fd\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\u3053\u306eGeolocation API \u3092\u4f7f\u3046\u3068\u3001GPS\u3001WI-FI\u3001IP\u30a2\u30c9\u30ec\u30b9\u3068\u3044\u3063\u305f\u60c5\u5831\u304b\u3089\u3001\u30d6\u30e9\u30a6\u30b6\u5229\u7528\u8005\u306e\u4f4d\u7f6e\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u7aef\u672b\u306bGears\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u4f4d\u7f6e\u53d6\u5f97\u306e\u305f\u3081\u306e\u30b3\u30fc\u30c9\u306f\u3001JavaScript\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n<\/p>\n<pre><code>\nvar geo = google.gears.factory.create('beta.geolocation');\ngeo.getCurrentPosition( function(<\/code><code>pos) {<br \/>  alert('lat:' + pos.latitude + ',lon:' + pos.longitude);\n});\n<\/code><\/pre>\n<p>\n\u4e00\u65b9Firefox\u306b\u306f\u3001\u300c<a href=\"http:\/\/labs.mozilla.com\/2008\/10\/introducing-geode\/\">Geode<\/a>\u300d\u3068\u3044\u3046\u4f3c\u305f\u3088\u3046\u306a\u6a5f\u80fd\u3092\u3082\u3064\u30a2\u30c9\u30aa\u30f3\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\u3053\u3061\u3089\u306fWI-FI\u304b\u3089\u306e\u4f4d\u7f6e\u60c5\u5831\u306e\u307f\u3067\u3059\u304c\u3001JavaScript\u3092\u4f7f\u3063\u3066\u540c\u3058\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n<\/p>\n<pre><code>\nnavigator.geolocation.getCurrentPosition(function(pos) {\nalert( pos.latitude + \", \" + pos.longitude );\n})\n<\/code><\/pre>\n<p>\n\u3088\u30fc\u304f\u307f\u3066\u3082\u3089\u3046\u3068\u308f\u304b\u308b\u306e\u3067\u3059\u304c\u3001Geode\u306e\u4f4d\u7f6e\u60c5\u5831\u53d6\u5f97\u30b3\u30fc\u30c9\u306f\u3001Gears\u306eGeolocationAPI\u3068\u307e\u3063\u305f\u304f\u540c\u3058\u540d\u79f0\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u30e1\u30bd\u30c3\u30c9\u304c\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002\n<\/p>\n<p>\n\u3053\u308c\u306f\u3069\u3046\u3044\u3046\u3053\u3068\u304b\u3068\u3044\u3046\u3068\u3001\u5b9f\u306fGeolocation API\u81ea\u4f53\u304c\u3001W3C\u306b\u3088\u3063\u3066\u7b56\u5b9a\u304c\u9032\u3081\u3089\u308c\u3066\u3044\u308b\u30aa\u30fc\u30d7\u30f3\u306a\u4ed5\u69d8\u306a\u306e\u3067\u3059\u3002<br \/><a href=\"http:\/\/dev.w3.org\/geo\/api\/spec-source.html\">-Geolocation API Specification<\/a><\/p>\n<p>\u3055\u3089\u306b\u3044\u3046\u3068\u3001W3C\u306eGeolocation API Specification\u7b56\u5b9a\u306b\u306f\u3001Google\u306eGeolocation API\u958b\u767a\u8005\u304c\u5927\u304d\u304f\u95a2\u308f\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3059\u3002<br \/>\u3053\u306eGeolocation API Specification\u306fHTML\u306e\u6b21\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3042\u308b<strike>HTML5\u3067\u6a19\u6e96\u5316\u3055\u308c\u308b\u65b9\u5411<\/strike>\u306b\u9032\u3093\u3067\u3044\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\u203b\u8ffd\u8a18\u3000Geolocation\u3068HTML5\u306f\u5225\u7269\u3060\u3068\u30b3\u30e1\u30f3\u30c8\u3092\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002\n<\/p>\n<p>\nGears\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"http:\/\/code.google.com\/apis\/gears\/api_database.html\">Database API<\/a>\u3068HTML5\u306e\u300c<em><\/em>Client-side DB\u300d\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u305f\u308a\u3068\u3001HTML5\u306e\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u30d7\u30ec\u30d3\u30e5\u30fc\u7684\u306a\u610f\u5473\u5408\u3044\u3082\u6301\u3063\u3066\u3044\u308b\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u4eca\u306e\u3068\u3053\u308d\u306f\u4e00\u90e8\u30d6\u30e9\u30a6\u30b6\u306e\u30a2\u30c9\u30aa\u30f3\u6a5f\u80fd\u3067\u3057\u304b\u306a\u3044Geolocation API\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001HTML5\u306b\u63a1\u7528\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u3068\u3001\u30d6\u30e9\u30a6\u30b6\u304c\u6a19\u6e96\u3067\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u4e00\u6c17\u306b\u5e83\u307e\u308b\u3053\u3068\u304c\u671f\u5f85\u3055\u308c\u307e\u3059\u3002\n<\/p>\n<p>\u7279\u306biPhone\u306eSafari\u3067\u306f\u3001HTML5\u306e\u30ed\u30fc\u30ab\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u3059\u3067\u306b\u5b9f\u88c5\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u6d41\u308c\u3082\u3042\u308a\u3001<strike>HTML5\u6e96\u62e0\u306eGeolocation API\u3092\u5b9f\u88c5\u3057\u3066\u304f\u308b\u3053\u3068\u306f\u3001\u307b\u307c\u9593\u9055\u3044\u306a\u3044\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002<\/strike><\/p>\n<p>\u4eca\u307e\u3067\u306f\u3001<br \/>\u643a\u5e2f\u96fb\u8a71\u306eGPS\u304b\u3089\u4f4d\u7f6e\u60c5\u5831\u306e\u53d6\u5f97\u3092\u30ad\u30e3\u30ea\u30a2\u5225\u306b\u5b9f\u88c5\u3057\u305f\u308a\u3001<br \/>PlaceEngine\u3092\u4f7f\u3063\u3066WI-FI\u304b\u3089\u4f4d\u7f6e\u60c5\u5831\u3092\u7279\u5b9a\u3057\u305f\u308a\u3001<br \/>IP\u30a2\u30c9\u30ec\u30b9\u304b\u3089\u4f4d\u7f6e\u60c5\u5831\u3092\u5272\u308a\u51fa\u3059\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u5229\u7528\u3057\u305f\u308a<br \/>\u69d8\u3005\u306a\u4f4d\u7f6e\u60c5\u5831\u53d6\u5f97\u6280\u8853\u3092\u500b\u5225\u3067\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\u4eca\u5f8c\u306f\u3053\u3046\u3044\u3063\u305f\u4f5c\u696d\u304b\u3089\u958b\u767a\u8005\u304c\u89e3\u653e\u3055\u308c\u3001\u4f4d\u7f6e\u60c5\u5831\u3092\u6d3b\u7528\u3057\u305f\u30b5\u30fc\u30d3\u30b9\u304c\u307e\u3059\u307e\u3059\u5897\u3048\u3066\u3044\u304f\u3053\u3068\u304c\u671f\u5f85\u3055\u308c\u308b\u306e\u3067\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google\u304b\u3089\u3001Gears API \u3068\u3044\u3046\u30d6\u30e9\u30a6\u30b6\u3092\u30aa\u30d5\u30e9\u30a4\u30f3\u3067\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u62e1\u5f35\u6a5f\u80fd\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4e2d\u306e\u4e00\u3064\u306b\u3001Geolocation API\u3068\u3044\u3046\u6a5f\u80fd\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306eGeolocation API  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[2],"tags":[76,118,75],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4HNbl-1G","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/convivial-web.net\/index.php?rest_route=\/wp\/v2\/posts\/104"}],"collection":[{"href":"https:\/\/convivial-web.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/convivial-web.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/convivial-web.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/convivial-web.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=104"}],"version-history":[{"count":1,"href":"https:\/\/convivial-web.net\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions"}],"predecessor-version":[{"id":243,"href":"https:\/\/convivial-web.net\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions\/243"}],"wp:attachment":[{"href":"https:\/\/convivial-web.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/convivial-web.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/convivial-web.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}