QgsNetworkDistanceStrategy class

Strategy for calculating edge cost based on its length.

Contents

Should be used for finding shortest path between two points.

Base classes

class QgsNetworkStrategy
QgsNetworkStrategy defines strategy used for calculation of the edge cost.

Public functions

auto cost(double distance, const QgsFeature& f) const -> QVariant override
Returns edge cost.