Ferry Transport

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
VeeTennis
Posts: 11
Joined: Tue Mar 14, 2023 7:53 am

Ferry Transport

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

Re: Ferry Transport

Post 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
  }
}
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:
VeeTennis
Posts: 11
Joined: Tue Mar 14, 2023 7:53 am

Re: Ferry Transport

Post by VeeTennis »

Thanks for a lightning fast reply Bernd. It worked! ;)
Post Reply