BUI logoDWC logoBBjGeolocationEvent::getHeading

Description

In BBj 11.00 and higher, this method returns the current heading in degrees.

Syntax

Return Value Method
double getHeading()

Parameters

None.

Return Value

The "getHeadings" attribute denotes the direction of travel of the hosting device and is specified in degrees, where 0° ≤ heading < 360°, counting clockwise relative to the true north. If the implementation cannot provide heading information, the value of this attribute must be null. If the hosting device is stationary (i.e. the value of the speed attribute is 0), then the value of the heading attribute must be NaN.

Remarks

None.

Example

See Also

BBjAPI

BBj Object Syntax

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.

Geolocation API Specification