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.

New in version 3.0.

QgsNetworkSpeedStrategy(attributeId: int, defaultValue: float, toMetricFactor: float) Default constructor

QgsNetworkSpeedStrategy(QgsNetworkSpeedStrategy)

Methods

cost

param distance

requiredAttributes

rtype

object

cost(self, distance: float, f: QgsFeature) Any
Parameters
Return type

Any

requiredAttributes(self) object
Return type

object