Truck restrictions
Posted: Wed Jan 10, 2018 3:43 pm
Greetings,
while using the PTV xServer .NET and testing the calculateExtendedRoute operation, I have encountered some unusual behavior concerning the restrictions on the route. It seems like some restrictions are not being considered.
I have two examples.
Example 1:
A bridge between the border of Hungary (Komárom) and Slovakia (Komárno). The bridge has two restrictions: max vehicle weight (20t) and max vehicle height (4.3m). If i use the PTV Map&Guide internet with the truck40t_02-00_M truck profile, the calculated route considers the restrictions and creates a path that bypasses the bridge (if I change the parameters GVWR <= 20t and vehicle height <= 4.3m, the calculated route now goes correctly across the bridge).
The problem occurs when I call the calculateExtendedRoute operation with my parameters. If I set the vehicle height to something above 4.3m the bridge height restriction is considered and the calculated route bypasses the bridge, however, if I set the weight to something above 20t, the restriction is not considered and the route still goes over the bridge.
Example XML request:
Example 2:
The road from Podkoren (Slovenia) to Tschau (Austria). The road is blocked for vehicles with a trailer. Once again, when using the PTV Map&Guide the restriction is considered and the calculated route goes around it, but when I call the operation, the restriction is once again not considered and the calculated route goes on the restricted road.
The XML request is basically the same, except for the WaypointDesc:
I am including the PTV_TruckAttributes and PTV_RestrictionZones layers through ProfileXMLSnippet in the CallerContext property.
Any suggestion as to why the differences occur will be greatly appreciated. Thank you again in advance.
Best regards,
Rok
while using the PTV xServer .NET and testing the calculateExtendedRoute operation, I have encountered some unusual behavior concerning the restrictions on the route. It seems like some restrictions are not being considered.
I have two examples.
Example 1:
A bridge between the border of Hungary (Komárom) and Slovakia (Komárno). The bridge has two restrictions: max vehicle weight (20t) and max vehicle height (4.3m). If i use the PTV Map&Guide internet with the truck40t_02-00_M truck profile, the calculated route considers the restrictions and creates a path that bypasses the bridge (if I change the parameters GVWR <= 20t and vehicle height <= 4.3m, the calculated route now goes correctly across the bridge).
The problem occurs when I call the calculateExtendedRoute operation with my parameters. If I set the vehicle height to something above 4.3m the bridge height restriction is considered and the calculated route bypasses the bridge, however, if I set the weight to something above 20t, the restriction is not considered and the route still goes over the bridge.
Example XML request:
Code: Select all
<?xml version="1.0" encoding="utf-16"?>
<calculateExtendedRouteRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ArrayOfWaypointDesc_1>
<WaypointDesc fuzzyRadius="0" linkType="AUTO_LINKING" xmlns="http://xroute.xserver.ptvag.com">
<wrappedCoords>
<Point xmlns="http://common.xserver.ptvag.com">
<kml xsi:nil="true" />
<point x="18.118686676025391" y="47.742900848388672" />
</Point>
</wrappedCoords>
<nodeID xsi:nil="true" />
<wrappedRoutingOptions xsi:nil="true" />
<wrappedSegmentID xsi:nil="true" />
<wrappedVehicleOptions xsi:nil="true" />
<viaType xsi:nil="true" />
</WaypointDesc>
<WaypointDesc fuzzyRadius="0" linkType="AUTO_LINKING" xmlns="http://xroute.xserver.ptvag.com">
<wrappedCoords>
<Point xmlns="http://common.xserver.ptvag.com">
<kml xsi:nil="true" />
<point x="18.129201889038086" y="47.762100219726563" />
</Point>
</wrappedCoords>
<nodeID xsi:nil="true" />
<wrappedRoutingOptions xsi:nil="true" />
<wrappedSegmentID xsi:nil="true" />
<wrappedVehicleOptions xsi:nil="true" />
<viaType xsi:nil="true" />
</WaypointDesc>
</ArrayOfWaypointDesc_1>
<ArrayOfRoutingOption_2>
<RoutingOption parameter="COUNTRY_ENCODING" value="ISO2" xmlns="http://xroute.xserver.ptvag.com" />
<RoutingOption parameter="OPTIMIZATION" value="90" xmlns="http://xroute.xserver.ptvag.com" />
<RoutingOption parameter="SPEED_PROFILE" value="80,55,65,30,55,23,45,20,40,18,30,15,12,7,6,4" xmlns="http://xroute.xserver.ptvag.com" />
</ArrayOfRoutingOption_2>
<ArrayOfExceptionPath_3 xsi:nil="true" />
<ResultListOptions_4 totalRectangle="false" tollManoeuvres="false" texts="false" segments="true" segmentAttributes="false" polygon="true" nodes="false" manoeuvreGroups="false" urbanManoeuvres="false" manoeuvreAttributes="false" dynamicInfo="false" detailLevel="ALL" brunnelManoeuvres="false" boundingRectanglesOffset="0" boundingRectanglesC="0" binaryPathDesc="true" manoeuvres="false">
<cenEmissionConfiguration xsi:nil="true" xmlns="http://xroute.xserver.ptvag.com" />
<destDetail xsi:nil="true" xmlns="http://xroute.xserver.ptvag.com" />
<emissions emissionLevel="BASIC" xmlns="http://xroute.xserver.ptvag.com" />
<hbefaType version="HBEFA_3_2" xmlns="http://xroute.xserver.ptvag.com" />
<startDetail xsi:nil="true" xmlns="http://xroute.xserver.ptvag.com" />
</ResultListOptions_4>
<CountryInfoOptions_5 xmlns:q1="http://xroute.xserver.ptvag.com" xsi:type="q1:CountryInfoVehicleOptions" allEuro="true" calculatePartTollCosts="true" detailedTollCosts="true">
<q1:wrappedReductionIDs xsi:nil="true" />
<q1:wrappedTollScenarios xsi:nil="true" />
<q1:wrappedOptions>
<q1:VehicleOption parameter="TYPE" value="TRL" />
<q1:VehicleOption parameter="LENGTH" value="1875" />
<q1:VehicleOption parameter="WIDTH" value="255" />
<q1:VehicleOption parameter="HEIGHT" value="400" />
<q1:VehicleOption parameter="TOTAL_WEIGHT" value="40000" />
<q1:VehicleOption parameter="TRAILER_WEIGHT" value="15000" />
<q1:VehicleOption parameter="EMPTY_WEIGHT" value="15000" />
<q1:VehicleOption parameter="LOAD_WEIGHT" value="21250" />
<q1:VehicleOption parameter="AXLE_WEIGHT" value="11500" />
<q1:VehicleOption parameter="NUMBER_OF_AXLES" value="5" />
<q1:VehicleOption parameter="CYLINDER_CAPACITY" value="12000" />
<q1:VehicleOption parameter="HEIGHT_ABOVE_FRONT_AXLE" value="400" />
<q1:VehicleOption parameter="EMISSION_CLASS" value="EURO_5" />
<q1:VehicleOption parameter="EMISSION_TECHNOLOGY" value="EGR" />
<q1:VehicleOption parameter="FUEL_TYPE" value="DIESEL" />
<q1:VehicleOption parameter="PARTICLE_FILTER_TYPE" value="NONE" />
</q1:wrappedOptions>
</CountryInfoOptions_5>
<CallerContext_6>
<wrappedProperties xmlns="http://baseservices.service.jabba.ptvag.com">
<CallerContextProperty key="CoordFormat" value="OG_GEODECIMAL" />
<CallerContextProperty key="ProfileXMLSnippet" value="<?xml version=\"1.0\" encoding=\"utf-8\"?><Profile xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><FeatureLayer majorVersion=\"1\" minorVersion=\"0\"><GlobalSettings enableTimeDependency=\"true\" /><Themes><Theme id=\"PTV_TruckAttributes\" enabled=\"true\" priorityLevel=\"0\" /><Theme id=\"PTV_RestrictionZones\" enabled=\"true\" priorityLevel=\"0\" /></Themes></FeatureLayer><Routing majorVersion=\"2\" minorVersion=\"1\"><Course><AdditionalDataRules enabled=\"true\" /></Course></Routing></Profile>" />
</wrappedProperties>
</CallerContext_6>
</calculateExtendedRouteRequest>
Example 2:
The road from Podkoren (Slovenia) to Tschau (Austria). The road is blocked for vehicles with a trailer. Once again, when using the PTV Map&Guide the restriction is considered and the calculated route goes around it, but when I call the operation, the restriction is once again not considered and the calculated route goes on the restricted road.
The XML request is basically the same, except for the WaypointDesc:
Code: Select all
<ArrayOfWaypointDesc_1>
<WaypointDesc fuzzyRadius="0" linkType="AUTO_LINKING" xmlns="http://xroute.xserver.ptvag.com">
<wrappedCoords>
<Point xmlns="http://common.xserver.ptvag.com">
<kml xsi:nil="true" />
<point x="13.756142616271973" y="46.493747711181641" />
</Point>
</wrappedCoords>
<nodeID xsi:nil="true" />
<wrappedRoutingOptions xsi:nil="true" />
<wrappedSegmentID xsi:nil="true" />
<wrappedVehicleOptions xsi:nil="true" />
<viaType xsi:nil="true" />
</WaypointDesc>
<WaypointDesc fuzzyRadius="0" linkType="AUTO_LINKING" xmlns="http://xroute.xserver.ptvag.com">
<wrappedCoords>
<Point xmlns="http://common.xserver.ptvag.com">
<kml xsi:nil="true" />
<point x="13.77748966217041" y="46.547710418701172" />
</Point>
</wrappedCoords>
<nodeID xsi:nil="true" />
<wrappedRoutingOptions xsi:nil="true" />
<wrappedSegmentID xsi:nil="true" />
<wrappedVehicleOptions xsi:nil="true" />
<viaType xsi:nil="true" />
</WaypointDesc>
</ArrayOfWaypointDesc_1>
Any suggestion as to why the differences occur will be greatly appreciated. Thank you again in advance.
Best regards,
Rok