xRoute (xServer2) - avoiding Bundesländer?

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
remi
Posts: 1
Joined: Wed Mar 30, 2022 2:08 pm

xRoute (xServer2) - avoiding Bundesländer?

Post 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
User avatar
Bernd Welter
Site Admin
Posts: 2574
Joined: Mon Apr 14, 2014 10:28 am
Contact:

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

Post 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
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... :twisted:
Post Reply