TunnelRestrictionCodes within feature layer

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2572
Joined: Mon Apr 14, 2014 10:28 am
Contact:

TunnelRestrictionCodes within feature layer

Post by Bernd Welter »

Hello together,

these days a customer tried to block tunnels based on the TUNNEL RESTRICTION CODE using the feature layer. He made a proper parametrizing but it didn't seem to work. Unfortunately it is important to know that not each tunnel has such a code.

Here is a quick sample that demonstrates the usage. Let's start with the default route through a well known tunnel in Germany: the Saukopftunnel... near the western part of the tunnel you can see the tunnel code icons.

(Mercator waypoints: 963376,6364508 to 968966,6367377)
The default route - through the tunnel
The default route - through the tunnel
The following minimalistic XML snippet raised a detour based on the tunnel restriction code:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Profile>
<Routing majorVersion="2" minorVersion="0">
<Vehicle>
<Load tunnelRestrictionCode="E"/>
</Vehicle>
<Course>
<AdditionalDataRules enabled="true" layerName="TruckAttributes">
<VehicleSpecific enabled="true">
<Malus restrictedTunnel="2502" />
</VehicleSpecific>
</AdditionalDataRules>
</Course>
</Routing>
</Profile>
The map shows the route:
The detour based on the code
The detour based on the code
Best regards
Bernd
Post Reply