Qt Location GeoServices¶
Implementing Qt Location GeoService plugins
The Qt Location provides the majority of its functionality through GeoService plugins. This document outlines how to develop a new GeoService plugin.
Each plugin is described by a json file. The json describes the plugins capabilities and version. Below is an example of a json file used by the OpenStreenMap plugin:<Code snippet "/data/snapshot-qt5full-5.15/qt5/qtbase/../../../plugins/geoservices/osm/osm_plugin.json" not found>
The entries have the following meaning:
The unique name/key of the plugin. Each GeoService plugin must have a unique name.
The provider name of the services. Multiple plugins may have the same name. In such cases the Version string will be used to further distinguish the plugins.
Marks the service plugin as experimental. API developers may choose to ignore such plugins when instanciating
The plugin version. If multiple plugins have the same provider name, the plugin with the higest version will be used.
List of features provided by the plugin/service. Each feature is a string representation of the corresponding features in
QGeoServiceProvider. For more details see
A plugin implementer needs to subclass
QGeoServiceProviderFactoryand as many of the ManagerEngine classes as they want to provide implementations for.
QGeoServiceProviderFactorywill only involves overriding of one of the following methods:
If a plugin does not provide an engine the relevant function should return 0.
The QGeoCameraCapabilities class describes the limitations on camera settings imposed by a mapping plugin.
The QGeoCodingManagerEngine class provides an interface and convenience methods to implementers of QGeoServiceProvider plugins who want to provide support for geocoding operations.
Provides support functionality for map display with QGeoServiceProvider.
The QGeoRoutingManagerEngine class provides an interface and convenience methods to implementers of QGeoServiceProvider plugins who want to provide access to geographic routing information.
The QGeoServiceProviderFactory class is a factory class used as the plugin interface for services related to geographical information.
The QGeoServiceProviderFactoryV2 class is a factory class used as the plugin interface for services related to geographical information.
The QGeoTiledMapReply class manages a tile fetch operation started by an instance of QGeoTiledManagerEngine.
The QPlaceManagerEngine class provides an interface for implementers of QGeoServiceProvider plugins who want to provide access to place functionality.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.