GeolocationCoordinates: heading 속성

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

GeolocationCoordinates.heading 읽기 전용 속성은 장치가 이동 중인 방위를 나타내는 double입니다. 이 값은 장치가 북쪽에서 벗어난 각도를 도(°) 단위로 표현하며, 진북(真北)의 0도부터 시계방향으로 진행하므로 90도는 동쪽, 270도는 서쪽입니다. headingGeolocationCoordinates.speed0이면 NaN이고, 장치가 방위 정보를 제공하지 못하면 null입니다.

장치가 이동 중인 방위를 나타내는 double입니다.

명세서

Specification
Geolocation API
# heading-attribute

브라우저 호환성

BCD tables only load in the browser

같이 보기