Page 1 of 1

xRoute (xServer2) - avoiding Bundesländer?

Posted: Wed Mar 30, 2022 2:37 pm
by remi
Dear all,

we are wondering how we can steer a route (e.g. from North Germany to Italy) avoiding driving through specified subset of regions, e.g. German states (Bundesländer) Hessen and Bavaria.

As Bernd Welter lays out here in another forum post, avoiding certain countries like Switzerland is possible via a Geographic Restriction such as ForbiddenCountries=["CH"]. However, I could not find such a function for Bundesländer or regions in an arbitrary polygon.


Best regards,
Remi

Re: xRoute (xServer2) - avoiding Bundesländer?

Posted: Wed Mar 30, 2022 4:14 pm
by Bernd Welter
HI Remi,

in v2.26 (supposed to be available in mid of April 2022) we will offer a new geographic restriction property:
prohibitedSegmentsByIntersectingPolylines EncodedGeometry[] 0..* - 2.26
Specifies a list of polylines from which the segments are extracted by intersection and then prohibited for the route calculation. Only geometries of type Polyline are allowed. In contrast to the other geographic restrictions the prohibited segments specified here can be violated if the violations are enabled in the routing profile. Such violations are reported also when a PathWaypoint is used.
Limitation: If the intersection of one polyline with the road network yields more than 5000 segments, the request is rejected with an exception.
Guess that's what you are looking for ;-)

Bernd