Page 1 of 1

xRoute (xServer2) - avoiding Switzerland?

Posted: Mon Nov 29, 2021 9:25 pm
by ClaasB
Dear all,

we are wondering how we can steer a route (e.g. from North Germany to Italy) avoiding driving throogh Switzerland due to custom checks and other restrictions. It's should always pass by Austria.

Best regards,
Claas

Re: xRoute (xServer2) - avoiding Switzerland?

Posted: Tue Nov 30, 2021 8:39 am
by Bernd Welter
Hello Claas,

the easiest way to prevent the xRoute2 router from driving via Switzerland is probably a Geographic Restriction such as ForbiddenCountries=["CH"]. In this case you are also responsible for pre-evaluation of the countries being involved in the routing: how to deal with waypoints in switzerland?

Further thoughts:
If you want to use the brenner (enforce an object instead of avoiding a country) you may check whether a ManipulateWaypointat the Brenner does satisfy your need (once agin pre-evaluation is required).

Last but not least: You may also check whether the monetary cost options fullfill the job: in most cases the motivation for a detour is to avoid the swiss toll. As xRoute2 is able to consider these costs in the process of "routing" this could lead to a more generic solution. At least if the costs for the detour are really cheaper than the swiss route.

Best regards,
Bernd