Hi.
In order to compute the route A -> B -> C we use the calculateBulkRouteInfo (waypoints = [[A,B],[B,C]]) with the configuration as below.
Is there an equivalent calculateRoute call with waypoints [A,B,C] that gives the same result as the calculateBulkRouteInfo response. As in calculateBulkRouteInfo we used AUTO_LINKING and WAYPOINTSDESC for A, B and C (see code below). Also I tried the option VIA_STOP+fuzzyRadius=0 for intermediate point B. But there is still a difference to the calculateBulkRouteInfo response.
When using the calculateRoute service with several waypoints we get different results for the times and the distances between the waypoints. In detail we get the following result (where we inverse the accumulation in time and distance in the calculateRoute request):
BULK: {'distance': [1054358.0, 1268495.0], 'time': [52880.0, 63163.0]}
VIA_STOP: {'distance': [1054174.0, 1268413.0], 'time': [52862.0, 63155.0]}
WAYPOINTDESC: {'distance': [1054192.0, 1268395.0], 'time': [52865.0, 63152.0]}
Is it there an equivalent calculateRoute call that reproduces the response from the calcuateBulkRouteInfo request?
If not, what exactly causes the difference in the results from these two calculation methods.
Thank you in advance.
Kind regards
calculateBulkRouteInfo vs calculateRoute
calculateBulkRouteInfo vs calculateRoute
- Attachments
-
- calculate_bulk_route_info.txt
- calculate_bulk_route_info
- (2.53 KiB) Downloaded 345 times
-
- calculate_route.txt
- calculate_route
- (2.06 KiB) Downloaded 352 times
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: calculateBulkRouteInfo vs calculateRoute
Hello Epsilon,
I assume that the different temporary data structures have an impact on the routing results.
https://xserver.ptvgroup.com/forum/view ... ?f=7&t=819
The question I have is quite simple:
- What kind of task do you want to solve?
- What is the input?
- What is the desired output?
If you answer these questions I might give you some directions how to approach it in the optimal way.
Best regards,
Bernd
PS: routing is some kind of heuristics, at least when it comes to leveling
I assume that the different temporary data structures have an impact on the routing results.
https://xserver.ptvgroup.com/forum/view ... ?f=7&t=819
The question I have is quite simple:
- What kind of task do you want to solve?
- What is the input?
- What is the desired output?
If you answer these questions I might give you some directions how to approach it in the optimal way.
Best regards,
Bernd
PS: routing is some kind of heuristics, at least when it comes to leveling
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: calculateBulkRouteInfo vs calculateRoute
Faced something similar with a custromer today.
The problem has dissapeared after I
- disabled leveling (set the scopes to -1 for all NCs)
- did set the ViaType of the inner stops to VIA_STOP
The problem has dissapeared after I
- disabled leveling (set the scopes to -1 for all NCs)
- did set the ViaType of the inner stops to VIA_STOP
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...