Maps and Navigation (C++)▲
Maps and Navigation provides C++ utilities for geocoding (finding a geographic coordinate from a street address) and navigation (including driving and walking directions).
Currently it is not possible to interact with maps via C++. Mapping applications must use the Maps and Navigation (QML) API.
I. Geocoding▲
In C++, an address-to-coordinate query is performed using the geocode() method of the QGeoCodingManager class. For coordinate-to-address queries, the reverseGeocode() method is available on the same class. Instances of QGeoCodingManager are available via QGeoServiceProvider.
Key Classes
Provides a QGeoCodingManager instance ready for use. |
|
Accepts queries and produces QGeoCodeReply objects. |
|
Contains the results of a geocoding query. |
II. Navigation▲
Key Classes
Provides a QGeoCodingManager instance ready for use. |
|
Accepts queries and produces QGeoRouteReply objects. |
|
Contains the results of a routing query. |
|
Contains information about a route. |