Ferry from Trelleborg to Travemunde (Lubeck)
- krzysiek mbis
- Posts: 37
- Joined: Thu Aug 11, 2016 9:41 am
Ferry from Trelleborg to Travemunde (Lubeck)
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
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
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Ferry from Trelleborg to Travemunde (Lubeck)
Hi there,
I successfully requested the ferry:
https://xroute-eu-n-test.cloud.ptvgroup ... /ws/XRoute 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
I successfully requested the ferry:
https://xroute-eu-n-test.cloud.ptvgroup ... /ws/XRoute 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...
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...
- krzysiek mbis
- Posts: 37
- Joined: Thu Aug 11, 2016 9:41 am
Re: Ferry from Trelleborg to Travemunde (Lubeck)
Thanks you very much.
You helped me alot.
Best Regards,
Krzysiek.
You helped me alot.
Best Regards,
Krzysiek.
Krzysiek Paziewski
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Ferry from Trelleborg to Travemunde (Lubeck)
you can also seatch for potential ferries via xLocate findCombinedTransportByLocation
The ID is then a potential property of a waypoint: 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...
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...
- krzysiek mbis
- Posts: 37
- Joined: Thu Aug 11, 2016 9:41 am
Re: Ferry from Trelleborg to Travemunde (Lubeck)
Thanks,
It's working now.
Best Regards,
Krzysiek.
It's working now.
Best Regards,
Krzysiek.
Krzysiek Paziewski
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
- krzysiek mbis
- Posts: 37
- Joined: Thu Aug 11, 2016 9:41 am
Re: Ferry from Trelleborg to Travemunde (Lubeck)
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
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
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Ferry from Trelleborg to Travemunde (Lubeck)
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
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...
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...
- krzysiek mbis
- Posts: 37
- Joined: Thu Aug 11, 2016 9:41 am
Re: Ferry from Trelleborg to Travemunde (Lubeck)
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)
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
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)
- exactly what he wants.Asterix wrote:What is the requirement of the customer? He want's to enforce the routing to consider a specific ferry relation?
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
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
Re: Ferry from Trelleborg to Travemunde (Lubeck)
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,
});
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Ferry from Trelleborg to Travemunde (Lubeck)
I tried this:
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
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>
I used maps.path=C:/PTV-XSERVER/MAPS/PTV_Europe_City_Map_Premium_2018_1H
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...
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...