Page 1 of 1

Successor of xRoute1.ViaType.VIA_STOP

Posted: Wed Jun 19, 2024 12:56 pm
by Prakash
Hello,

What parameter succeeds the ViaType.VIA_STOP?

Regards,
Prakash

Re: Successor of xRoute1.ViaType.VIA_STOP

Posted: Tue Jul 09, 2024 3:43 pm
by Bernd Welter
Here comes Frank's answer:

Re: Successor of xRoute1.ViaType.VIA_STOP

Posted: Tue Apr 01, 2025 7:42 am
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

Re: Successor of xRoute1.ViaType.VIA_STOP

Posted: Tue Apr 01, 2025 12:13 pm
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