Considering custom Feature Layers by applying extra driving time

The custom Feature Layers can be used to add extra driving time on a segment.

The following code sample exposes how to apply such an extra driving time to a segment.

When creating the Feature Layer an extra driving time of 5 seconds is set to the segment. During the routing, this extra driving time is added to the current driving time of the segment.

It is also added whatever the way the driving time is calculated ; i.e. using PTV_SpeedPatterns, PTV_TraficIncidents, or any other FeatureLayers.