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 PySide2.QtLocation.QGeoServiceProviderFactory
PySide2.QtLocation.QGeoServiceProviderFactory.createGeocodingManagerEngine(parameters, error, errorString)
Parameters:
  • parameters

  • errorError

  • errorString – str

Return type:

PySide2.QtLocation.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:
  • parameters

  • errorError

  • errorString – str

Return type:

PySide2.QtLocation.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:
  • parameters

  • errorError

  • errorString – str

Return type:

PySide2.QtLocation.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 .