Influence the endpont xRoute chooses at crossing roads?

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
vincenthoutgraaf
Posts: 3
Joined: Thu May 19, 2016 10:10 am

Influence the endpont xRoute chooses at crossing roads?

Post by vincenthoutgraaf »

Hi,

We experience issues when two roads cross each other, one above the other, without any connections between the two. When the endpoint is exactly on the crossing point it is uncertain which road xRoute will choose to connect to.

Is there a way to influence this behaviour? Is it maybe possible in a xRoute vehicleprofile to set values in such a way that the endpoint of a calculated route will have a preference for the highest classed road available at that point?

For us it might even work if we could set different values for maximumNetworkClass for start and end point, because the endpoint is always on main roads in our use case.

Thanks in advance,
Vincent
User avatar
Bernd Welter
Site Admin
Posts: 2592
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Influence the endpont xRoute chooses at crossing roads?

Post by Bernd Welter »

Hello Vincent,

how about using the following part of the profile snippet? The Attribute Routing / Waypoint / LinkTypeConfiguration / Road / @minimumNetworkClass?
Link only to roads with network class greater than or equal to this network class. Usually, a route does not start or end on a freeway. Choose a value > 0 to avoid linking to freeway segments.

Code: Select all

<LinkTypeConfiguration>
  <Road headingTolerance="360" maximumDistanceForNetworkClass0="100" maximumNetworkClass="7" minimumNetworkClass="0" onlyReachableRoads="true">{0,1}</Road>
  <Smart checkNetworkClassOnlyForVias="true" maximumDistanceToMainNode="100" maximumDistanceToMainNodeForNetworkClass0="1500">{0,1}</Smart>
  <TollStation maximumDistance="1000">{0,1}</TollStation>
  <RoadName maximumDistance="3000" maximumDistanceToMainNode="2000">{0,1}</RoadName>
</LinkTypeConfiguration>
http://xserver.ptvgroup.com/fileadmin/f ... s%7C_____0

Best regards 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:
vincenthoutgraaf
Posts: 3
Joined: Thu May 19, 2016 10:10 am

Re: Influence the endpont xRoute chooses at crossing roads?

Post by vincenthoutgraaf »

Hello Bernd,

Thanks for your reply.

Unfortunately, that does not work well enough in our apparently special use case. The starting point of a route will often be on a residential road or lower graded, while the end point will always be on roads of networkclass 0, 1 or 2. In general: the road with the end point will have a different networkclass than the starting point.

There is no way to indicate a preference for just the end point of a route for a road with a certain networkclass?

Best regards, Vincent
User avatar
Bernd Welter
Site Admin
Posts: 2592
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Influence the endpont xRoute chooses at crossing roads?

Post by Bernd Welter »

Unfortunately this is a lack of flexibilty - there you are right.
But with the future versions of routing we will add some more new linking styles, maybe one of them helps you to satisfy your needs. I've witnessed those approaches and they enable us to implement new usecases!

Best regards 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:
vincenthoutgraaf
Posts: 3
Joined: Thu May 19, 2016 10:10 am

Re: Influence the endpont xRoute chooses at crossing roads?

Post by vincenthoutgraaf »

Ok, We will stay up to date then and watch out for new linking possibilities.

Best regards,
Vincent
User avatar
Bernd Welter
Site Admin
Posts: 2592
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Influence the endpont xRoute chooses at crossing roads?

Post by Bernd Welter »

Hello Vincent,

some colleagues of the DEV department mentioned that using the HEADING parameter could also be an option in your case. We improved our own webbased products such as PTV Drive&Arrive by using this parameter because sometimes we assigned the GPS positions to the wrong street.

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

Re: Influence the endpont xRoute chooses at crossing roads?

Post by Bernd Welter »

Here is another statement from DEV:

the customer could also try the HEADING parameter but in this case he has to know the proper direction of the desired street.
Major crossings are part of our data and labelled as so-called MAIN NODES. With the mode LinkType.NEXT_MAIN_NODE waypoints are linked to such nodes only.

AUTO_LINKING is a combination of regular segments and something similar to NEXT_MAIN_NODE. Probably the streets you refer to are not always MAIN_NODES Best regards 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