Skip to content

Commit 68c5b12

Browse files
authored
Remove reference to NaN heading value (#35469)
* Remove reference to NaN heading value Matches specification change in w3c/geolocation#173 and discussion about existing implementations in w3c/geolocation#171. * Update heading/index.md as well
1 parent ccaef74 commit 68c5b12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

files/en-us/web/api/geolocationcoordinates/heading/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ browser-compat: api.GeolocationCoordinates.heading
88

99
{{securecontext_header}}{{APIRef("Geolocation API")}}
1010

11-
The **`heading`** read-only property of the {{domxref("GeolocationCoordinates")}} interface 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. `0` 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 {{jsxref("NaN")}}. If the device is not able to provide heading information, this value is `null`.
11+
The **`heading`** read-only property of the {{domxref("GeolocationCoordinates")}} interface 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. `0` 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` or the device is not able to provide heading information, `heading` is `null`.
1212

1313
## Value
1414

files/en-us/web/api/geolocationcoordinates/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ _The `GeolocationCoordinates` interface doesn't inherit any properties._
2525
- {{domxref("GeolocationCoordinates.altitudeAccuracy")}} {{ReadOnlyInline}}
2626
- : Returns a `double` representing the accuracy of the `altitude` expressed in meters. This value can be `null` if the implementation cannot provide the data.
2727
- {{domxref("GeolocationCoordinates.heading")}} {{ReadOnlyInline}}
28-
- : Returns a `double` representing the direction towards which the device is facing. This value, specified in degrees, indicates how far off from heading true north the device is. `0` degrees represents true north, and the direction is determined clockwise (which means that east is `90` degrees and west is `270` degrees). If `speed` is `0`, `heading` is {{jsxref("NaN")}}. If the device is unable to provide `heading` information, this value is `null`.
28+
- : Returns a `double` representing the direction towards which the device is facing. This value, specified in degrees, indicates how far off from heading true north the device is. `0` degrees represents true north, and the direction is determined clockwise (which means that east is `90` degrees and west is `270` degrees). If `speed` is `0` or the device is unable to provide `heading` information, `heading` is `null`.
2929
- {{domxref("GeolocationCoordinates.speed")}} {{ReadOnlyInline}}
3030
- : Returns a `double` representing the velocity of the device in meters per second. This value can be `null`.
3131

0 commit comments

Comments
 (0)