aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/geolocation/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/geolocation/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/geolocation/index.html')
-rw-r--r--files/ja/web/api/geolocation/index.html75
1 files changed, 75 insertions, 0 deletions
diff --git a/files/ja/web/api/geolocation/index.html b/files/ja/web/api/geolocation/index.html
new file mode 100644
index 0000000000..53163a84ee
--- /dev/null
+++ b/files/ja/web/api/geolocation/index.html
@@ -0,0 +1,75 @@
+---
+title: Geolocation
+slug: Web/API/Geolocation
+tags:
+ - API
+ - Advanced
+ - Geolocation
+ - Geolocation API
+ - Interface
+ - Reference
+ - Secure context
+ - インターフェイス
+ - リファレンス
+ - 位置情報
+ - 位置情報 API
+ - 安全なコンテキスト
+translation_of: Web/API/Geolocation
+---
+<div>{{securecontext_header}}{{APIRef("Geolocation API")}}</div>
+
+<p><code><strong>Geolocation</strong></code> インターフェイスはデバイスの位置を取得する機能を提供します。これにより、ウェブサイトやアプリがユーザーの現在の位置に応じた結果を提供できるようになります。</p>
+
+<p>このインターフェイスを持つオブジェクトは、 {{domxref("Navigator")}} オブジェクトの {{domxref("navigator.geolocation")}} プロパティを使って得ることができます。</p>
+
+<div class="note">
+<p><strong>注:</strong> セキュリティ上の理由により、ウェブページが位置情報にアクセスしようとする時、ユーザーにアクセス許可が求められます。その方法やポリシーはブラウザーによって異なることに注意してください。</p>
+</div>
+
+<h2 id="Properties" name="Properties">プロパティ</h2>
+
+<p><em><code>Geolocation</code> インターフェイスが実装・継承するプロパティはありません。</em></p>
+
+<h2 id="Methods" name="Methods">メソッド</h2>
+
+<p><code>Geolocation</code> インターフェイスが継承するプロパティはありません。</p>
+
+<dl>
+ <dt>{{domxref("Geolocation.getCurrentPosition()")}} {{securecontext_inline}}</dt>
+ <dd>デバイスの現在位置を特定し、結果データを {{domxref("GeolocationPosition")}} オブジェクトで返します。</dd>
+ <dt>{{domxref("Geolocation.watchPosition()")}} {{securecontext_inline}}</dt>
+ <dd>デバイスの位置が変化する度に呼び出されるコールバック関数を登録し、それを識別する <code>long</code> 型の値を返します。</dd>
+ <dt>{{domxref("Geolocation.clearWatch()")}} {{securecontext_inline}}</dt>
+ <dd><code>watchPosition()</code> によって以前に登録されたハンドラーを解除します。</dd>
+</dl>
+
+<h2 id="Specifications" name="Specifications">仕様書</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">状態</th>
+ <th scope="col">備考</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('Geolocation', '#geolocation_interface')}}</td>
+ <td>{{Spec2('Geolocation')}}</td>
+ <td>初回定義。</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div>
+
+<p>{{Compat("api.Geolocation")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li><a href="/ja/docs/Web/API/Geolocation_API/Using_the_Geolocation_API">位置情報の使用</a></li>
+</ul>