Custom ferry routes to PTV routing via API

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
Tomasz Lotocki
Posts: 6
Joined: Tue Mar 09, 2021 7:41 am

Custom ferry routes to PTV routing via API

Post by Tomasz Lotocki »

Hi everyone!
Is there a way to add custom ferry connections to the PTV routing system — for example via API or another method? The use case includes long-distance ferries like Cork–Zeebrugge, which aren’t part of the standard network.

Is it possible to define such routes directly, or is the only workaround to split the trip into two legs (e.g. Start → Cork, then Zeebrugge → End)?

Would appreciate any insights or suggestions!
Tomasz Lotocki
Sales
PTV Logistics - Poland
User avatar
Bernd Welter
Site Admin
Posts: 2903
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Custom ferry routes to PTV routing via API

Post by Bernd Welter »

Hello Tomasz,

thanks for that question - I took a deeper look into this and here's what I can say:
  • Adding own traffic objects such as segments or ferries is not possible - the only "level" of data manipulation is when it comes to "changing attributes" of existing objects:
    • Block ferries
    • Change opening status, speed, weight restrictions on existing road segments
  • At first I wanted t create a supplier bug towards HERE and stress the missing ferry, but thanks to my awesome colleague Thorsten I learned this:
    • The ferry connection CORK<=>Zeebrugge is a RO-RO-Ferry which means: the container / trailer is loaded onto the ferry, but the truck isn't. At the destination harbour the container is supposed to be loaded on another truck. (I immediately compared it to the ROLA which is part of the maps but Thosten tackled this properly: the ROLA takes both container AND vehicle)
    • HERE does not provide RollOn-RollOff-ferries.
Solution:
Therefore the workaround you described is absolutely correct as it models the reality of such a transport:
  • First leg on Truck #1 : calculate a route from the start location to the ferry's start port
  • Consider the traveltime on the ferry if you have access to that information.
  • Then calculate the route from the ferry exit port to the destination with truck #2
  • Assemble the structure of the result in a way that fits the user's expectation
roro ferries.png

Funpart: irish limerick!
A ferry set sail out of Cork,
Bound straight for Zeebrugge, not York.
With trailers in tow,
It skipped the land’s flow,
And spared drivers the channel-road walk.
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