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!
Ferry Transport
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Ferry Transport
That was easy:
xServer2 allows you to put a spell on the ferries by using the parameter com.ptvgroup.xserver.routingprofile.CombinedTransport
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...
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...
Re: Ferry Transport
Thanks for a lightning fast reply Bernd. It worked!