Problems with routing with enabled violations
Posted: Thu Dec 01, 2016 11:00 am
Hello,
I have following problem. I am trying to calculate route with certain types of roads blocked. Although I have set parameter ALLOW_SEGMENT_VIOLATIONS to true (as suggested here) I am getting error that route cannot be found.
Roads are blocked in profileXMLSnippet as shown below
I have tried enabling violations both with routing parameters and xml profiles. I am using PTV xServer INTERNET with Javascript so maybe the problem is not with routing but with Javascript API?
Full request options are in the attached file.
Thank You in advance.
Krzysztof
I have following problem. I am trying to calculate route with certain types of roads blocked. Although I have set parameter ALLOW_SEGMENT_VIOLATIONS to true (as suggested here) I am getting error that route cannot be found.
Code: Select all
{
"errorMessage": "cannot calculate route (concerning leg 1)",
"errorKey": "2500",
"exceptionType": "com.ptvag.xserver.xroute.XRouteException"
}
Code: Select all
<BasicDataRules>
<Network rampMalus="10">
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="2501"/>
<MalusByNetworkClass malus="2501"/>
<MalusByNetworkClass malus="2501"/>
</Network>
</BasicDataRules>
Full request options are in the attached file.
Thank You in advance.
Krzysztof