Page 1 of 2
Ferry from Trelleborg to Travemunde (Lubeck)
Posted: Thu Sep 14, 2017 8:43 am
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
Re: Ferry from Trelleborg to Travemunde (Lubeck)
Posted: Thu Sep 14, 2017 10:38 am
by Bernd Welter
Hi there,
I successfully requested the ferry:
https://xroute-eu-n-test.cloud.ptvgroup ... /ws/XRoute
- neutral ferry malus.
Time: 5h:48m
Distance 299km
- 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
Re: Ferry from Trelleborg to Travemunde (Lubeck)
Posted: Thu Sep 14, 2017 10:53 am
by krzysiek mbis
Thanks you very much.
You helped me alot.
Best Regards,
Krzysiek.
Re: Ferry from Trelleborg to Travemunde (Lubeck)
Posted: Thu Sep 14, 2017 10:57 am
by Bernd Welter
- 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
Best regards,
Bernd
Re: Ferry from Trelleborg to Travemunde (Lubeck)
Posted: Thu Sep 14, 2017 11:01 am
by krzysiek mbis
Thanks,
It's working now.
Best Regards,
Krzysiek.
Re: Ferry from Trelleborg to Travemunde (Lubeck)
Posted: Fri Sep 15, 2017 6:45 am
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
Re: Ferry from Trelleborg to Travemunde (Lubeck)
Posted: Fri Sep 15, 2017 7:08 am
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
Re: Ferry from Trelleborg to Travemunde (Lubeck)
Posted: Fri Sep 15, 2017 7:36 am
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
Re: Ferry from Trelleborg to Travemunde (Lubeck)
Posted: Wed Oct 18, 2017 6:57 am
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,
});
Re: Ferry from Trelleborg to Travemunde (Lubeck)
Posted: Wed Oct 25, 2017 8:06 am
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