Hello,
I have the following issue: I am running an xroute for a roundtrip, going from one start address to 2 addresses, and then coming back (see attached reques and response).
I am not 100% sure, but it looks like the issue I am having only happens when the PTV_TrafficIncidents layer is enabled.
It is true, that the 2 addresses are in a mountain area, where there are some time-dependent restrictions (I can see them when looking at the map).
However, I am not sure how that plays a role in this issue: when the response comes, it contains 2 tourEventTypes 'Wait' of duration exactly 2703 seconds each (this number in itself is strange, since it's 45 minutes and 3 seconds) and always placed between 'Driving' tourEventTypes.
I understand how the 'Driving' events would have such long durations, even if very little distance, because of the TrafficIncidents (time-dependent restrictions) in the area.
But I don't understand the purpose of the 'Wait' events of this strange duration, and their placement in between Driving events.
Can you please help in how to interpret this response?
Marius
'strange' tourEventTypes 'Wait' in certain response (effect of PTV_TrafficIncidents)
-
marius.vladutoiu
- Posts: 6
- Joined: Tue Mar 12, 2024 10:30 am
'strange' tourEventTypes 'Wait' in certain response (effect of PTV_TrafficIncidents)
- Attachments
-
- response.xml
- xroute response from raw request runner
- (7.59 KiB) Downloaded 9 times
-
- request.xml
- xroute request
- (4.29 KiB) Downloaded 11 times
Re: 'strange' tourEventTypes 'Wait' in certain response (effect of PTV_TrafficIncidents)
The route is taking combined transport during the waiting event. The driver is then not driving and most of the times it can't be used as a break so waiting is the correct event for what is going on.
I figured this out by also ask for the segment back and look for the segment that had the ID reference in it's eventIndeces property and I found:
I figured this out by also ask for the segment back and look for the segment that had the ID reference in it's eventIndeces property and I found:
Code: Select all
{
"distance": 0,
"travelTime": 2703,
"travelSpeed": 0,
"trafficDelay": 0,
"violated": false,
"eventIndices": [
6
],
"type": "COMBINED_TRANSPORT",
"combinedTransport": {
"name": "Furka",
"type": "RAIL",
"duration": 2703,
"start": {
"name": "Realp",
"country": "CH",
"coordinate": {
"x": 8.5028062755,
"y": 46.597683661
}
},
"destination": {
"name": "Obergoms",
"country": "CH",
"coordinate": {
"x": 8.3430719887,
"y": 46.531307915
}
},
"permissions": {
"cars": true,
"vans": true,
"trucks": true
}
}
},Joost Claessen
Senior Technical Consultant
PTV Benelux
Senior Technical Consultant
PTV Benelux
-
marius.vladutoiu
- Posts: 6
- Joined: Tue Mar 12, 2024 10:30 am
Re: 'strange' tourEventTypes 'Wait' in certain response (effect of PTV_TrafficIncidents)
Hello Joost,
Thanks for the quick reply. If I understand you correctly, the 'Wait' is actually the duration of the 'combined_transport', in this case 'rail' as the only means of transport to actually get to the address, which could not be classified as 'driving'.
Additional questions, please:
(1) Can you confirm that 'combined_transport' is only related to PTV_TrafficIncidents layer? Because, if I use the same request, but just set the PTV_TrafficIncidents = false, the 'Wait' event is not triggered anymore in the response.
(2) Or can you think of any other situation where this 'Wait' event would be inserted (other than 'combined_transport')?
Thanks for the quick reply. If I understand you correctly, the 'Wait' is actually the duration of the 'combined_transport', in this case 'rail' as the only means of transport to actually get to the address, which could not be classified as 'driving'.
Additional questions, please:
(1) Can you confirm that 'combined_transport' is only related to PTV_TrafficIncidents layer? Because, if I use the same request, but just set the PTV_TrafficIncidents = false, the 'Wait' event is not triggered anymore in the response.
(2) Or can you think of any other situation where this 'Wait' event would be inserted (other than 'combined_transport')?
- Bernd Welter
- Site Admin
- Posts: 3025
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: 'strange' tourEventTypes 'Wait' in certain response (effect of PTV_TrafficIncidents)
Hello Marius,
the involved PTV_TrafficIncidents layer brought some blockings into the story that made the combined transport to appear as a faster alternative compared to what happens without the layer.. I recommend to define a session with us to replay and explain the story.
Bernd
PS you can elkaborate the traffic conditions with this showcase
the involved PTV_TrafficIncidents layer brought some blockings into the story that made the combined transport to appear as a faster alternative compared to what happens without the layer.. I recommend to define a session with us to replay and explain the story.
Bernd
PS you can elkaborate the traffic conditions with this showcase
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...