内容表

上一话题

QGeoServiceProvider

下一话题

QGeoServiceProviderFactoryV2

QGeoServiceProviderFactory

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

Inheritance diagram of PySide2.QtLocation.QGeoServiceProviderFactory

继承者: QGeoServiceProviderFactoryV2

详细描述

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 ( 参数 , error , errorString )
参数
  • 参数

  • error Error

  • errorString – unicode

返回类型

QGeoCodingManagerEngine

返回新 QGeoCodingManagerEngine instance, initialized with 参数 , which implements the location geocoding functionality.

error is not 0 it should be set to NoError on success or an appropriate Error 当失败时。

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 ( 参数 , error , errorString )
参数
  • 参数

  • error Error

  • errorString – unicode

返回类型

QPlaceManagerEngine

返回新 QPlaceManagerEngine instance, initialized with 参数 , which implements the place searching functionality.

error is not 0 it should be set to NoError on success or an appropriate Error 当失败时。

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 ( 参数 , error , errorString )
参数
  • 参数

  • error Error

  • errorString – unicode

返回类型

QGeoRoutingManagerEngine

返回新 QGeoRoutingManagerEngine instance, initialized with 参数 , which implements routing functionality.

error is not 0 it should be set to NoError on success or an appropriate Error 当失败时。

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 .