Position QML Type▲
-
Import Statement: import QtPositioning 6.4
-
Since:: Qt 5.2
Detailed Description▲
The Position type holds values related to geographic location such as a coordinate (longitude, latitude, and altitude), the timestamp when the Position was obtained, the speed at that time, and the accuracy of the data.
Primarily, it is used in the position property of a PositionSource, as the basic unit of data available from the system location data source.
Not all properties of a Position object are necessarily valid or available (for example latitude and longitude may be valid, but speed update has not been received or set manually). As a result, corresponding "valid" properties are available (for example coordinate and longitudeValid, latitudeValid etc) to discern whether the data is available and valid in this position update.
Position objects are read-only and can only be produced by a PositionSource.
Example Usage▲
See the example given for the PositionSource type, or the GeoFlickr example application.
See Also▲
See also PositionSource, coordinate
Property Documentation▲
altitudeValid : bool▲
This property is true if coordinate's altitude has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).
See Also▲
See also coordinate
coordinate : coordinate▲
This property holds the latitude, longitude, and altitude value of the Position.
It is a read-only property.
See Also▲
See also longitudeValid, latitudeValid, altitudeValid
[since Qt Positioning 5.3] direction : double▲
This property holds the value of the direction of travel in degrees from true north.
It is a read-only property.
This property was introduced in Qt Positioning 5.3.
See Also▲
See also directionValid
[since Qt Positioning 6.3] directionAccuracy : double▲
This property holds the accuracy of the provided direction in degrees. This property is valid for Android and macOS/iOS only. See QGeoPositionInfo::Attribute documentation for more details.
This property was introduced in Qt Positioning 6.3.
See Also▲
See also direction, directionAccuracyValid
[since Qt Positioning 6.3] directionAccuracyValid : bool▲
This property is true if directionAccuracy has been set.
This property was introduced in Qt Positioning 6.3.
See Also▲
See also directionAccuracy
[since Qt Positioning 5.3] directionValid : bool▲
This property is true if direction has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).
This property was introduced in Qt Positioning 5.3.
See Also▲
See also direction
horizontalAccuracy : real▲
This property holds the horizontal accuracy of the coordinate (in meters).
See Also▲
See also horizontalAccuracyValid, coordinate
horizontalAccuracyValid : bool▲
This property is true if horizontalAccuracy has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).
See Also▲
See also horizontalAccuracy
latitudeValid : bool▲
This property is true if coordinate's latitude has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).
See Also▲
See also coordinate
longitudeValid : bool▲
This property is true if coordinate's longitude has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).
See Also▲
See also coordinate
[since Qt Positioning 5.4] magneticVariation : double▲
This property holds the angle between the horizontal component of the magnetic field and true north, in degrees. Also known as magnetic declination. A positive value indicates a clockwise direction from true north and a negative value indicates a counter-clockwise direction.
It is a read-only property.
This property was introduced in Qt Positioning 5.4.
See Also▲
See also magneticVariationValid
[since Qt Positioning 5.4] magneticVariationValid : bool▲
This property is true if magneticVariation has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).
This property was introduced in Qt Positioning 5.4.
See Also▲
See also magneticVariation
speed : double▲
This property holds the value of speed (groundspeed, meters / second).
It is a read-only property.
See Also▲
See also speedValid, coordinate
speedValid : bool▲
This property is true if speed has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).
See Also▲
See also speed
timestamp : date▲
This property holds the timestamp when this position was received. If the property has not been set, it is invalid.
It is a read-only property.
verticalAccuracy : real▲
This property holds the vertical accuracy of the coordinate (in meters).
See Also▲
See also verticalAccuracyValid, coordinate
verticalAccuracyValid : bool▲
This property is true if verticalAccuracy has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).
See Also▲
See also verticalAccuracy
[since Qt Positioning 5.3] verticalSpeed : double▲
This property holds the value of the vertical speed in meters per second.
It is a read-only property.
This property was introduced in Qt Positioning 5.3.
See Also▲
See also verticalSpeedValid
[since Qt Positioning 5.3] verticalSpeedValid : bool▲
This property is true if verticalSpeed has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).
This property was introduced in Qt Positioning 5.3.
See Also▲
See also verticalSpeed