PySide6.QtLocation.QGeoServiceProviderFactory¶
- class QGeoServiceProviderFactory¶
The
QGeoServiceProviderFactoryclass is a factory class used as the plugin interface for services related to geographical information. More…Synopsis¶
Virtual methods¶
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
Note
There are no source or binary compatibility guarantees for the backend classes. The API is only guaranteed to work with the Qt version it was developed against. API changes will however only be made in minor releases. (6.6, 6.7, and so on.)
Implementers must provide a unique combination of providerName() and providerVersion() per plugin.
The other functions should be overridden if the plugin supports the associated set of functionality.
- createGeocodingManagerEngine(parameters, error, errorString)¶
- Parameters:
parameters – Dictionary with keys of type .QString and values of type QVariant.
error –
ErrorerrorString – str
- Return type:
Returns a new
QGeoCodingManagerEngineinstance, initialized withparameters, which implements the location geocoding functionality.If
erroris notNoneit should be set toNoErroron success or an appropriateErroron failure.If
errorStringis notNoneit should be set to a string describing any error which occurred.The default implementation returns
None, which causes aNotSupportedErrorinQGeoServiceProvider.- createPlaceManagerEngine(parameters, error, errorString)¶
- Parameters:
parameters – Dictionary with keys of type .QString and values of type QVariant.
error –
ErrorerrorString – str
- Return type:
Returns a new
QPlaceManagerEngineinstance, initialized withparameters, which implements the place searching functionality.If
erroris notNoneit should be set toNoErroron success or an appropriateErroron failure.If
errorStringis notNoneit should be set to a string describing any error which occurred.The default implementation returns
None, which causes aNotSupportedErrorinQGeoServiceProvider.- createRoutingManagerEngine(parameters, error, errorString)¶
- Parameters:
parameters – Dictionary with keys of type .QString and values of type QVariant.
error –
ErrorerrorString – str
- Return type:
Returns a new
QGeoRoutingManagerEngineinstance, initialized withparameters, which implements routing functionality.If
erroris notNoneit should be set toNoErroron success or an appropriateErroron failure.If
errorStringis notNoneit should be set to a string describing any error which occurred.The default implementation returns
None, which causes aNotSupportedErrorinQGeoServiceProvider.- setQmlEngine(engine)¶
- Parameters:
engine –
QQmlEngine
Notify the plugin when the qml
engineis ready. In this moment the plugins can use it to register Image Providers.The default implementation does nothing.