forbidden zones

This forum deals with any kind of trip optimization whether it is automatic planning or manual dispatching, refering to transport orders or service planning.
Post Reply
puissancei
Posts: 46
Joined: Wed Jul 05, 2017 10:27 am

forbidden zones

Post by puissancei »

Hello,

how can I forbid geographical areas on a map (polygon on a map) in which xtour '' will not pass '' ?

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

Re: forbidden zones

Post by Bernd Welter »

From my understanding you can only refer to TruckAttributes as additional data rules being enabled in the routing profile XML. That means to administrate the content via RoadEditor.
You can't just send a polygon in the request which is then considered in the matrix calculation.

Once again this is a quite generic question that already uses some technological aspects (polygon). WHat is the real life usecase behind it?

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:
puissancei
Posts: 46
Joined: Wed Jul 05, 2017 10:27 am

Re: forbidden zones

Post by puissancei »

I think that I have to watch areaNumber to prevent a vehicle from going out of a geographical zone during a tour.

Right ?
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: forbidden zones

Post by Bernd Welter »

Hello Michel,

the area number doesn't have an impact on the route that might be taken between stops - it just affects the validity of a tour structure based on "not more than one tour per area" and so on. So for some usecases a "avoid country ISO.." or a "do not use segments where the weight of the vehicle exceeds the legal total weight (TruckAttributes)" is possible.

For any further discussion please get in touch with Clement / the french team as this requires some customizing.

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:
User avatar
Max Beermann
Posts: 68
Joined: Tue Oct 30, 2018 7:36 am

Re: forbidden zones

Post by Max Beermann »

Hey Bernd,

I hope my question is in the "right place".

The routing shall avoid the country Switzerland - due to high toll-prices.

Is this possible (e. g. xroute /calculateAdvancedTour)?

Thanks in advance!
Max
Max Beermann
Development Manager
WHEELS Logistics
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: forbidden zones

Post by Bernd Welter »

Hello Max,

I assume this question refers to "how to get from one location to another one without driving through Switzerland?". This means to look into routing profiles and to search for the term GeographicRestrictions.

http://xserver.ptvgroup.com/fileadmin/f ... g%7C_____0


https://xserver.ptvgroup.com/forum/view ... tions#p862

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:
User avatar
Max Beermann
Posts: 68
Joined: Tue Oct 30, 2018 7:36 am

Re: forbidden zones

Post by Max Beermann »

Hey Bernd,

thanks for your detailed info.

I tried to to realize it with SOAP / xroute / calculateAdvanced Tour , but failed.

The following SOAP is a route from D-28237 Bremen > I-11100 Aosta.
The result is in standard "with driving through Switzerland".

Now i want to avoid CHF [iuCode="41"].
I do not know where to set the parameters/values.

Maybe you have another hint for me?

Thanks in advance - and also for your previous help!

D-28237 Bremen > I-11100 Aosta:

Code: Select all

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <calculateAdvancedTour xmlns="http://types.xroute.xserver.ptvag.com">
      <ArrayOfWaypointDesc_1>
        <ns6:WaypointDesc xmlns:ns6="http://xroute.xserver.ptvag.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns6:TourPointDesc" linkType="NEXT_SEGMENT" fuzzyRadius="0" servicePeriod="100" useServicePeriodForRecreation="false" completeServiceInIntervals="true">
          <ns6:wrappedCoords>
            <ns3:Point xmlns:ns3="http://common.xserver.ptvag.com">
              <ns3:point x="972912" y="6997620" />
            </ns3:Point>
          </ns6:wrappedCoords>
          <ns6:wrappedSegmentID xsi:nil="true" />
          <ns6:wrappedOpeningIntervals />
        </ns6:WaypointDesc>
        <ns6:WaypointDesc xmlns:ns6="http://xroute.xserver.ptvag.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns6:TourPointDesc" linkType="NEXT_SEGMENT" fuzzyRadius="0" servicePeriod="300" useServicePeriodForRecreation="false" completeServiceInIntervals="true">
          <ns6:wrappedCoords>
            <ns3:Point xmlns:ns3="http://common.xserver.ptvag.com">
              <ns3:point x="814029" y="5731965" />
            </ns3:Point>
          </ns6:wrappedCoords>
          <ns6:wrappedSegmentID xsi:nil="true" />
          <ns6:wrappedOpeningIntervals />
        </ns6:WaypointDesc>
        <ns6:WaypointDesc xmlns:ns6="http://xroute.xserver.ptvag.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns6:TourPointDesc" linkType="NEXT_SEGMENT" fuzzyRadius="0" servicePeriod="500" useServicePeriodForRecreation="false" completeServiceInIntervals="true">
          <ns6:wrappedCoords>
            <ns3:Point xmlns:ns3="http://common.xserver.ptvag.com">
              <ns3:point x="660301.0" y="6427670.0" />
            </ns3:Point>
          </ns6:wrappedCoords>
          <ns6:wrappedSegmentID xsi:nil="true" />
          <ns6:wrappedOpeningIntervals />
        </ns6:WaypointDesc>
      </ArrayOfWaypointDesc_1>
      <TourOptions_2 restrictToSingleOperatingInterval="false" />
      <ArrayOfRoutingOption_3 />
      <ArrayOfExceptionPath_4 />
      <ResultListOptions_5 manoeuvres="true" texts="true" nodes="true" binaryPathDesc="false" polygon="true" detailLevel="STANDARD" dynamicInfo="false" segments="true" segmentAttributes="true" manoeuvreAttributes="true" brunnelManoeuvres="true" urbanManoeuvres="true" manoeuvreGroups="true" manoeuvreGroupRatio="1.0" tollManoeuvres="false" boundingRectanglesC="5" boundingRectanglesOffset="300" totalRectangle="false" />
      <CountryInfoOptions_6 detailedTollCosts="false" allEuro="false" calculatePartTollCosts="false" />
      <CallerContext_7>
        <ns2:wrappedProperties xmlns:ns2="http://baseservices.service.jabba.ptvag.com">
          <ns2:CallerContextProperty value="PLAIN" key="ResponseGeometry" />
          <ns2:CallerContextProperty value="PTV_MERCATOR" key="CoordFormat" />
          <ns2:CallerContextProperty value="truckfast" key="Profile" />
        </ns2:wrappedProperties>
      </CallerContext_7>
    </calculateAdvancedTour>
  </soap:Body>
</soap:Envelope>
Best regards
Max

Edit by JCL: added coded tags for readability
Max Beermann
Development Manager
WHEELS Logistics
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: forbidden zones

Post by Bernd Welter »

Hello Max,

take a look at the RoutingOptions
- EXCLUDE_COUNTRIES
- ROUTING_COUNTRIES
(only xRoute 1).

Or check (xRoute and xTour) the SNIPPET that is mentioned in the post
https://xserver.ptvgroup.com/forum/view ... tions#p864

I also recommend to gather knowledge about the snippet mechanism because this is quite important in the context of routing.

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:
User avatar
Max Beermann
Posts: 68
Joined: Tue Oct 30, 2018 7:36 am

Re: forbidden zones

Post by Max Beermann »

Good morning Bernd,

works perfectly - Thank you!

Best regards
Max
Max Beermann
Development Manager
WHEELS Logistics
Post Reply