Qt Mobility Reference Documentation

QML Position Element

The Position element holds various positional data, such as coordinate (longitude, latitude, altitude) and speed. More...

Properties

Detailed Description

The Position element holds various positional data, such as coordinate, (longitude, latitude, and altitude) and speed. Not all of these are always available (e.g. latitude and longitude may be valid, but speed update has not been received or set manually), and hence there are corresponding validity attributes which can be used when writing applications.

The Position element is part of the QtMobility.location 1.1 module.

See also PositionSource.


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). 'Valid' is meaningful only if the altitude is from PositionSource.

See also altitude.


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). 'Valid' is meaningful only if the latitude (coordinate) is from PositionSource.

See also latitude.


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). 'Valid' is meaningful only if the longitude is from PositionSource.

See also longitude.


speed : double

This property holds the value of speed (groundspeed, metres / second). If the property has not been set, its default value is zero.

See also speedValid, altitude, longitude, and latitude.


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). 'Valid' is meaningful only if the speed is from PositionSource.

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.


X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.