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