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.

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

QGeoServiceProvider Provides a QGeoCodingManager instance ready for use.
QGeoCodingManager Accepts queries and produces QGeoCodeReply objects.
QGeoCodeReply Contains the results of a geocoding query.

In C++, a route query is performed using the calculate() method of the QGeoRoutingManager class. The returned route reply can contain multiple routes to the same destination.

Key Classes

QGeoServiceProvider Provides a QGeoCodingManager instance ready for use.
QGeoRoutingManager Accepts queries and produces QGeoRouteReply objects.
QGeoRouteReply Contains the results of a routing query.
QGeoRoute Contains information about a route.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support