From 72bddf5559211cc0f860ca9e1d7b10f701691cc1 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Thu, 3 Feb 2022 01:33:53 +0900 Subject: Navigator.geolocation を移行 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/api/navigator/geolocation/index.html | 53 ----------------------- files/ja/web/api/navigator/geolocation/index.md | 53 +++++++++++++++++++++++ 2 files changed, 53 insertions(+), 53 deletions(-) delete mode 100644 files/ja/web/api/navigator/geolocation/index.html create mode 100644 files/ja/web/api/navigator/geolocation/index.md (limited to 'files/ja/web/api') diff --git a/files/ja/web/api/navigator/geolocation/index.html b/files/ja/web/api/navigator/geolocation/index.html deleted file mode 100644 index cd6508b3ac..0000000000 --- a/files/ja/web/api/navigator/geolocation/index.html +++ /dev/null @@ -1,53 +0,0 @@ ---- -title: Navigator.geolocation -slug: Web/API/Navigator/geolocation -tags: - - API - - Geolocation API - - Navigator - - Property - - Reference - - Secure context -translation_of: Web/API/Navigator/geolocation ---- -
{{securecontext_header}}{{APIRef("Geolocation API")}}
- -

Navigator.geolocation は読み取り専用のプロパティで、ウェブコンテンツが端末の位置情報にアクセスするための {{domxref("Geolocation")}} オブジェクトを返します。これにより、ウェブサイトやアプリがユーザーの現在の位置に応じた結果を提供できるようになります。

- -
-

注: セキュリティ上の理由により、ウェブページが位置情報にアクセスしようとする時、ユーザーにアクセス許可が求められます。その方法やポリシーはブラウザーによって異なることに注意してください。

-
- -

構文

- -
geo = navigator.geolocation
-
- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('Geolocation', '#dom-navigator-geolocation', 'Navigator.geolocation')}}{{Spec2('Geolocation')}}初回定義
- -

ブラウザーの互換性

- -

{{Compat("api.Navigator.geolocation")}}

- -

関連情報

- - diff --git a/files/ja/web/api/navigator/geolocation/index.md b/files/ja/web/api/navigator/geolocation/index.md new file mode 100644 index 0000000000..cd6508b3ac --- /dev/null +++ b/files/ja/web/api/navigator/geolocation/index.md @@ -0,0 +1,53 @@ +--- +title: Navigator.geolocation +slug: Web/API/Navigator/geolocation +tags: + - API + - Geolocation API + - Navigator + - Property + - Reference + - Secure context +translation_of: Web/API/Navigator/geolocation +--- +
{{securecontext_header}}{{APIRef("Geolocation API")}}
+ +

Navigator.geolocation は読み取り専用のプロパティで、ウェブコンテンツが端末の位置情報にアクセスするための {{domxref("Geolocation")}} オブジェクトを返します。これにより、ウェブサイトやアプリがユーザーの現在の位置に応じた結果を提供できるようになります。

+ +
+

注: セキュリティ上の理由により、ウェブページが位置情報にアクセスしようとする時、ユーザーにアクセス許可が求められます。その方法やポリシーはブラウザーによって異なることに注意してください。

+
+ +

構文

+ +
geo = navigator.geolocation
+
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('Geolocation', '#dom-navigator-geolocation', 'Navigator.geolocation')}}{{Spec2('Geolocation')}}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("api.Navigator.geolocation")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf