TunnelRestrictionCodes within feature layer
Posted: Mon May 11, 2015 3:41 pm
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 following minimalistic XML snippet raised a detour based on the tunnel restriction code:
The map shows the route:
Best regards
Bernd
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 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>
Bernd