Page 1 of 1

Ferry Transport

Posted: Tue Mar 14, 2023 3:16 pm
by VeeTennis
Hello,
This is our first post :)
Could you pls help us. We need to disable all Ferry transportation so PTV xRouteServer would not calculate route through water. Thx!
disable_ferry.jpg

Re: Ferry Transport

Posted: Tue Mar 14, 2023 4:48 pm
by Bernd Welter
That was easy:
xServer2 allows you to put a spell on the ferries by using the parameter com.ptvgroup.xserver.routingprofile.CombinedTransport

Code: Select all

{
  "requestProfile":{
    "routingProfile":{
      "course":{
        "combinedTransport":{
          "boatPenalty": 2501
        }
      }
    }
  },
  "waypoints": [
    {
      "$type": "OffRoadWaypoint",
      "location": {
        "offRoadCoordinate": {
          "x": 8.045559851,
          "y": 52.271949744
        }
      }
    },
    {
      "$type": "OffRoadWaypoint",
      "location": {
        "offRoadCoordinate": {
          "x": 24.114870021,
          "y": 56.945980094
        }
      }
    }
  ],
  "resultFields": {
    "polyline": true
  }
}

Re: Ferry Transport

Posted: Thu Mar 16, 2023 8:12 am
by VeeTennis
Thanks for a lightning fast reply Bernd. It worked! ;)