Class: QgsNetworkSpeedStrategy

class qgis.analysis.QgsNetworkSpeedStrategy(attributeId: int, defaultValue: float, toMetricFactor: float)

Bases: qgis._analysis.QgsNetworkStrategy

Default constructor

QgsNetworkSpeedStrategy(QgsNetworkSpeedStrategy)

Strategy for calculating edge cost based on travel time. Should be used for finding fastest path between two points.

New in version 3.0: Enums

Methods

cost
requiredAttributes

Signals

Attributes

cost(self, distance: float, f: QgsFeature) → Any
requiredAttributes(self) → object