GeolocationCoordinates: heading 属性
heading 是 GeolocationCoordinates 接口的一个只读属性,它是一个 double 类型的值,表示设备正在行驶的方向。这个值以度为单位指定,表示设备偏离正北方向的角度。0 度表示正北,方向按顺时针确定(这意味着东为 90 度,西为 270 度)。如果 GeolocationCoordinates.speed 为 0 或者设备无法提供航向信息,则 heading 为 null。