diff options
author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-02-03 01:04:23 +0900 |
---|---|---|
committer | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-02-10 22:12:14 +0900 |
commit | 972595697b25aa8cbf631f7653e178891efa40a6 (patch) | |
tree | 7ffa069b7b9cabfc884fc929b45b14301654c5b3 /files/ja/web/api/geolocation/index.html | |
parent | 0c1877ce3f1548fd077ba7dd4e846d75bb20e396 (diff) | |
download | translated-content-972595697b25aa8cbf631f7653e178891efa40a6.tar.gz translated-content-972595697b25aa8cbf631f7653e178891efa40a6.tar.bz2 translated-content-972595697b25aa8cbf631f7653e178891efa40a6.zip |
Geolocation インターフェイスの記事を移行
Diffstat (limited to 'files/ja/web/api/geolocation/index.html')
-rw-r--r-- | files/ja/web/api/geolocation/index.html | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/files/ja/web/api/geolocation/index.html b/files/ja/web/api/geolocation/index.html deleted file mode 100644 index 6bf37fa463..0000000000 --- a/files/ja/web/api/geolocation/index.html +++ /dev/null @@ -1,73 +0,0 @@ ---- -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> - -<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> |