- class qgis.analysis.QgsNetworkStrategy¶
QgsNetworkStrategydefines strategy used for calculation of the edge cost. For example it can take into account travel distance, amount of time or money. Currently there are two strategies implemented in the analysis library:
QgsNetworkStrategyimplemented using “strategy” design pattern.
New in version 3.0.
QgsNetworkStrategy() Default constructor
- cost(self, distance: float, f: QgsFeature) Any ¶
Returns edge cost
distance (float) –
f (QgsFeature) –
- Return type