Position QML Type
The Position type holds positional data at a particular point in time, such as coordinate (longitude, latitude, altitude) and speed. More...
Import Statement: | import QtPositioning 5.2 |
Since: | Qt 5.2 |
Properties
- altitudeValid : bool
- coordinate : coordinate
- direction : double
- directionValid : bool
- horizontalAccuracy : real
- horizontalAccuracyValid : bool
- latitudeValid : bool
- longitudeValid : bool
- magneticVariation : double
- magneticVariationValid : bool
- speed : double
- speedValid : bool
- timestamp : date
- verticalAccuracy : real
- verticalAccuracyValid : bool
- verticalSpeed : double
- verticalSpeedValid : bool
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 Flickr example application.
See also PositionSource and coordinate.
Property Documentation
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 coordinate.
coordinate : coordinate |
This property holds the latitude, longitude, and altitude value of the Position.
It is a read-only property.
See also longitudeValid, latitudeValid, and altitudeValid.
This property holds the value of the direction of travel in degrees from true north.
It is a read-only property.
This QML property was introduced in Qt Positioning 5.3.
See also directionValid.
This property holds the horizontal accuracy of the coordinate (in meters).
See also horizontalAccuracyValid and coordinate.
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 horizontalAccuracy.
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 coordinate.
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 coordinate.
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 QML property was introduced in Qt Positioning 5.4.
See also magneticVariationValid.
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 QML property was introduced in Qt Positioning 5.4.
See also magneticVariation.
This property holds the value of speed (groundspeed, meters / second).
It is a read-only property.
See also speedValid and coordinate.
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.
This property holds the vertical accuracy of the coordinate (in meters).
See also verticalAccuracyValid and coordinate.
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 verticalAccuracy.
This property holds the value of the vertical speed in meters per second.
It is a read-only property.
This QML property was introduced in Qt Positioning 5.3.
See also verticalSpeedValid.
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 QML property was introduced in Qt Positioning 5.3.
See also verticalSpeed.
© 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.