Routing with Vehicle Parameter LoadWeight

Plan optimal and cost-effective routes for any vehicle and provide users with reliable arrival times.
Post Reply
davidprem
Posts: 8
Joined: Thu Nov 14, 2019 10:31 am

Routing with Vehicle Parameter LoadWeight

Post by davidprem »

Hi,

we are currently trying to use the VehicleParameter "loadWeight" to allow vehicles with profile EUR_TRAILER_TRUCK to pass a
bridge with a maximum weight of 30.000 kg by setting the load weight to 10.000 kg, which should result in less than 30.000 kg total weight.

Unfortunately, we cannot produce the correct routing using the following request:

https://api.myptv.com/routing/v1/routes ... 2CPOLYLINE

The only way to take the bridge directly is to use either profile EUR_CAR or EUR_VAN, or setting the TotalPermittedWeight to 3.500 kg, which is obviously no solution.

What are we doing wrong?
Attachments
Screenshot aus RequestRunner
Screenshot aus RequestRunner
Last edited by davidprem on Wed Apr 01, 2026 3:03 pm, edited 1 time in total.
davidprem
Posts: 8
Joined: Thu Nov 14, 2019 10:31 am

Re: Routing with Vehicle Parameter LoadWeight

Post by davidprem »

UPDATE:
We just tested this for a completely different bridge with a similar restriction and got the expected results. So I guess this is a case of map data error?

Sample request for an 18t restriction bridge in Mötz, Austria:
https://api.myptv.com/routing/v1/routes ... 2CPOLYLINE
User avatar
Bernd Welter
Site Admin
Posts: 3093
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Routing with Vehicle Parameter LoadWeight

Post by Bernd Welter »

Hi David,

that was a tricky one...
The data on the bridge shows a traffic incident
The data on the bridge shows a traffic incident
PTV_TrafficIncidents :
timeDomain=[(y2023M5d17h14m0s59){y7}];
relevantByTime=true;
absoluteSpeed=0;
category=53;
message.text=B288 Krefeld Rheinbrücke - Closed for heavy lorries;
message.language=en;startX=4315432;startY=5549536;
incidentId=204_1;
totalPermittedWeight=7500
There's a long-term traffic incident (17.5.2023 - 17.5.2030) on the bridge - I saw it via a xServer2 test.

As your PTV Developer Routing API request does not specify the traffic mode the default (REALISTIC) applies.
And REALISTIC means "including live traffic"...

That being said you will be able to handle this bridge by
  • either switching to non-traffic incidents mode (AVERAGE)
  • jump into 2030 (after 17.5.)
Bernd
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:
Image
davidprem
Posts: 8
Joined: Thu Nov 14, 2019 10:31 am

Re: Routing with Vehicle Parameter LoadWeight

Post by davidprem »

Hi Bernd,

after adding traffic mode AVERAGE to my original request, I still don't get the expected result unfortunately. I can only enforce routing over the bridge by lowering the total permitted weight to 30t.

So my question is: Why is a truck with total permitted weight of 30t routed over the bridge, while a truck with a total permitted weight of 40t but with a load weight of 10t does not?

TotalPermittedWeight 30t, TrafficMode=AVERAGE
https://api.myptv.com/routing/v1/routes ... ght]=30000

LoadWeight 10t (Total Weight around 25t), TrafficMode=AVERAGE
https://api.myptv.com/routing/v1/routes ... ght]=10000

Thank you!
User avatar
Bernd Welter
Site Admin
Posts: 3093
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Routing with Vehicle Parameter LoadWeight

Post by Bernd Welter »

Hi David,

I wasn't clear enough: there's multiple restriction layers on the bridge
  • time-independent "total permitted weight : 30000, drive type: motor vehicle" - applies no matter whether you choose trafficMode=AVERAGE or REALISTIC. So a 40t truck cannot pass the bridge.
  • time-dependent "traffic incident" (as mentioned above) : totalPermittedWeight : 7500... applies only for REALISTIC and when the route is touching the time span of the closed segment.
Does this give a better picture?
Let's set up a session if the answer above isn't sufficient.

Bernd

PS: I used this showcase for an analysis/visualization
Attachments
PTV_TruckAttributes: regular restriction is set to 30t total permitted weight
PTV_TruckAttributes: regular restriction is set to 30t total permitted weight
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:
Image
davidprem
Posts: 8
Joined: Thu Nov 14, 2019 10:31 am

Re: Routing with Vehicle Parameter LoadWeight

Post by davidprem »

Hi,

thank you for the Showcase, this helps a lot.

In my opinion the restriction total permitted weight: 30000 may be wrong. Our customer from Krefeld told us, that the restriction is not concerning the total permitted weight but the actual maximum weight. I also verified this statement through various online articles about the Uerdinger Rheinbrücke.

The restriction should therefore look like this:
moetz_screenshot.png

Thank you!
User avatar
Bernd Welter
Site Admin
Posts: 3093
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Routing with Vehicle Parameter LoadWeight

Post by Bernd Welter »

To be honest: I don't know.

A quick search in the internet returned articles like
If a client mentions a data error then we request you to create a helpdesk ticket because our 1st level support has a standard procedure how to handle data corrections together with the providers (TOMTOM, HERE).

Bernd
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:
Image
Post Reply