Skip to content

Class Position

PavelTychinin edited this page Jul 18, 2024 · 4 revisions

Position class describing user's position.

Referenced from: PositionListener.

Public methods

Function getPoint

public GlobalPoint getPoint()

Function returns position in WGS84 coordinates.

Function getAccuracy

public double getAccuracy()

Function returns position accuracy in meters.

Function getHeading

public Double getHeading()

Function returns angle of rotation about the -Z axis (in radians). This value represents the angle between the device's Y axis and the magnetic north pole. When facing north, this angle is 0, when facing south, this angle is pi. Likewise, when facing east, this angle is pi/2, and when facing west, this angle is -pi/2. The range of values is [-pi, pi].

Function getLocationPoint

public LocationPoint getLocationPoint()

Function returns position in metrics coordinates at calculated location and sublocation.

Function getLocationHeading

public Double getLocationHeading()

Function returns value similiar to heading but with respect to sublocation north (top of the image)

Clone this wiki locally