C

Position QML Type

The Position type holds positional data at a particular point in time, such as coordinate (longitude, latitude) and direction. More...

Import Statement: import QtPositioning
Since: Qt Quick Ultralite 2.11

Properties

Detailed Description

The Position type holds values related to geographic location such as a coordinate (longitude and latitude), and the validity of the data.

Primarily, it's 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 direction has not been received). As a result, corresponding "valid" properties are available (for example coordinate, and longitudeValid and latitudeValid, and so on) 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 Map example application.

See also PositionSource and geoCoordinate.

Property Documentation

coordinate : geoCoordinate [read-only]

This property holds the latitude and longitude value of the Position.

See also longitudeValid and latitudeValid.


direction : double [read-only]

This property holds the value of the direction of travel in degrees from true north.

See also directionValid.


directionValid : bool [read-only]

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).

See also direction.


latitudeValid : bool [read-only]

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.


longitudeValid : bool [read-only]

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.


Available under certain Qt licenses.
Find out more.