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
xRoute (xServer2) - avoiding Bundesländer?
- Bernd Welter
- Site Admin
- Posts: 2705
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: xRoute (xServer2) - avoiding Bundesländer?
HI Remi,
in v2.26 (supposed to be available in mid of April 2022) we will offer a new geographic restriction property:
Bernd
in v2.26 (supposed to be available in mid of April 2022) we will offer a new geographic restriction property:
Guess that's what you are looking forprohibitedSegmentsByIntersectingPolylines 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.
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...