The Location API provides a library for mapping, navigation and place information.
The Qt Location API provides the developer with a set of functions to interact with maps, navigational data and places of interest. This is particularly useful when associated with current position information which can be retrieved via the QtPositioning 模块。
With the Maps API we can associate a position with a map in various formats supplied by a backend. Then the Places API could be used to populate places on the Map or even specify the current position as a place of interest and associate it with an icon, contact details and other information.
The following table provides links to more detailed information on sections of the Qt Location C++ API.
Maps and Navigation | Displaying maps and finding routes. |
Places | Searching for and managing points of interest. |
Geoservices Plugin Implementation | Implement new geoservices and positioning plugins. |
Aggregates access to services which provide geographical information |
Currently it is not possible to interact with maps data via C++. The only available interface is the Maps and Navigation (QML) API.
Represents the information relevant to the point at which two QGeoRouteSegments meet | |
Represents a route between two points | |
Represents a leg of a route, that is the portion of a route between one waypoint and the next. This is a subclass of QGeoRoute, exposing route leg specific API | |
Manages an operation started by an instance of QGeoRoutingManager | |
Represents the parameters and restrictions which define a request for routing information | |
Represents a segment of a route | |
Support for geographic routing operations |
Manages an operation started by an instance of QGeoCodingManager | |
Support for geocoding operations |
Interface and convenience methods to implementers of QGeoServiceProvider plugins who want to provide support for geocoding operations | |
Interface and convenience methods to implementers of QGeoServiceProvider plugins who want to provide access to geographic routing information | |
Factory class used as the plugin interface for services related to geographical information | |
Interface for implementers of QGeoServiceProvider plugins who want to provide access to place functionality |