/**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/ ** ** This file is part of the documentation of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:FDL$ ** GNU Free Documentation License ** Alternatively, this file may be used under the terms of the GNU Free ** Documentation License version 1.3 as published by the Free Software ** Foundation and appearing in the file included in the packaging of ** this file. ** ** Other Usage ** Alternatively, this file may be used in accordance with the terms ** and conditions contained in a signed written agreement between you ** and Nokia. ** ** ** ** ** ** $QT_END_LICENSE$ ** ****************************************************************************/ /*! \page location-positioning-qml.html \title Positioning (QML) \previouspage {qtlocation-module.html}{QtLocation} \brief The Location Positioning API enables location positioning by means of GPS or an NMEA data source. \section1 Location Positioning Location data involves a precisely specified position on the Earth's surface \unicode {0x2014} as provided by a latitude-longitude coordinate \unicode {0x2014} along with associated data, such as: \list \li The date and time at which the position was reported \li The velocity of the device that reported the position \li The altitude of the reported position (height above sea level) \li The bearing of the device in degrees, relative to true north \endlist This data can be extracted through a variety of methods. One of the most well known methods of positioning is GPS (Global Positioning System), a publicly available system that uses radiowave signals received from Earth-orbiting satellites to calculate the precise position and time of the receiver. Another popular method is Cell ID positioning, which uses the cell ID of the cell site that is currently serving the receiving device to calculate its approximate location. These and other positioning methods can all be used with the Location API; the only requirement for a location data source within the API is that it provides a latitude-longitude coordinate with a date/time value, with the option of providing the other attributes listed above. \section2 Example: Centering the map on the current position Here is an example of a client that uses a \l{PositionSource}{position source} to center a \l{Map}{map} on the current position: \code Rectangle { map : Map { // initialize map } PositionSource { onPositionChanged: { // center the map on the current position map.center = position.coordinate } } } \endcode \section2 \b{Flickr Example} The \l{Flickr (QML)}{Flickr Example} uses the Location to download thumbnail images from Flickr relevant to the current location. \section1 Location Position classes \annotatedlist qml-QtLocation5-positioning */