QtMobility Reference Documentation

Contents

QML Coordinate Element

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

  • List of all members, including inherited members
  • 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.


    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.


    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.


    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.