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;
    48 #endif // QGSNETWORKSPEEDSTRATEGY_H QgsNetworkStrategy defines strategy used for calculation of the edge cost. 
 
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. 
 
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.