Don't cross country border lines

This forum deals with any kind of trip optimization whether it is automatic planning or manual dispatching, refering to transport orders or service planning.

Don't cross country border lines

Postby DKula » Mon Jul 11, 2016 8:47 am

Hi forum,

I don't know if I only did not find it in the documentation but I have the problem that a tour driving should not cross country borders.

Is there a way to say that the driving way do not cross any country border lines?

Thanks in advance
DKula
 
Posts: 9
Joined: Tue Mar 17, 2015 2:26 pm

Re: Don't cross country border lines

Postby Bernd Welter » Mon Jul 11, 2016 11:49 am

Hello Dennis,

sounds like you could benefit from our Geographic Restrictions:
http://xserver.ptvgroup.com/fileadmin/f ... strictions
GeoRestrictions.PNG
Shows tha positive / negative lists.

As xTour requires setting such properties in the profiles on server side you can easily create lists of allowed or forbidden country (only one of them by the time).

Check it!

Regards Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

Re: Don't cross country border lines

Postby Bernd Welter » Mon Jul 11, 2016 2:31 pm

Here is a sample snippet:

xml code
<?xml version="1.0" encoding="UTF-8"?>
<Profile>
<Routing majorVersion="2" minorVersion="0">
<Algorithm>
<GeographicRestrictions>
<AllowedCountry countryCode="49"></AllowedCountry>
</GeographicRestrictions>
</Algorithm>
</Routing>
</Profile>
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

Re: Don't cross country border lines

Postby Bernd Welter » Fri Jul 15, 2016 9:00 pm

Attention: here is some important restriction of the country code!
CountryCode

In other words: you have to use the PTV specific code to identify the allowed / forbidden countries!

Have a nice weekend,
Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

Re: Don't cross country border lines

Postby Bernd Welter » Tue Nov 08, 2016 9:11 am

Here is another important hint dealing with this challenge:
Since xTour 1.22.0.0 we invented the DirectDistanceFallback parameter:
Improvement: From now on only tours with proper routings are planned and with the new switch useDirectDistanceFallback the old behaviour could still be used (e.g. to plan inaccessible orders with a direct distance approximation).

Therefore you have to consider this switch when applying a profile that should prevent you from visiting unwanted countries:
If both
  • Routing geometries
  • Scheduled locations
should consider the whitelist countries the directDistanceFallback has to be disabled!
directDistanceFallback.PNG
Left map: though the dima is based on "Germany only" the tours consider locations in France (west of Rhine). This is because the distances and routing times are estimated based on the FallBack mechanism.
Right map: The dima is based on "Germany only" and the fallback is disabled. Therefore French locations remain unscheduled.

Best regards,
Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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


Return to PTV xTourServer