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 – - Error
- errorString – str 
 
- Return type:
 
 - Returns a new - QGeoCodingManagerEngineinstance, initialized with- parameters, which implements the location geocoding functionality.- If - erroris not- Noneit should be set to- NoErroron success or an appropriate- Erroron failure.- If - errorStringis not- Noneit should be set to a string describing any error which occurred.- The default implementation returns - None, which causes a- NotSupportedErrorin- QGeoServiceProvider.- 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 - QPlaceManagerEngineinstance, initialized with- parameters, which implements the place searching functionality.- If - erroris not- Noneit should be set to- NoErroron success or an appropriate- Erroron failure.- If - errorStringis not- Noneit should be set to a string describing any error which occurred.- The default implementation returns - None, which causes a- NotSupportedErrorin- QGeoServiceProvider.- 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 - QGeoRoutingManagerEngineinstance, initialized with- parameters, which implements routing functionality.- If - erroris not- Noneit should be set to- NoErroron success or an appropriate- Erroron failure.- If - errorStringis not- Noneit should be set to a string describing any error which occurred.- The default implementation returns - None, which causes a- NotSupportedErrorin- QGeoServiceProvider.- 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.