Considering custom Feature Layers by applying restrictions based on dimensions

Blocking a road to vehicles above a certain height

This code sample exposes how to apply penalties blocking road segments depending on dimensions of the vehicles.

When creating the Feature Layer a maximum height not to be exceeded is filled with the property maxHeight. And during the routing, this maximum height is compared to the height filled in the vehicle profile.

It is also possible to handle other kind of restrictions based on vehicleClosed The term vehicle describes what is being routed or planned for. Vehicles are used in route calculation, distance matrix calculation and effectively also in tour planning. In route calculation, vehicle properties like overall size, weight and speed are in focus. In tour planning, it is vehicle properties like capacity and availability. Commonly a vehicle is motorized, like a truck - including its trailer or a car. However also a bike or even a pedestrian are included in this definition. dimensions such as width and length or restrictions based on the vehicle weight. All dimension restrictions are documented in the PTV_RoadAttributestheme documentation.