16#ifndef QGSNETWORKSPEEDSTRATEGY_H
17#define QGSNETWORKSPEEDSTRATEGY_H
20#include "qgis_analysis.h"
36 QVariant
cost(
double distance,
const QgsFeature &f )
const override;
42 double mToMetricFactor;
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
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.