Page 1 of 1
forbidden zones
Posted: Tue Feb 27, 2018 1:18 pm
by puissancei
Hello,
how can I forbid geographical areas on a map (polygon on a map) in which xtour '' will not pass '' ?
Thank you
Re: forbidden zones
Posted: Thu Mar 01, 2018 9:32 am
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
Re: forbidden zones
Posted: Thu Mar 01, 2018 10:17 am
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 ?
Re: forbidden zones
Posted: Fri Mar 09, 2018 12:04 pm
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
Re: forbidden zones
Posted: Wed Nov 07, 2018 6:41 pm
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
Re: forbidden zones
Posted: Wed Nov 07, 2018 8:21 pm
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
Re: forbidden zones
Posted: Thu Nov 08, 2018 12:07 pm
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
Re: forbidden zones
Posted: Thu Nov 08, 2018 3:44 pm
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
Re: forbidden zones
Posted: Fri Nov 09, 2018 7:07 am
by Max Beermann
Good morning Bernd,
works perfectly - Thank you!
Best regards
Max