QGeoCodingManager Class
The QGeoCodingManager class provides support for geocoding operations. More...
| Header: | #include <QGeoCodingManager> |
| qmake: | QT += location |
| Since: | Qt 5.6 |
| Inherits: | QObject |
This class was introduced in Qt 5.6.
Detailed Description
The geocode() and reverseGeocode() functions return QGeoCodeReply objects, which manage these operations and report on the result of the operations and any errors which may have occurred.
The geocode() and reverseGeocode() functions can be used to convert QGeoAddress instances to QGeoCoordinate instances and vice-versa.
The geocode() function is also overloaded to allow a user to perform a free text geocoding operation, if the string provided can be interpreted as an address it can be geocoded to coordinate information.
Instances of QGeoCodingManager can be accessed with QGeoServiceProvider::geocodingManager().