diff options
author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-02-03 23:04:29 +0900 |
---|---|---|
committer | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-02-11 12:20:24 +0900 |
commit | d842aa18fb4ba0ba5b8e84285cae64ef7eda7da8 (patch) | |
tree | b8b38fe8509c980b6191469e8bc794b27ec866a0 /files/ja/web | |
parent | 6af2bcbf00561c619ff08feca36ac90e1dd4d991 (diff) | |
download | translated-content-d842aa18fb4ba0ba5b8e84285cae64ef7eda7da8.tar.gz translated-content-d842aa18fb4ba0ba5b8e84285cae64ef7eda7da8.tar.bz2 translated-content-d842aa18fb4ba0ba5b8e84285cae64ef7eda7da8.zip |
2022/01/28 時点の英語版に同期
Diffstat (limited to 'files/ja/web')
-rw-r--r-- | files/ja/web/api/geolocationcoordinates/heading/index.md | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/files/ja/web/api/geolocationcoordinates/heading/index.md b/files/ja/web/api/geolocationcoordinates/heading/index.md index 252073fbe3..560772bc1b 100644 --- a/files/ja/web/api/geolocationcoordinates/heading/index.md +++ b/files/ja/web/api/geolocationcoordinates/heading/index.md @@ -3,44 +3,37 @@ title: GeolocationCoordinates.heading slug: Web/API/GeolocationCoordinates/heading tags: - API - - Geolocation API + - 位置情報 API - GeolocationCoordinates - - Property - - Secure context + - プロパティ + - 安全なコンテキスト - heading browser-compat: api.GeolocationCoordinates.heading +translation_of: Web/API/GeolocationCoordinates/heading --- {{securecontext_header}}{{APIRef("Geolocation API")}} -The **`GeolocationCoordinates.heading`** read-only property is -a `double` representing the direction in which the device is traveling. This -value, specified in degrees, indicates how far off from heading due north the device is. -`Zero` degrees represents true north, and the direction is determined -clockwise (which means that east is `90` degrees and west is `270` -degrees). If {{domxref("GeolocationCoordinates.speed")}} is `0`, -`heading` is -[`NaN`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN). If -the device is not able to provide heading information, this value is `null`. +**`GeolocationCoordinates.heading`** は読み取り専用のプロパティであり、 `double` 値で端末の移動方向を表します。この値は角度で指定され、端末の移動方向が北向きからどれだけ角度があるかを示します。 `0` 度は真北を表し、そこから時計回りに指定します(すなわち、東は `90` 度で西は `270` 度になります)。 {{domxref("GeolocationCoordinates.speed")}} が `0` である場合、 `heading` は [`NaN`](/ja/docs/Web/JavaScript/Reference/Global_Objects/NaN) になります。端末が移動方向の情報を提供できない場合、この値は `null` になります。 -## Syntax +## 構文 ```js let heading = geolocationCoordinatesInstance.heading ``` -### Value +### 値 -A `double` representing the direction in which the device is traveling. +`double` 値で端末の移動方向を表します。 -## Specifications +## 仕様書 {{Specifications}} -## Browser compatibility +## ブラウザーの互換性 {{Compat}} -## See also +## 関連情報 -- [Using the Geolocation API](/en-US/docs/Web/API/Geolocation_API/Using_the_Geolocation_API) +- [位置情報 API の使用](/ja/docs/Web/API/Geolocation_API/Using_the_Geolocation_API) - {{domxref("GeolocationCoordinates")}} |