QGeoServiceProviderFactory

The QGeoServiceProviderFactory class is a factory class used as the plugin interface for services related to geographical information. More

Inheritance diagram of PySide2.QtLocation.QGeoServiceProviderFactory

Inherited by: QGeoServiceProviderFactoryV2

Detailed Description

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.

class QGeoServiceProviderFactory
PySide2.QtLocation.QGeoServiceProviderFactory.createGeocodingManagerEngine(parameters, error, errorString)
Parameters
  • parametersQVariantMap

  • errorError

  • errorString – unicode

Return type

QGeoCodingManagerEngine

Returns a new QGeoCodingManagerEngine instance, initialized with parameters , which implements the location geocoding functionality.

If error is not 0 it should be set to NoError on success or an appropriate Error on failure.

If errorString is not 0 it should be set to a string describing any error which occurred.

The default implementation returns 0, which causes a NotSupportedError in QGeoServiceProvider .

PySide2.QtLocation.QGeoServiceProviderFactory.createPlaceManagerEngine(parameters, error, errorString)
Parameters
  • parametersQVariantMap

  • errorError

  • errorString – unicode

Return type

QPlaceManagerEngine

Returns a new QPlaceManagerEngine instance, initialized with parameters , which implements the place searching functionality.

If error is not 0 it should be set to NoError on success or an appropriate Error on failure.

If errorString is not 0 it should be set to a string describing any error which occurred.

The default implementation returns 0, which causes a NotSupportedError in QGeoServiceProvider .

PySide2.QtLocation.QGeoServiceProviderFactory.createRoutingManagerEngine(parameters, error, errorString)
Parameters
  • parametersQVariantMap

  • errorError

  • errorString – unicode

Return type

QGeoRoutingManagerEngine

Returns a new QGeoRoutingManagerEngine instance, initialized with parameters , which implements routing functionality.

If error is not 0 it should be set to NoError on success or an appropriate Error on failure.

If errorString is not 0 it should be set to a string describing any error which occurred.

The default implementation returns 0, which causes a NotSupportedError in QGeoServiceProvider .