New feature in xRoute: intersectingLine as ExceptionPath

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

New feature in xRoute: intersectingLine as ExceptionPath

Post by Bernd Welter »

Hello together,

we are about to release the 1.22 servers and I already made some enhancements in my WKTC (=Welter known Test Clients) such as xRouteToll. Here is just a screenshot of one of those features: it is a new option of how to define blockings of streets with an Exception Path: it is called an intersectingLine:
intersectingLine LineString
A representation of a route path containing all segments that are crossed by the given intersecting line which is represented by exactly two points (optional)
Image on the left shows the standard route which is not taking care of the intersecting line. The picture on the right is based on a 2501-malus being applied to the line.
Image on the left shows the standard route which is not taking care of the intersecting line. The picture on the right is based on a 2501-malus being applied to the line.
Feedback welcome,
enjoy the rest of the week!

Bernd
qsku
Posts: 9
Joined: Thu Jun 16, 2016 8:08 am

Re: New feature in xRoute: intersectingLine as ExceptionPath

Post by qsku »

Hi Bernd,
this is exactly what I'm looking for :)
How to get it worked in xServer .NET client?
Do you have a code example?
Can I already achieve this functionality using your server at https://xroute-eu-n-test.cloud.ptvgroup.com ?

qsku
User avatar
Bernd Welter
Site Admin
Posts: 2580
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: New feature in xRoute: intersectingLine as ExceptionPath

Post by Bernd Welter »

Hello Marcin,

here is an XML fragment that describes this parameter (implemented with 1.22.0.0)
Feature: A straight line can be used as exception path affecting all intersected segments of the map (e.g. to block them for the routing calculation).
https://svc-eu-n.cloud.ptvgroup.com/Inf ... rInfo.ashx and therefore available on the cluster.

Code: Select all

<ArrayOfExceptionPath_3>
 <ExceptionPath absTimeMalus="0" binaryPathDesc="" extSegments="" relMalus="2501" street="" xmlns="http://xroute.xserver.ptvag.com">
    <intersectingLine>
       <kml xsi:nil="true" xmlns="http://common.xserver.ptvag.com" />
       <lineString xmlns="http://common.xserver.ptvag.com">
          <wrappedPoints>
             <PlainPoint x="668425" y="6350326" />
             <PlainPoint x="1276464" y="6467100" />
          </wrappedPoints>
       </lineString>
    </intersectingLine>
    <wrappedNodes xsi:nil="true" />
    <polyline xsi:nil="true" />
 </ExceptionPath>
</ArrayOfExceptionPath_3>
WIth a relative malus of 2501 the segments crossed by the line are banned.

Best regards Bernd
The routing polygon performs a detour around the critical line.
The routing polygon performs a detour around the critical line.
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