QtMobility Reference Documentation

Contents

QML Coordinate Element

The Coordinate element holds various positional data, such as latitude, longitude and altitude. More...

Properties

Methods

Detailed Description

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

Property Documentation

read-onlyaltitude : double

This property holds the value of altitude (metres above sea level). If the property has not been set, its default value is zero.

This documentation was introduced in Qt Mobility Mobility 1.2.


read-onlylatitude : double

This property holds latitude value of the geographical position (decimal degrees). A positive latitude indicates the Northern Hemisphere, and a negative latitude indicates the Southern Hemisphere. If the property has not been set, its default value is zero.

This documentation was introduced in Qt Mobility Mobility 1.2.


longitude : double

This property holds the longitude value of the geographical position (decimal degrees). A positive longitude indicates the Eastern Hemisphere, and a negative longitude indicates the Western Hemisphere If the property has not been set, its default value is zero.

This documentation was introduced in Qt Mobility Mobility 1.2.


Method Documentation

Coordinate::distanceTo ( Coordinate )

Returns the distance (in meters) from this coordinate to the coordinate specified by other. Altitude is not used in the calculation.

This calculation returns the great-circle distance between the two coordinates, with an assumption that the Earth is spherical for the purpose of this calculation.

This documentation was introduced in Qt Mobility Mobility 1.2.