Toll calculation with tunnel restrictions

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
Uta Jäger-Frenk
Posts: 5
Joined: Mon Jun 13, 2022 9:56 am

Toll calculation with tunnel restrictions

Post 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.
Uta Jäger-Frenk
Support Specialist at PTV Logistics - Germany

Happy to help the products PTV Developer, PTV xServer, PTV Navigator G1 and G2
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Toll calculation with tunnel restrictions

Post 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
  }
}
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... :twisted:
Post Reply