Hello there,
today I've been asked whether there is an opportunity to make sure a route doesn't leave a given country.
The customer spent a lot of time in blocking lots of border points but in this case it is not necessary:
You can simply use the RoutingOption.ROUTING_COUNTRIES and specify one or more countries using their code.
Besides this whitelist approach you may also use the blacklist. In this case the given countries are forbidden. The RoutingOption.EXCLUDE_COUNTRIES is the blacklist parameter.
Best regards Bernd
PS: There are further posts dealing with this...
http://xserver.ptvgroup.com/forum/searc ... _COUNTRIES
HOWTO: limit routing to specific countries?
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
HOWTO: limit routing to specific countries?
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...