I am using the xRoute Feature Layer with traffic incidents and historical speed patterns to compute the time loss on a static route due to traffic. What happens is the following: Although I get a blocked road in the response - featureDescriptions: category=51 - I got a timeloss2 of approximately 21 days. In this case I expected a -1 in the timeloss2 attribute. If I change the starting time to 20181120 then a -1 is returned whereas when the starting time is 20181130 not.
My question: In which cases a -1 is returned and in which cases not? Do I have to check the featureDescription in order to filter out the blocked roads (filter when error class is in 50, 51, 52, 53) or is there a parameter that can be set so that do not have to look over the featureDescription.
Here is one particular example for the above case:
Code: Select all
{
"waypoints": [
{
"$type": "WaypointDesc",
"linkType": "NEXT_SEGMENT",
"fuzzyRadius": 0,
"coords": [
{
"$type": "Point",
"point": {
"$type": "PlainPoint",
"x": 9.7223319227,
"y": 52.446805259
}
}
]
},
{
"$type": "WaypointDesc",
"linkType": "NEXT_SEGMENT",
"fuzzyRadius": 0,
"coords": [
{
"$type": "Point",
"point": {
"$type": "PlainPoint",
"x": 10.273248687,
"y": 52.313392707
}
}
]
}
],
"options": [
{
"parameter": "START_TIME",
"value": "2018-11-30T13:05:28+01:00"
},
{
"parameter": "SPEED_INFOS",
"value": true
}
],
"exceptionPaths": null,
"details": {
"binaryPathDesc": false,
"manoeuvres": false,
"polygon": true,
"detailLevel": "STANDARD",
"dynamicInfo": true,
"segments": true,
"speedLimits": true,
"featureDescriptions": true
},
"callerContext": {
"properties": [
{
"key": "CoordFormat",
"value": "OG_GEODECIMAL"
},
{
"key": "ResponseGeometry",
"value": "WKB"
},
{
"key": "Profile",
"value": "carfast"
},
{
"key": "ProfileXMLSnippet",
"value": "<Profile xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation=\"http:///xroute/schema/XRouteProfile.xsd\"><FeatureLayer majorVersion='1' minorVersion='0'><GlobalSettings enableTimeDependency='true' enableVehicleDependency='true'/><Themes><Theme id='PTV_TrafficIncidents' priorityLevel='101' enabled='true'/><Theme id='PTV_SpeedPatterns' priorityLevel='100' enabled='true'/></Themes></FeatureLayer><Routing majorVersion='2' minorVersion='0'><Course><AdditionalDataRules enabled='true'/><DynamicRouting dynamicTimeOnStaticRoute='true' limitDynamicSpeedToStaticSpeed='true'/></Course></Routing></Profile>"
}
]
}
}
Kind regards