PySide6.QtLocation.QGeoServiceProviderFactory¶
- class QGeoServiceProviderFactory¶
The
QGeoServiceProviderFactory
class 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 –
Error
errorString – str
- Return type:
Returns a new
QGeoCodingManagerEngine
instance, initialized withparameters
, which implements the location geocoding functionality.If
error
is notNone
it should be set toNoError
on success or an appropriateError
on failure.If
errorString
is notNone
it should be set to a string describing any error which occurred.The default implementation returns
None
, which causes aNotSupportedError
inQGeoServiceProvider
.- createPlaceManagerEngine(parameters, error, errorString)¶
- Parameters:
parameters – Dictionary with keys of type .QString and values of type QVariant.
error –
Error
errorString – str
- Return type:
Returns a new
QPlaceManagerEngine
instance, initialized withparameters
, which implements the place searching functionality.If
error
is notNone
it should be set toNoError
on success or an appropriateError
on failure.If
errorString
is notNone
it should be set to a string describing any error which occurred.The default implementation returns
None
, which causes aNotSupportedError
inQGeoServiceProvider
.- createRoutingManagerEngine(parameters, error, errorString)¶
- Parameters:
parameters – Dictionary with keys of type .QString and values of type QVariant.
error –
Error
errorString – str
- Return type:
Returns a new
QGeoRoutingManagerEngine
instance, initialized withparameters
, which implements routing functionality.If
error
is notNone
it should be set toNoError
on success or an appropriateError
on failure.If
errorString
is notNone
it should be set to a string describing any error which occurred.The default implementation returns
None
, which causes aNotSupportedError
inQGeoServiceProvider
.- setQmlEngine(engine)¶
- Parameters:
engine –
QQmlEngine
Notify the plugin when the qml
engine
is ready. In this moment the plugins can use it to register Image Providers.The default implementation does nothing.