Page 1 of 1
Don't cross country border lines
Posted: Mon Jul 11, 2016 8:47 am
by DKula
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
Re: Don't cross country border lines
Posted: Mon Jul 11, 2016 11:49 am
by Bernd Welter
Hello Dennis,
sounds like you could benefit from our Geographic Restrictions:
http://xserver.ptvgroup.com/fileadmin/f ... strictions
- 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
Re: Don't cross country border lines
Posted: Mon Jul 11, 2016 2:31 pm
by Bernd Welter
Here is a sample snippet:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<Profile>
<Routing majorVersion="2" minorVersion="0">
<Algorithm>
<GeographicRestrictions>
<AllowedCountry countryCode="49"></AllowedCountry>
</GeographicRestrictions>
</Algorithm>
</Routing>
</Profile>
Re: Don't cross country border lines
Posted: Fri Jul 15, 2016 9:00 pm
by Bernd Welter
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
Re: Don't cross country border lines
Posted: Tue Nov 08, 2016 9:11 am
by Bernd Welter
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!
- 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