Routing problem : Access to the construction site

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
Jakub Skiba
Posts: 5
Joined: Mon Mar 02, 2020 1:38 pm

Routing problem : Access to the construction site

Post by Jakub Skiba »

Hello there,

I have got a tricky problem and I couldnt find a similar topic. If it exists please let me know.

One of our clients delivers goods to construction sites. In some cases, these roads are temporarily excluded from traffic, requiring a special entry permit.

These routes are generally imposed by the customer. So we need to find a solution that will allow our client to route through these sections that are temporaily unavaiable for traffic.

The questioin is, can we distinguish between temporary entry bans and permanent entry bans ? Are they controlled by the same parameter ?

The most desirable outcome would be a possibility, in which we could ignore the temporary no entry signs while calculating routes.

Thank you very much in advance.

Jakub
Attachments
Partialy closed road.png
Desirable outcome.png
Problematic route.png
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Routing problem : Access to the construction site

Post by Bernd Welter »

Hello Jakub,

here's my first feedback to this topic: what exactly - in terms of PTV mechanisms - prevents your current routing call from using this segments?
  • Street not in the map at all?
  • Street in the map but blocked due to core properties (isBlockedForTruck, isBlockedForCar...)?
  • FeatureLayer (which one?)
  • Other reasons?
Once we identified the cause I might be able to provide an optimal approach of how to solve this. Maybe this approach is then a topic just between you and me - depending on the scope of programming.

Best regards,
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:
Jakub Skiba
Posts: 5
Joined: Mon Mar 02, 2020 1:38 pm

Re: Routing problem : Access to the construction site

Post by Jakub Skiba »

Hello Bernd,

The street does appear on the map and none of FeatureLayer used seems to be a problem. While calculating route we also dont use mentioned core properties (isBlockedForTruck, isBlockedForCar). In the attachment i am sending you our parameters.

Best Regards,

Jakub
Attachments
Info.png
Jakub Skiba
Posts: 5
Joined: Mon Mar 02, 2020 1:38 pm

Re: Routing problem : Access to the construction site

Post by Jakub Skiba »

Hello Bernd,

As of yesterday I've got an access to your Map&Guide Internet. Calculating the route with the "Activate truck restrictions" option turned off, doesnt seem to have any effect. Therefore i think we indeed are having an issue with core properties which are isBlockedForTruck and isBlockedForCar
Map&Guide.png
Could you suggest some solution to this problem ?

Best Regards,
Jakub
Attachments
The route has been calculated with the "Activate truck restrictions" option turned off.
The route has been calculated with the "Activate truck restrictions" option turned off.
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Routing problem : Access to the construction site

Post by Bernd Welter »

Looks like the section you mention is in fact blocked for regular traffic (message in german only):
https://lbm.rlp.de/de/aktuelles/detail/ ... interburg/

I'll ask DEV about how to handle this. Please remain patient
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:
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Routing problem : Access to the construction site

Post by Bernd Welter »

Hello Jakub,

the following snippet will route you to the desired area.
:!: But be careful: telling the engine that your vehicle is "enabled to drive into delivery zones" may also lead to "successful delivery anywhere else in the map"...

Best regards,
Bernd

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<Profile>
  <Routing majorVersion="2" minorVersion="0">
    <Course>
      <BasicDataRules>
        <VehicleSpecific>
          <DeliveryVehicles segmentMalus="0" />
        </VehicleSpecific>
      </BasicDataRules>
    </Course>
    <Vehicle>
      <Legal>
        <LegalCondition isDelivery="true" />
      </Legal>
    </Vehicle>
  </Routing>
</Profile>
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:
Jakub Skiba
Posts: 5
Joined: Mon Mar 02, 2020 1:38 pm

Re: Routing problem : Access to the construction site

Post by Jakub Skiba »

Hello Bernd,

Thank you for this snippet. We will use it with caution.

Best regards,
Jakub
Post Reply