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.

forbidden zones

Postby puissancei » Tue Feb 27, 2018 1:18 pm

Hello,

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

Thank you
puissancei
 
Posts: 46
Joined: Wed Jul 05, 2017 10:27 am

Re: forbidden zones

Postby Bernd Welter » Thu Mar 01, 2018 9:32 am

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
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1157
Joined: Mon Apr 14, 2014 10:28 am

Re: forbidden zones

Postby puissancei » Thu Mar 01, 2018 10:17 am

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

Right ?
puissancei
 
Posts: 46
Joined: Wed Jul 05, 2017 10:27 am

Re: forbidden zones

Postby Bernd Welter » Fri Mar 09, 2018 12:04 pm

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
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1157
Joined: Mon Apr 14, 2014 10:28 am

Re: forbidden zones

Postby Max Beermann » Wed Nov 07, 2018 6:41 pm

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

Re: forbidden zones

Postby Bernd Welter » Wed Nov 07, 2018 8:21 pm

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_xsd.html#Routing%3FTocPath%3DTechnical%2520Concepts%7CAbout%2520Profiles%7CPTV%2520xServerbundle%7CRouting%7C_____0


viewtopic.php?f=6&t=339&p=862&hilit=Geographic+restrictions#p862

Best regards,
Bernd
Bernd Welter
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1157
Joined: Mon Apr 14, 2014 10:28 am

Re: forbidden zones

Postby Max Beermann » Thu Nov 08, 2018 12:07 pm

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

Re: forbidden zones

Postby Bernd Welter » Thu Nov 08, 2018 3:44 pm

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
viewtopic.php?f=6&t=339&p=862&hilit=Geographic+restrictions#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
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1157
Joined: Mon Apr 14, 2014 10:28 am

Re: forbidden zones

Postby Max Beermann » Fri Nov 09, 2018 7:07 am

Good morning Bernd,

works perfectly - Thank you!

Best regards
Max
User avatar
Max Beermann
 
Posts: 6
Joined: Tue Oct 30, 2018 7:36 am


Return to PTV xTourServer