Successor of xRoute1.ViaType.VIA_STOP

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
Prakash
Posts: 26
Joined: Mon Sep 14, 2015 5:21 am

Successor of xRoute1.ViaType.VIA_STOP

Post by Prakash »

Hello,

What parameter succeeds the ViaType.VIA_STOP?

Regards,
Prakash
Prakash Kumar
Developer
Webdirekt India Pvt. Ltd.
User avatar
Bernd Welter
Site Admin
Posts: 2792
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Successor of xRoute1.ViaType.VIA_STOP

Post by Bernd Welter »

Here comes Frank's answer:
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
Edmond Dantes
Posts: 5
Joined: Tue Apr 01, 2025 7:14 am

Re: Successor of xRoute1.ViaType.VIA_STOP

Post by Edmond Dantes »

Hello!

I am planning a route between Bugyi (HU) and Nürnberg (DE). I would like to specify an intermediate coordinate in such a way that the vehicle drives through it. This should be a lane in the correct direction on the highway.

The route looks like this:

Code: Select all

"waypoints": [
        {
            "$type": "OffRoadWaypoint",
            "location": {
                "offRoadCoordinate": {
                    "x": 19.18994,
                    "y": 47.234737
                }
            }
        }
        ,{
            "$type": "ManipulateRouteWaypoint",
            "coordinate": {
                    "x": 13.317454541807578,
                    "y": 49.67744796196884
                },
                "radius": 1000
        },
 
        {
            "$type": "OffRoadWaypoint",
            "location": {
                "offRoadCoordinate": {
                    "x": 11.182683,
                    "y": 49.389227
                }
            }
        }
        ]
Unfortunately, at the intermediate point, the system exits the vehicle from the highway, takes it to an undesired location, then navigates it back and continues the route correctly to the destination.

How can I force PTV to simply pass through this intermediate point?
Thank You for any answer
User avatar
Bernd Welter
Site Admin
Posts: 2792
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Successor of xRoute1.ViaType.VIA_STOP

Post by Bernd Welter »

Please provide the complete request. I tried it with your coordinates and some "usual" parameters and for me the route looks valid:
Screenshot 2025-04-01 140731.fuzzy.png
The rough approach in xRoute2 when it xcomes to com.ptvgroup.xserver.xroute.ManipulateRouteWaypoint is (based on a waypointlist A-->B(1000)-->C):
  • calculate a route from A to B based on linking B to a list of candidate segments in a close range (not automatically the closest one)
  • Walk back on the sub route for a distance of 1000m (that's the given radius) and identify a virtual stop B*
  • Then create a 2nd subroute B* --> C
  • FInally assemble to effective route A-->B*-->C
Attachments
There are several residents only, delivery only and further restricted segments in the area of the manipulateWaypoint
There are several residents only, delivery only and further restricted segments in the area of the manipulateWaypoint
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