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
Don't cross country border lines
- Bernd Welter
- Site Admin
- Posts: 2714
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Don't cross country border lines
Hello Dennis,
sounds like you could benefit from our Geographic Restrictions:
http://xserver.ptvgroup.com/fileadmin/f ... strictions 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
sounds like you could benefit from our Geographic Restrictions:
http://xserver.ptvgroup.com/fileadmin/f ... strictions 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
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...
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...
- Bernd Welter
- Site Admin
- Posts: 2714
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Don't cross country border lines
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>
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...
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...
- Bernd Welter
- Site Admin
- Posts: 2714
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Don't cross country border lines
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
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
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...
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...
- Bernd Welter
- Site Admin
- Posts: 2714
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Don't cross country border lines
Here is another important hint dealing with this challenge:
Since xTour 1.22.0.0 we invented the DirectDistanceFallback parameter:
If both
Bernd
Since xTour 1.22.0.0 we invented the DirectDistanceFallback parameter:
Therefore you have to consider this switch when applying a profile that should prevent you from visiting unwanted countries: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).
If both
- Routing geometries
- Scheduled locations
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...
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...