xRoute distanceTimeWeighting Problem
Posted: Thu Nov 19, 2020 10:19 am
Hi,
we've got following problem:
We would like to calculate the fastest and the shortest route between two coordinates. To do that we are using the parameter "distanceTimeWeighting" (100 = fastest; 0 = shortest).
We are using following penalties: which is the default for the "truck11_99t" profile.
Our example waypoints are:
For this route we are getting following result:
shortest route: 85750 m in 5858.583 s fastest route: 132450 m in 6446.185 s
The duration of the fastest route is bigger then the duration of the shortest route.
If we set all the penalties to 0, then we get a result where the duration of fastest route is smaller than the shortest.
But we are trying to get a route information for trucks, so I think the penalties are important.
Is that a bug?
we've got following problem:
We would like to calculate the fastest and the shortest route between two coordinates. To do that we are using the parameter "distanceTimeWeighting" (100 = fastest; 0 = shortest).
We are using following penalties:
Code: Select all
"penalties": [0, 20, 30, 35, 40, 90, 100, 100]
Our example waypoints are:
Code: Select all
"waypoints": [
{
"$type": "OffRoadWaypoint",
"location": {
"offRoadCoordinate": {
"x": 9.94179,
"y": 50.93384
}
}
},
{
"$type": "OffRoadWaypoint",
"location": {
"offRoadCoordinate": {
"x": 9.9040498475,
"y": 51.530239138
}
}
}
],
shortest route: 85750 m in 5858.583 s fastest route: 132450 m in 6446.185 s
The duration of the fastest route is bigger then the duration of the shortest route.
If we set all the penalties to 0, then we get a result where the duration of fastest route is smaller than the shortest.
But we are trying to get a route information for trucks, so I think the penalties are important.
Is that a bug?