16 #ifndef QGSNETWORKSPEEDSTRATEGY_H
17 #define QGSNETWORKSPEEDSTRATEGY_H
20 #include "qgis_analysis.h"
38 QVariant
cost(
double distance,
const QgsFeature &f )
const override;
44 double mToMetricFactor;
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Strategy for calculating edge cost based on travel time.
QgsNetworkStrategy defines strategy used for calculation of the edge cost.
virtual QVariant cost(double distance, const QgsFeature &f) const =0
Returns edge cost.
virtual QSet< int > requiredAttributes() const
Returns a list of the source layer attributes needed for cost calculation.