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.

Ferry from Trelleborg to Travemunde (Lubeck)

Postby krzysiek mbis » Thu Sep 14, 2017 8:43 am

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

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Postby Bernd Welter » Thu Sep 14, 2017 10:38 am

Hi there,

I successfully requested the ferry:
https://xroute-eu-n-test.cloud.ptvgroup ... /ws/XRoute
TrelleborgTravemünde.ferryMalus=0.PNG
neutral ferry malus.
Time: 5h:48m
Distance 299km

TrelleborgTravemünde.ferryMalus=-30.PNG
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
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Postby krzysiek mbis » Thu Sep 14, 2017 10:53 am

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

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Postby Bernd Welter » Thu Sep 14, 2017 10:57 am

TrelleborgTravemünde.findCombinedTransports.PNG
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:
combined.PNG
WaypointDesc object accepts the ID


Best regards,
Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Postby krzysiek mbis » Thu Sep 14, 2017 11:01 am

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: 30
Joined: Thu Aug 11, 2016 9:41 am

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Postby krzysiek mbis » Fri Sep 15, 2017 6:45 am

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

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Postby Bernd Welter » Fri Sep 15, 2017 7:08 am

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:
viewtopic.php?f=7&t=494&p=1303&hilit=Ferry#p1303

Best regards,

Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Postby krzysiek mbis » Fri Sep 15, 2017 7:36 am

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

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Postby mrczeg » Wed Oct 18, 2017 6:57 am

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,
                   
                });
mrczeg
 
Posts: 8
Joined: Tue Oct 17, 2017 9:11 am

Re: Ferry from Trelleborg to Travemunde (Lubeck)

Postby Bernd Welter » Wed Oct 25, 2017 8:06 am

I tried this:

xml code
<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 69 times

kris.response.xml
complete response
(27.09 KiB) Downloaded 82 times
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

Next

Return to PTV xRouteServer

cron