Class: QgsNetworkSpeedStrategy

Strategy for calculating edge cost based on travel time.

Should be used for finding fastest path between two points.

Class Hierarchy

Inheritance diagram of qgis.analysis.QgsNetworkSpeedStrategy

Base classes

QgsNetworkStrategy

Defines strategy used for calculation of the edge cost in networks.

class qgis.analysis.QgsNetworkSpeedStrategy[source]

Bases: QgsNetworkStrategy

__init__(attributeId: int, defaultValue: float, toMetricFactor: float)

Default constructor

Parameters:
  • attributeId (int)

  • defaultValue (float)

  • toMetricFactor (float)

__init__(a0: QgsNetworkSpeedStrategy)
Parameters:

a0 (QgsNetworkSpeedStrategy)