Page 1 of 1

'strange' tourEventTypes 'Wait' in certain response (effect of PTV_TrafficIncidents)

Posted: Tue Feb 17, 2026 12:12 pm
by marius.vladutoiu
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

Re: 'strange' tourEventTypes 'Wait' in certain response (effect of PTV_TrafficIncidents)

Posted: Tue Feb 17, 2026 12:39 pm
by Joost
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:

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
        }
      }
    },

Re: 'strange' tourEventTypes 'Wait' in certain response (effect of PTV_TrafficIncidents)

Posted: Tue Feb 17, 2026 1:08 pm
by marius.vladutoiu
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')?

Re: 'strange' tourEventTypes 'Wait' in certain response (effect of PTV_TrafficIncidents)

Posted: Tue Feb 24, 2026 10:24 am
by Bernd Welter
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 elaborate the traffic conditions with this showcase
time considerated blockings in the area
time considerated blockings in the area