we have some use cases where the destination waypoint coordinates linked to a segment, that is: isBlockedCar=True and isBlockedTruck=True
In this situation we get the error message:
Code: Select all
{
"errorMessage": "cannot calculate route (concerning leg 1)",
"errorKey": "2500",
"exceptionType": "com.ptvag.xserver.xroute.XRouteException"
}
For us it's not really feasible to move the coordinates till it is routable when this occurs.
We already tried a few settings like:
- Setting profile to "delivery" is not helping.
- Setting <SegmentBlockingViolations enabled="true" cost="100000" />
- Setting destination waypoint linkType to NEXT_NODE is not helping
- Setting destination waypoint linkType to NEXT_MAIN_NODE works, but we wonder if there are main nodes with these segment attributes, which will not work
- Lowering EmergencyVehicles segmentMalus to "2500" also works, but we wouldn't use that if possible
We are using xRouteServer 1.28.1 with PTV_Europe_City_Map_Premium_2021_1H, but 2019 map gave similar result.
An example calculateRoute request:
Code: Select all
{
"waypoints": [
{
"$type": "WaypointDesc",
"linkType": "NEXT_SEGMENT",
"fuzzyRadius": 0,
"coords": [
{
"$type": "Point",
"point": {
"$type": "PlainPoint",
"x": 7.754641,
"y": 47.517905
}
}
]
},
{
"$type": "WaypointDesc",
"linkType": "NEXT_SEGMENT",
"fuzzyRadius": 0,
"coords": [
{
"$type": "Point",
"point": {
"$type": "PlainPoint",
"x": 7.779298,
"y": 47.468936
}
}
]
}
],
"options": [ ],
"exceptionPaths": null,
"details": {
"polygon": true,
"detailLevel": "BORDERS"
},
"callerContext": {
"properties": [
{
"key": "ResponseGeometry",
"value": "PLAIN"
},
{
"key": "Profile",
"value": "delivery"
}
]
}
}
Tibor