C

Qul::GeoPositionInfo Struct

struct Qul::GeoPositionInfo

The GeoPositionInfo class provides an API to communicate position information to PositionSource QML type. More...

Header: #include <qul/geopositionsource.h>
Since: Qt Quick Ultralite 2.11

Public Functions

GeoPositionInfo()
GeoPositionInfo(double latitude_, double longitude_, double direction_)
bool hasDirection() const
bool hasLatitude() const
bool hasLongitude() const

Public Variables

double direction
double latitude
double longitude

Detailed Description

This type is only used in the context of Qul::GeoPositionSource::getCurrentPosition as a parameter which is used by the PositionSource item to retrieve position information.

Note: The Qt for MCUs support for Qul::GeoPositionInfo is experimental only.

See also Qul::GeoPositionSource.

Member Function Documentation

GeoPositionInfo::GeoPositionInfo()

Creates an invalid GeoPositionInfo object.

GeoPositionInfo::GeoPositionInfo(double latitude_, double longitude_, double direction_)

Creates a GeoPositionInfo object with the given coordinates and direction.

bool GeoPositionInfo::hasDirection() const

This function returns true if direction has been received. Otherwise, it returns false.

The return value of this function is used by the PositionSource item to set the value of Position::directionValid property.

bool GeoPositionInfo::hasLatitude() const

This function returns true if coordinate's latitude has been received. Otherwise, it returns false.

The return value of this function is used by the PositionSource item to set the value of Position::latitudeValid property.

bool GeoPositionInfo::hasLongitude() const

This function returns true if coordinate's longitude has been received. Otherwise, it returns false.

The return value of this function is used by the PositionSource item to set the value of Position::longitudeValid property.

Member Variable Documentation

double GeoPositionInfo::direction

This variable is set by the user of the application to the value of direction retrieved from a GPS or other similar positioning systems.

The value of this variable is used by the PositionSource item to set the value of direction of Position::direction property.

double GeoPositionInfo::latitude

This variable is set by the user of the application to the value of coordinate's latitude retrieved from GPS or other similar positioning systems.

The value of this variable is used by the PositionSource item to set the value of coordinate's latitude of Position::coordinate property.

double GeoPositionInfo::longitude

This variable is set by the user of the application to the value of coordinate's longitude retrieved from GPS or other similar positioning systems.

The value of this variable is used by the PositionSource item to set the value of coordinate's longitude of Position::coordinate property.

Available under certain Qt licenses.
Find out more.