Class: QgsNetworkDistanceStrategy

class qgis.analysis.QgsNetworkDistanceStrategy

Bases: QgsNetworkStrategy

Strategy for calculating edge cost based on its length. Should be used for finding shortest path between two points.

Methods

cost

param distance

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

Any