Block Ferrys

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.

Block Ferrys

Postby Max Beermann » Thu Jan 10, 2019 10:46 am

Hey Bernd,

I am already blocking/avoiding severeal countrys, bridge, polylines, etc.
As you know - you helped me;)

Now I have a new challenge - maybe you have an idea.

I want to block the ferry from NL-Rotterdam > GB-Hull.
But others ferry-connections should remain (e.g. NL-Rotterdam > GB-Harwich).

If it is possible:
How would you do that?

Many thanks in advance!
Max
User avatar
Max Beermann
 
Posts: 32
Joined: Tue Oct 30, 2018 7:36 am

Re: Block Ferrys

Postby Bernd Welter » Fri Jan 11, 2019 9:21 am

Hello Max,

how about using the ExceptionPath with the nodes of the ferries?
Comparable to this...

viewtopic.php?f=7&t=673&p=1967&hilit=ferry#p1967

Best regards,
Bernd
Bernd Welter
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1216
Joined: Mon Apr 14, 2014 10:28 am

Re: Block Ferrys

Postby Max Beermann » Fri Jan 11, 2019 9:53 am

Hi Bernd,

oh that looks interesting > but I think i have to improve my xServer-skills for that.

Maybe it is getting easier for me:
I want to make sure, that - in case of a GB-destination - the ferry from Calais to Dover will be used.

I could avoid all the surrounding ferrys > but why not prefer the ferry from Calais to Dover(?):
My thought is the following, but the parameters are wrong and maybe finally ArrayOfExceptionPath is not the right one to pic:

If Start <> "GB" and Destination = "GB" then

Code: Select all
<ArrayOfExceptionPath_4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >       <ExceptionPath absTimeMalus="0" binaryPathDesc="" extSegments="" relMalus="-99" street=" Ferry Calais "xmlns="http://xroute.xserver.ptvag.com">            <wrappedNodes xsi:nil="true" />            <polyline xsi:nil="true" />      </ExceptionPath>      </ArrayOfExceptionPath_4>     



Maybe you know what I mean/what to do?


Thanks for all your kind help!
Max
User avatar
Max Beermann
 
Posts: 32
Joined: Tue Oct 30, 2018 7:36 am

Re: Block Ferrys

Postby Bernd Welter » Fri Jan 11, 2019 2:38 pm

Hello Max,

there's always potential ;-)

If you want to enforce a specific ferry you could identify the ferry connection via xlocate.findCombinedTransport... and use the ID of the ferry connection to specify combinedTransportId
https://xserver.ptvgroup.com/fileadmin/ ... ation.html#com.ptvag.xserver.xroute.WaypointDesc%3FTocPath%3DDeveloper's%2520Guide%7CAPI%2520Documentation%7CAPI%2520Documentation%2520PTV%2520xRoute%7CComponent%2520xroute%7CClasses%7C_____89

Best regards,
Bernd
Bernd Welter
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1216
Joined: Mon Apr 14, 2014 10:28 am

Re: Block Ferrys

Postby Max Beermann » Fri Jan 11, 2019 2:48 pm

Hello Bernd,

cool > seems like this is what I am looking for.

I will get along with it within the next week and will give you a feedback!

Thanks and have a nice weekend
Max
User avatar
Max Beermann
 
Posts: 32
Joined: Tue Oct 30, 2018 7:36 am

Re: Block Ferrys

Postby Max Beermann » Mon Jan 14, 2019 9:11 am

Good morning Bernd,

works great - Thanks!

Best regards
Max
User avatar
Max Beermann
 
Posts: 32
Joined: Tue Oct 30, 2018 7:36 am


Return to PTV xRouteServer

cron