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.

New in version 3.0:

Methods

cost

param distance:

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

Any