Class: QgsNetworkSpeedStrategy¶
- class qgis.analysis.QgsNetworkSpeedStrategy¶
Bases:
QgsNetworkStrategy
Strategy for calculating edge cost based on travel time. Should be used for finding fastest path between two points.
QgsNetworkSpeedStrategy(attributeId: int, defaultValue: float, toMetricFactor: float) Default constructor
QgsNetworkSpeedStrategy(
QgsNetworkSpeedStrategy
)- cost(self, distance: float, f: QgsFeature) Any ¶
- Parameters:
distance (float)
f (QgsFeature)
- Return type:
Any
- requiredAttributes(self) object ¶
- Return type:
object