Considering custom Feature Layers by applying absolute speed

The custom Feature Layers can be used to set the absolute speed for a segment.

The following code sample exposes how to apply absolute speed to a segment.

When creating the Feature Layer the absolute speed of the segment is set. This absolute speed is then considered during the routing.

The applied absolute speed overwrites all other speeds ; i.e. PTV_SpeedPatterns, PTV_TraficIncidents, or any other FeatureLayers.