Page 1 of 1

Toll calculation with tunnel restrictions

Posted: Thu Oct 19, 2023 1:13 pm
by Uta Jäger-Frenk
I received a question here which might be interesting:
I would like to get more information how it's possible to adjust the routing + toll with restrictions to ADR. We have added a tunnelrestriction code to the parameters of the calculation but this does not seem to have any impact on the calculations we did. I have tested this on routes where there are multiple tunnels but the distance or toll did not have any impact.

I have tested this on multiple calculations for Antwerp Kennedy R1 code D. But this did not have any impact. Could you advice how we can make certain calculations that take into account the ADR type?

Here the xServer 2 test cloud is used.

Re: Toll calculation with tunnel restrictions

Posted: Thu Oct 19, 2023 1:35 pm
by Bernd Welter
Hi Uta,

from a theoretical perspective my feedback about that story is:

green route: Vehicle with TunnelCode=E<br />blue route: vehicle with TunnelCode=D<br />southern pink segments: 4km tunnel segments with codeD
green route: Vehicle with TunnelCode=E
blue route: vehicle with TunnelCode=D
southern pink segments: 4km tunnel segments with codeD
Does this answer the question?

Bernd

PS: it 's probably easier to respond if the specific request / response of the customer is given. Here's an example... 40T truck...

Code: Select all

{
  "storedProfile" : "truck40t",
  "requestProfile":{
    "vehicleProfile":{
      "load":{
        "tunnelRestrictionCode":"D"
      }
    },
    "featureLayerProfile":{
      "themes":[
        {
          "id":"PTV_TruckAttributes",
          "enabled":true
        }
      ]
    }
  },
  "waypoints": [
    {
      "$type": "OffRoadWaypoint",
      "location": {
        "offRoadCoordinate": {
          "x": 4.382934,
          "y": 51.194391
        }
      }
    },
    {
      "$type": "OffRoadWaypoint",
      "location": {
        "offRoadCoordinate": {
          "x": 4.338277,
          "y": 51.219122
        }
      }
    }
  ],
  "resultFields": {
    "polyline": true
  }
}