Ferry from Trelleborg to Travemunde (Lubeck)

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.
User avatar
krzysiek mbis
Posts: 37
Joined: Thu Aug 11, 2016 9:41 am

Ferry from Trelleborg to Travemunde (Lubeck)

Post by krzysiek mbis »

Hi,
Is there a way to have a route from Trelleborg to Travemunde via Ferry.
I've tried many times with different settings but I can't do it.

I use the xServer .NET control and the XRoute web service to calculate the route.
Krzysiek
Krzysiek Paziewski
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Post by Bernd Welter »

Hi there,

I successfully requested the ferry:
https://xroute-eu-n-test.cloud.ptvgroup ... /ws/XRoute
neutral ferry malus.<br />Time: 5h:48m <br />Distance 299km
neutral ferry malus.
Time: 5h:48m
Distance 299km
Preferred ferry by 30% (malus=-30)<br />Time: 9h:30m<br />Distance: 10km
Preferred ferry by 30% (malus=-30)
Time: 9h:30m
Distance: 10km
Depending on the balance between distance and time (OPTIMIZATION) the ferry is less attractive even with neutral ferry malus (AVOID_FERRIES) as it produces a long period.

If the OPTIMIZATION is focused on "DISTANCE" (values around 0) the neutral ferry malus also returns a FERRY route.

Best regards,
Bernd
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:
User avatar
krzysiek mbis
Posts: 37
Joined: Thu Aug 11, 2016 9:41 am

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Post by krzysiek mbis »

Thanks you very much.
You helped me alot.

Best Regards,
Krzysiek.
Krzysiek Paziewski
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Post by Bernd Welter »

search via xLocate.findCombinedTransports
search via xLocate.findCombinedTransports
Check this...
you can also seatch for potential ferries via xLocate ;-) findCombinedTransportByLocation
The ID is then a potential property of a waypoint:
WaypointDesc object accepts the ID
WaypointDesc object accepts the ID
Best regards,
Bernd
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:
User avatar
krzysiek mbis
Posts: 37
Joined: Thu Aug 11, 2016 9:41 am

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Post by krzysiek mbis »

Thanks,
It's working now.

Best Regards,
Krzysiek.
Krzysiek Paziewski
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
User avatar
krzysiek mbis
Posts: 37
Joined: Thu Aug 11, 2016 9:41 am

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Post by krzysiek mbis »

Hi,
I understand that It's all about the balance between distance and time.
But could you tell me why It's not working when I have via point in the ferry line (in the middle of the Baltic sea) ?
I'm asking because our client wants to have influance on the specyfic ferry line (for example if he has route from Oslo to Berlin). There are many possibilities for ferry lines.
What is the best way to do this ?

Best Regards,
Krzysiek
Krzysiek Paziewski
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Post by Bernd Welter »

Hello,

what is your understanding of that "VIA point in the baltic sea"? A x,y coordinate somewhere in the water close to a grey painted ferry polygon? That's probably not working.

Let's switch the perspective:
What is the requirement of the customer? He want's to enforce the routing to consider a specific ferry relation?
Check this:
http://xserver.ptvgroup.com/forum/viewt ... erry#p1303

Best regards,

Bernd
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:
User avatar
krzysiek mbis
Posts: 37
Joined: Thu Aug 11, 2016 9:41 am

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Post by krzysiek mbis »

Hi,
Yes, I asked about something like a x,y coordinate, but only as an example as a way to have an influence on the ferry line. But that is clear after this :
viewtopic.php?f=7&t=494&p=1303&hilit=Ferry#p1303 (I forgot about this - sorry)
Asterix wrote:What is the requirement of the customer? He want's to enforce the routing to consider a specific ferry relation?
- exactly what he wants.
But the problem with OPTIMIZATION parameter is that it will have influence on whole route. Witch can be changed dramatically!
Will this ferry ID as a potential property of a waypoint works with OPTIMIZATION parameter even if it's focused on "time" not on "distance" ?

Best Regards,
Krzysiek
Krzysiek Paziewski
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
mrczeg
Posts: 11
Joined: Tue Oct 17, 2017 9:11 am

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Post by mrczeg »

I tried to use findCombinedTransportByLocation, it works but I got different results than you. Can you tell me what parameters you used in this method? I tried:

Code: Select all

    var location = xLocate.findCombinedTransportByLocation(new findCombinedTransportByLocationRequest
                {
                    ArrayOfResultField_3 = new ResultField[] { },
                    ArrayOfSearchOptionBase_2 = new SearchOption[] { new SearchOption { param = SearchParameter.COUNTRY_CODETYPE, value = "0" },
                     new SearchOption{param=SearchParameter.RESULT_LANGUAGE,value="DEF" },new SearchOption{param=ERouteSearchType.} },
                    CallerContext_4 = new CallerContext
                    {
                        wrappedProperties = new[] { new CallerContextProperty { key = "CoordFormat", value = RouteLayerExtensions.SpatialReferenceId } }
                    },
                    Location_1 = loc,
                    
                });
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Post by Bernd Welter »

I tried this:

Code: Select all

<Location_1>
	<coordinate xmlns="http://xlocate.xserver.ptvag.com">
		<kml xsi:nil="true" xmlns="http://common.xserver.ptvag.com" />
		<point x="1207690" y="7151079" xmlns="http://common.xserver.ptvag.com" />
	</coordinate>
</Location_1>
<ArrayOfSearchOptionBase_2>
	<SearchOptionBase xsi:type="ReverseSearchOption" value="0" param="COUNTRY_CODETYPE" xmlns="http://xlocate.xserver.ptvag.com" />
	<SearchOptionBase xsi:type="ReverseSearchOption" value="10" param="ENGINE_TARGETSIZE" xmlns="http://xlocate.xserver.ptvag.com" />
	<SearchOptionBase xsi:type="ReverseSearchOption" value="DEF" param="RESULT_LANGUAGE" xmlns="http://xlocate.xserver.ptvag.com" />
	<SearchOptionBase xsi:type="ReverseSearchOption" value="10" param="ENGINE_MINSIZE" xmlns="http://xlocate.xserver.ptvag.com" />
</ArrayOfSearchOptionBase_2>
Maybe you are using a different map version?
I used maps.path=C:/PTV-XSERVER/MAPS/PTV_Europe_City_Map_Premium_2018_1H

Best regards,
Bernd
kris.request.xml
complete request
(3.74 KiB) Downloaded 481 times
kris.response.xml
complete response
(27.09 KiB) Downloaded 479 times
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