BBjGeolocationPositionEvent::getHeading


Description

In BBj 11.0 and higher, this method returns the current position 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

BBj Object Diagram for an illustration of the relationship between BBjObjects.

Geolocation API Specification



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.