MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QML Coordinate Element

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

This element was introduced in Mobility 1.2.

Properties

Methods

Detailed Description

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

Property Documentation

altitude : 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 property group was introduced in Mobility 1.2.


latitude : 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 property group was introduced in 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 property group was introduced in 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 Mobility 1.2.